This document covers the steps needed to be apply an incremental RMAN backup to a standby database. This document is intended for oracle 10g databases only.
1 Standby Roll Forward using RMAN
1.1 Primary Incremental RMAN backup
Standby Server
Primary Server
run {
allocate channel dev_0 device type disk;
allocate channel dev_1 device type disk;
allocate channel dev_2 device type disk;
allocate channel dev_3 device type disk;
allocate channel dev_4 device type disk;
allocate channel dev_5 device type disk;
allocate channel dev_6 device type disk;
allocate channel dev_7 device type disk;
backup as compressed backupset incremental from SCN 17666478173 database
format='/u01/app/oracle/reorg/
include current controlfile for standby
filesperset=5;
}
1.2 Apply RMAN Incremental to Standby Database
Standby Server
allocate channel dsk0 type disk;
allocate channel dsk1 type disk;
allocate channel dsk2 type disk;
allocate channel dsk3 type disk;
allocate channel dsk4 type disk;
allocate channel dsk5 type disk;
allocate channel dsk6 type disk;
allocate channel dsk7 type disk;
restore standby controlfile to '/u01/app/oracle/reorg/
recover database noredo;
}
7. Shutdown the standby database
a. Blackout the standby in EM GridControl
b. Sqlplus / as sysdba
c. shutdown immediate;
8. cp the new standby controlfile standby_
cp standby_EMREPS.ctl /u02/origlog/EMREPS/ctrlEMREP1.ctl
cp standby_EMREPS.ctl /u03/mirrlog/EMREPS/ctrlEMREP2.ctl
cp standby_EMREPS.ctl /u04/app/oracle/flash_recovery/EMREPS/ctrlEMREP3.ctl
9. Start the standby, check the scn, start recovery
a. Sqlplus / as sysdba
b. Startup nomount
c. Alter database mount standby database;
d. Alter database recover managed standby database disconnect from session;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26706/viewspace-434668/ ,如需转载,请注明出处,否则将追究法律责任。