Professional Documents
Culture Documents
How To Failover and Flashback a Physical Standby for testing without recreating broker
configuration and database (Doc ID 2060572.1)
In this Document
Goal
Solution
References
APPLIES TO:
GOAL
For testing purpose it may be needed to execute a failover to a physical standby in a data guard environment.
This may be required, for example, to test the disaster recovery procedure so it should be as similar as possible to a real
situation.
After failover via dg broker the standby database, promoted to a read write primary, will be used to test applications.
After all the testing, the activated standby should be recreated from the "real" primary.
Since it may be time consuming and some work may be avoided, these steps may be used to recreate the DR enviroment.
It's fundamental that primary and standby site are isolated during test.
For a similar scenario without dg broker note 805438.1 may be used.
SOLUTION
Configuration - V112CONF
Configuration Status:
SUCCESS
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=ooymh0edf_297&id=2060572.1 1/4
4/10/2017 Document 2060572.1
B) Execute failover:
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=ooymh0edf_297&id=2060572.1 2/4
4/10/2017 Document 2060572.1
D) Once tests are ended, revert the active standby database back to Physical standby database:
For example :
rm /u02/data/V112/dr1mfg.dat
rm /u02/data/V112/dr2mfg.dat
If pfile is placed on an ASM Disk Group, consider these steps to modify new spfile location:
SQL> create spfile='+DATA' from pfile ='/u01/app/oracle/product/11.2.0/dbs/prefail.txt';
srvctl modify database -d V112 -p +DATA/V112/PARAMETERFILE/spfile.XXX.YYYYYYYYY
srvctl config database -d V112
If present, modify init<SID>.ora (initV112.ora) under OH/dbs/ to point to new spfile.
ifconfig eth0 up
ifconfig eth1 up
Enabling the database through the broker will force the recreation of broker configuration files on
the standby site. Only dg_broker_config_file1 may be created.
Execute the following step B, even if the CommunicationTimeout wasn't changed. This will force a configuration change
and the second broker configuration file (/u02/data/V112/dr2mfg.dat) will be recreated on standby site.
REFERENCES
NOTE:805438.1 - How To Open Physical Standby For Read Write Testing and Flashback
NOTE:838249.1 - Physical Standby Read/Write Testing With Belated Flashback Database
Didn't find what you are looking for?
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=ooymh0edf_297&id=2060572.1 4/4