Professional Documents
Culture Documents
12c Dataguard Switchover Best Practices Using DGMGRL (Dataguard Broker Command Prompt)
12c Dataguard Switchover Best Practices Using DGMGRL (Dataguard Broker Command Prompt)
In this Document
Goal
Solution
I. Pre-Switchover Checks
Validate Database
II SWITCHOVER
Perform Switchover
APPLIES TO:
GOAL
This Document offers Step by Step method to perform Switchover using Dataguard Broker command prompt DGMGRL.
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:
Dg configuration : 12c
Primary db_unique_name : boston
Standby db_unique_name : chicago
1 of 7 11/6/2020, 9:16 AM
Document Display https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
SOLUTION
SWITCHOVER Considerations:
1. DG Broker will not downgrade the PROTECTION mode during the process of Switchover.
2. Configure suitable REDO transport mode on current standby that becomes Primary after switchover.
3. Configure SRL (Standby Redo Logs) and local archiving destination on current Primary.
Broker switchover command verifies 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
DGMGRL>show configuration;
Configuration - 12c
Databases:
Configuration Status:
SUCCESS
Database - boston
Role: PRIMARY
Instance(s):
boston
Database Status:
SUCCESS
2 of 7 11/6/2020, 9:16 AM
Document Display https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
Database - chicago
Instance(s):
chicago
Database Status:
SUCCESS
Validate Database
Validate database verify following, no need to explicitly check whether ORLs/SRLS cleared.
boston: Off
boston: Off
chicago: Off
3 of 7 11/6/2020, 9:16 AM
Document Display https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
(chicago) (boston)
1 4 4
II SWITCHOVER
Tail alert log and DRC<SID> log which is present in same location of alert log(text) from all the nodes of primary and standby.
Perform Switchover
4 of 7 11/6/2020, 9:16 AM
Document Display https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
Connect to sysdg
Password:
Connected as SYSDG.
Connected as SYSDBA.
Database mounted.
Database opened.
ALTER DATABASE COMMIT TO SWITCHOVER TO PHY SICAL STANDBY [Process Id: 10402] (boston)
SWITCHOVER: received request 'ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY' from primary database.
5 of 7 11/6/2020, 9:16 AM
Document Display https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
SWITCHOVER TO chicago
Change the delaymins property to prior on new standby after switchover based on business requirement.
DGMGRL> edit database <new standby> set property delaymins=<old MRP delay value>;
Configuration - 12c
Databases:
6 of 7 11/6/2020, 9:16 AM
Document Display https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
Configuration Status:
SUCCESS
7 of 7 11/6/2020, 9:16 AM