11g RMAN incomplete recovery of the database

1. Install the oracle database software and create the corresponding directory according to the spfile of the source library.

2. Start the target library to the nomount state, and create the spfile of the target library according to the spfile of the source library.

SQL>startup nomount;

3. Copy all the backups of the source database to the backup directory corresponding to the standby database.

4. Use rman to restore the control file from the backup in the target library.
RMAN> restore controlfile from'/u02/backup/fulldatabase/STANDBY/backupset/2020_08_02/o1_mf_ncsnf_TAG20200802T094048_hldb6o5b_.bkp';

5. Start the target database database to mount state.
SQL> alter database mount;

6. Use the backup to restore the source database.
RMAN> restore database;

7. Resetlog opens the database for incomplete recovery.

After incomplete recovery, the original online redo log contains data before recovery, and these data are no longer valid for the restored database, so the database will require that the sequence of the online redo log be set to zero before Open.

The Resetlogs command indicates the end of the logical lifetime of a database and the beginning of the logical lifetime of another database. Each time the Resetlogs command is used, the SCN will not be reset, but the oracle will reset the log sequence number and reset the online reset. Do log content.

SQL> alter database open resetlogs;

Guess you like

Origin blog.csdn.net/weixin_41086692/article/details/108981321