Apply one or two newspapers archived in the cloned DB

11.2.0.3 on Solaris 10

Here's an example I borrowed from another thread OTN


Sometimes clone us our production database for test servers and we encounter this error. This error occurs because RMAN only backs up online redo logs from the source DB (expected behavior). During RMAN recovery get these sequences that have been the source of the DB ORLs.
Recovery will be error like below when it does not find these sequences in the backup.


To resolve this issue, we can run ALTER DATABASE OPEN RESETLOGS;. But, sometimes containing these sequences in ORLs of Prod
changes important which must be cloned in the server to test as well. Once these sequences obtained archived in the Prod, I can copy the logs to check-in on the test server.

But how to apply just one or two archive logs on the test server?
RMAN> recover database;
 
Starting recover at 11-MAY-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=513 device type=DISK
 
starting media recovery
 
archived log for thread 1 with sequence 70149 is already on disk as file /backup/oracle/fast_recovery_area/DB11/archivelog/2012_05_11/o1_mf_1_70149_7ttnrxnn_.arc
archived log file name=/backup/oracle/fast_recovery_area/DB11/archivelog/2012_05_11/o1_mf_1_70149_7ttnrxnn_.arc thread=1 sequence=70149
unable to find archived log
archived log thread=1 sequence=70150
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 05/11/2012 15:25:31
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 70150 and starting SCN of 5613624984

Use SET up.

For example, if the last archivelog you applied is SEQUENCE 70150, then you do:

run
{set until sequence 70151
recover database
}

You must ensure that the archivelog was generated by the source database (e.g., number one explicit ALTER SYSTEM ARCHIVE LOG CURRENT to force an archivelog)

Hemant K Collette

Tags: Database

Similar Questions

Maybe you are looking for