Академический Документы
Профессиональный Документы
Культура Документы
We can see above that 1 new file have come after log switch, to new destination
RMAN Basics :
$ rman
Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 24 22:24:50 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect target /
connected to target database: ORCL (DBID=1278825270)
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name ORCL are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK
TO '%F'; # default
Connecting to RMAN :
[coredba@coredbatrn u02]$ rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 24 22:56:41 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ORCL (DBID=1278825270)
$ rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Sun Jan 25 01:05:52 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database (not started)
Nomounting the database:
RMAN> startup nomount;
RMAN> restore controlfile from autobackup;
RMAN> alter database mount;
First we should restore the database and bring up the full backed up files.
RMAN> restore database;
Now we will recover the database where all the archivelog files will be called and
finally the redo log files.
RMAN> recover database;
Fresh incarnation of the database. Database opened with resetlog options to have
fresh set of log files.
RMAN> alter database open resetlogs;
Recovery Manager complete.