0% found this document useful (0 votes)
84 views1 page

Synchornise SCN With Standby

This document outlines steps to resynchronize a physical standby database in Oracle 10g when it has fallen out of sync with the primary database due to hundreds of archive logs needing to be applied or potential archive log unavailability. The steps include finding the current SCN of the standby, creating an incremental backup from that SCN on the primary, creating a new standby control file, canceling managed recovery on the standby, restoring the incremental backup to the standby, recovering the standby from the backup without redo, replacing the standby's control file, and restarting managed recovery to bring the standby back in sync without a full rebuild.

Uploaded by

Jayesh Marangad
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views1 page

Synchornise SCN With Standby

This document outlines steps to resynchronize a physical standby database in Oracle 10g when it has fallen out of sync with the primary database due to hundreds of archive logs needing to be applied or potential archive log unavailability. The steps include finding the current SCN of the standby, creating an incremental backup from that SCN on the primary, creating a new standby control file, canceling managed recovery on the standby, restoring the incremental backup to the standby, recovering the standby from the backup without redo, replacing the standby's control file, and restarting managed recovery to bring the standby back in sync without a full rebuild.

Uploaded by

Jayesh Marangad
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

One of the major problems being faced by DBAs managing Physical Standby Database

s is to keep the standby database in sync with Primary Database.


At times, standby database will go out of sync and there will be hundreds of arc
hive logs to be applied.
It takes huge amount of data transfer and also large amount of archive log apply
activity in the standby database.
Also, there is a potential chance of archive log non-availability, which may lea
d to rebuild of standby database.
The above situation can be tacked, without rebuild in Oracle 10g environment.
Steps to bring the standby database in sync with Primary Database is listed belo
w.
1. Find the current SCN of standby database.
select current_scn from v$database;
CURRENT_SCN
4793543
2. On the primary database create the needed incremental backup from the above S
CN
rman target /
RMAN> BACKUP DEVICE TYPE DISK INCREMENTAL FROM SCN 4793543 DATABASE FORMAT \opt\b
kup_%U ;
3. create a new standby controlfile from production
sqlplus> alter database create standby crontrolfile blah ;
4.cancel managed recovery on standby
sqlplus> recover managed standby database cancel;
5. Move your incremental backup from (2) to the standby server (empty folder) an
d catalog it
rman target /
rman> catalog start with c:\temp\backup\ ;
6. recover your standby from the incremental backup
rman> recover database noredo;
7. shutdown the standby and replace the controlfile with the one you backup in (
3)
8.startup the standby and put it back into managed recovery mode
sqlplus> startup mount
sqlplus> recover managed standby database disconnect;

You might also like