You are on page 1of 2

Steps to perform for Rolling Forward a Physical Standby Database

Using RMAN Incremental Backup

1) Stop the managed recovery process (MRP) on the STANDBY database

SQL> alter database recover managed standby database cancel;

Note: For the remaining steps, the standby database must be in a MOUNT state.

2) Determine the SCN of the STANDBY database

On the standby database, find the SCN which will be used for the incremental backup at the
primary database:

You need to use the 'lowest SCN' from the queries below:

select min(f.fhscn) from x$kcvfh f, v$datafile d


where f.hxfil =d.file#
and d.enabled != 'READ ONLY';

3) Take an incremental backup of the PRIMARY database

Create “backup.sh” file

rman target fbl_user_bkp/bkp_user_fbl<<EOF |tee /u01/scn/rman_L0_bkp.log


run
{
configure device type disk backup type to compressed backupset;
allocate channel dev1 type disk MAXPIECESIZE 1g;
allocate channel dev2 type disk MAXPIECESIZE 1g;
backup as compressed backupset incremental from SCN 3162298 database FORMAT
'/u01/scn/BKP_INCR%U.bak';
BACKUP CURRENT CONTROLFILE FOR STANDBY FORMAT /u01/scn/ForStandbyCTRL.bck';
release channel dev1;
release channel dev2;
}
4) Transfer all backup sets to Standby server

All backup files created by step #3 must be transferred from the primary to the standby
system.

5) Restore SCN backup on standby database.

SQL> startup nomount;


Exit

rman target /
RMAN> restore standby controlfile from '/u01/scn/ForStandbyCTRL.bck ';
RMAN> alter database mount standby database;
RMAN> crosscheck backup;
RMAN> delete expired backup;
RMAN> crosscheck archivelog all;
RMAN> delete expired archivelog all;
RMAN> catalog start with '/u01/scn';
RMAN> recover database;
RMAN> exit

6) Start Recovery on Standby Database


SQL> alter database recover managed standby database disconnect from session;
SQL> select sequence#, first_time, applied from v$archived_log order by sequence#;

You might also like