Dataguard Switchover Best Practices Using DGMGRL
Dataguard Switchover Best Practices Using DGMGRL
Alireza Kamrani
07/17/2024
Target:
This Document o ers Step by Step method to perform Switchover using Dataguard Broker
command prompt DGMGRL.
For the purposes of this document, the following ctitious environment is used as an example to
describe the procedure:
In this document, I have tested this scenario using Oracle 12c, but these steps can be used in
higher versions as well.
Dg configuration : 12c
Primary db_unique_name : orcl
Standby db_unique_name : pop
SOLUTION
SWITCHOVER Considerations:
1- DG Broker will not downgrade the PROTECTION mode during the process of Switchover.
2- Con gure suitable REDO transport mode on current standby that becomes Primary after
switchover.
3- Con gure SRL (Standby Redo Logs) and local archiving destination on current Primary.
Broker switchover command veri es the availability of SRL on current Primary Database and
suitable Redo transport method on current Standby.
DB Restart Considerations:
1- If the switchover target is Physical Standby then Broker shutdown the Primary as a process of
switchover.
2- If the switchover environment in MAX_PROTECTION mode and primary has only one Standby
then broker shuts down both primary and standby as a process of switchover. If primary has
multiple standby then broker shuts down only the new Primary.
I. Pre-Switchover Checks
Verify Dataguard Broker Con guration
Use following command s to verify broker status before switchover.
DGMGRL>show configuration;
DGMGRL>show database <primary>;
fi
fi
ff
fi
fi
fi
DGMGRL>show database <standby>;
DGMGRL>show database verbose <primary>;
DGMGRL>show database verbose <standby>;
Validate Database
Validate database verify following, no need to explicitly check whether ORLs/SRLS cleared.
•Whether there is missing redo data on a standby database
- Whether ashback is enabled
- The number of temporary tablespace les con gured
- Whether an online data le move is in progress
- Whether online redo logs are cleared for a physical standby database
- Whether standby redo logs are cleared for a primary database
- The online log le con guration
- The standby log le con guration
- Apply-related property settings
- Transport-related property settings
Thread #
Online Redo Log Groups
Standby Redo Log Groups
(pop) (orcl)
1 4 4
II. SWITCHOVER
Disable Apply Delay
To increase the speed of switchover disable delaymins property.
Perform Switchover
Connect to sysdg
SWITCHOVER TO pop
DGMGRL> edit database <new standby> set property delaymins=<old MRP delay
value>;
Sincerely,
Alireza Kamrani.
Database Technical Consultant.
fi