Document 1582837.1 PDF
Document 1582837.1 PDF
Document 1582837.1 PDF
1
Copyright (c) 2019, Oracle. All rights reserved. Oracle Confidential.
In this Document
Goal
Solution
I. Pre-Switchover Checks
Verify Dataguard Broker Configuration
Validate Database
II SWITCHOVER
Disable Apply Delay
Turn on Data Guard tracing on primary and standby
for RAC instance,
Tail Alert Logs and DRC (optional) on all instances
Perform Switchover
III. Post - Switchover Check
Reset Delaymins property
Set Trace to Prior Value
Verify Broker Configuration
APPLIES TO:
Oracle Database - Enterprise Edition - Version 12.1.0.1 to 12.2.0.1 [Release 12.1 to 12.2]
Information in this document applies to any platform.
*** Reviewed for Relevance 16-Jul-2015 ***
*** Reviewed for Relevance 27-Oct-2016 ***
GOAL
This Document offers Step by Step method to perform Switchover using Dataguard Broker command prompt DGMGRL.
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
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=8asdtpljx_277&id=1582837.1 1/7
10/9/2019 Document 1582837.1
DGMGRL>show configuration;
For example,
Databases:
Configuration Status:
SUCCESS
Database - boston
Role: PRIMARY
Instance(s):
boston
Database Status:
SUCCESS
DGMGRL> show database chicago
Database - chicago
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=8asdtpljx_277&id=1582837.1 2/7
10/9/2019 Document 1582837.1
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
(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
Connect to sysdg
Password:
Connected as SYSDG.
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=8asdtpljx_277&id=1582837.1 4/7
10/9/2019 Document 1582837.1
Performing switchover NOW, please wait...
Connected as SYSDBA.
Database mounted.
Database opened.
ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY [Process Id: 10402] (boston)
SWITCHOVER: received request 'ALTER DTABASE COMMIT TO SWITCHOVER TO PRIMARY' from primary database.
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=8asdtpljx_277&id=1582837.1 5/7
10/9/2019 Document 1582837.1
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:
SUCCESS
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=8asdtpljx_277&id=1582837.1 7/7