In the Standby Database One of the Archive File is Missed .Applying an Incremental Backup to Physical Standby

Embed Size (px)

DESCRIPTION

sdgs

Citation preview

Applying an incremental backup to a physical standbyScenario:In the standby database one of the archive file is missed due to overwritten the archive file. Correct : cp -p pbgbfin_1_592_789999.arc pbgbfin_1_593_78999.arc /finarch/PBGBDB/arch/Wrong : cp -p pbgbfin_1_592_789999.arc pbgbfin_1_593_78999.arcCause : Recovery could not proceed due to the above mistake done.Solution :1) Recreate the standby database with the fresh backup from primary. This is the only solution till oracle 9i database.2) There is an option to recover from this error without applying the missed archive file is "Apply an incremental backup to physical standby database"Steps: rman target sys/sys nocatalogstandby> alter database recover managed standby database cancel; standby> select current_scn from v$database;Make an rman incremental backup on the primary from the above scn: primary_rman> backup incremental from scn 290152958 database format '/rman/work/rrb1_rman_29082011/standby_%U'; Once this backup file is copied to the standby, catalog it with the standby controlfile: standby_rman> catalog start with '/rrb1_finarch/work/standby';Now actually apply the changes from the backup to the standby: standby_rman> recover database noredo;At this point your datafiles will be up-to-date, but your controlfile is still out of date, create new standby controlfile from the primary: primary> alter database create standby controlfile as /rman/work/rrb1_rman_29082011/standby.ctl'; Copy this to the standby and replace your current standby controlfiles with this new one. Once this is done you should be able to restart managed recovery and it will take off from your backup scn. standby> recover standby database;