In this Document
Goal
Solution
Stop Managed Recovery and Redo Transport
Save Existing Logfile Names
Refresh Standby Control File From Primary
Document the Current SCN for the Standby
Save Current RMAN Configuration Settings
Refresh the Standby Control File
Replace RMAN Configuration Settings and Remove Orphaned Online and Standby Redo Log Files
Catalog Standby Database Files to the Refreshed Control File
Restore Any Missing Files
Switch Database to Copy
Clean Up Orphaned Files
Clear Online Redo Logs and Standby Redo Logs
Roll the Standby Database Forward
Restart All Instances to Mount
Re-Enable Redo Transport
Determine Section Size to be Used
Run Recover From Service
Recover Until Consistent
Re-Enable Flashback Database
Restart the Standby and Managed Recovery
Take a New Backup (If Needed)
References
APPLIES TO:
Oracle Database - Enterprise Edition - Version 12.1.0.1 to 21.6 [Release 12.1 to 21.0]
Information in this document applies to any platform.
GOAL
Utilize RECOVER DATABASE FROM SERVICE to skip over a large gap in redo or a gap in redo which is
unresolvable(missing logs).
SOLUTION
In cases where there is a large redo gap between the primary and standby or when there is an unresolvable gap of
missing logs, the standby database can be 'rolled forward' using the RECOVER DATABASE FROM SERVICE command
introduced in 12c. This process recovers blocks from the primary to the standby which have changed since the
standby database SCN. This is more efficient in catching up the standby rather than applying every individual change
to the database as is done with managed recovery.
Follow the steps to roll forward a standby database using RECOVER DATABASE FROM SERVICE.
NOTE: Cleaning up any backups from orphaned incarnations (e.g. snapshot standby incarnations) on the standby
before executing this process is recommended.
Stop Managed Recovery and Redo Transport
via Data Guard Broker connected to any database in the configuration:
评论