18c Roll Forward Physical Standby Using RMAN Incremental Backup in Single Command
(Doc ID 2431311.1)
Last updated on JANUARY 15, 2020
Applies to:Oracle Database - Enterprise Edition - Version 188.8.131.52.0 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
NOTE: In the images and/or the document content below, the user information and environment data used represents fictitious data from the
Oracle sample schema(s), Public Documentation delivered with an Oracle database product or other training material. Any similarity to actual
environments, actual persons, living or dead, is purely coincidental and not intended in any manner.
For the purposes of this document, the following fictitious environment is used as an example to describe the procedure:
Standby Name: SBY180
Primary Name: PRM180
Directory Name: /u01/app/oracle and all sub-directories
Typically, when rolling forward a physical standby database using primary incremental backup, multiple steps are required:
- Identify the Start SCN on Standby for performing incremental backup on primary
- Perform incremental backup on primary with FROM SCN clause
- Move the backup-pieces from primary to standby
- Catalog the backup-piece on Standby
- Perform recovery on standby using recover database noredo
- Refresh standby controlfile again from primary
Starting from 12.1, we could use "RECOVER DATABASE FROM SERVICE"command which will automate a few steps like performing incremental backup on primary, transfer the backup-pieces to standby over network and perform recovery on standby. However, we still had to manually refresh the standby controlfile and manually restore newly-added datafiles. These steps required manual efforts and are error prone especially when standby files are physically located in a path different to that of primary.
Starting with 18.1, we can use a single command to refresh the standby with changes made on primary:
RMAN> RECOVER STANDBY DATABASE FROM SERVICE primary_connect_identifier;
This command will internally keep track of standby file locations, refresh standby controlfile from primary, update the new standby controlfile with standby file names, perform incremental backup on primary, transfer the backup-pieces over network to standby and perform recovery on standby
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document