Sync Standby database from incremental backup.
On Primary database only:
1. Find the current SCN of standby database.
select current_scn from v$database;
CURRENT_SCN
———–
4793543
2. On the primary database – take the incremental backup from the above SCN
rman target /
RMAN> BACKUP DEVICE TYPE DISK INCREMENTAL FROM SCN 4793543 DATABASE FORMAT ‘/orabkp/ABCPROD/stnd_bkup_%U’;
3. create a new standby control file from production
backup current controlfile for standby format ‘/orabkp/ABCPROD/stnd_%U.ctl’;
4. SCP or FTP both the files into standby server:
On Standby database only:
5. On Standby Database: cancel the database from managed recovery mode.
sql> alter database recover managed standby database cancel;
or
sql> recover managed standby database cancel;
6. Start recovering the database
rman target /
RMAN> catalog start with ‘/orabkp/ABCPROD’;
RMAN> recover database noredo;
RMAN> shutdown immediate
RMAN> startup nomount
RMAN> restore standby controlfile from ‘/orabkp/ABCPROD/stnd_%U.ctl’;
RMAN> shutdown immediate
7. Now mount database as a standby database.
SQL> startup nomount
SQL> alter database mount standby database;
8. Now start standby recovery and start db as a physical standby.
SQL> alter database recover managed standby database disconnect from session;
On Primary database only:
1. Find the current SCN of standby database.
select current_scn from v$database;
CURRENT_SCN
———–
4793543
2. On the primary database – take the incremental backup from the above SCN
rman target /
RMAN> BACKUP DEVICE TYPE DISK INCREMENTAL FROM SCN 4793543 DATABASE FORMAT ‘/orabkp/ABCPROD/stnd_bkup_%U’;
3. create a new standby control file from production
backup current controlfile for standby format ‘/orabkp/ABCPROD/stnd_%U.ctl’;
4. SCP or FTP both the files into standby server:
On Standby database only:
5. On Standby Database: cancel the database from managed recovery mode.
sql> alter database recover managed standby database cancel;
or
sql> recover managed standby database cancel;
6. Start recovering the database
rman target /
RMAN> catalog start with ‘/orabkp/ABCPROD’;
RMAN> recover database noredo;
RMAN> shutdown immediate
RMAN> startup nomount
RMAN> restore standby controlfile from ‘/orabkp/ABCPROD/stnd_%U.ctl’;
RMAN> shutdown immediate
7. Now mount database as a standby database.
SQL> startup nomount
SQL> alter database mount standby database;
8. Now start standby recovery and start db as a physical standby.
SQL> alter database recover managed standby database disconnect from session;