Step by Step Oracle 11gR2 RAC Standby Database Switchover
Step by Step Oracle 11gR2 RAC Standby Database Switchover
Description:-
In this article, let us do the two node RAC to RAC manual switchover steps.
Let us consider, we have already con gured primary site with two node RAC
and standby site also with two node RAC in 11gR2. You can refer here, for two
node RAC to RAC dataguard setup in 11gR2 and also we are using the same
con guration from the referred one.
A) Pre-Switchover Checks:-
1) Verify Managed Recovery is running on the standby
2) Verify there are no large Gaps
B)
Switchover:-
1) Cancel any apply delay for the target standby
2) Create Guaranteed Restore Points (optional)
3) Verify that the primary database can be switched to the standby role
4) If The Primary is a RAC, then shutdown all secondary primary instances
5) Switchover the primary to a standby database
6) Verify that the standby database can be switched to the primary role
7) Switchover the standby database to a primary
8) Open the new primary database
9) Restart the new standby
C) Post-Switchover Steps:-
1) Drop any Switchover Guaranteed Restore Points
Let us verify the status and con guration of the RAC database:-
Primary:
no rows selected
Execute the below statement in primary to verify that recovery is running with
“REAL TIME APPLY” option
In
our environment we have con gured LOG_ARCHIVE_DEST_2 as the ship redo
RECOVERY_MODE
-----------------------
IDLE
Here, managed standby recovery is not running or not started with real-time
apply. So restart manager recovery in standby with below command. But, if the
status is “REAL TIME APPLY”, we can go ahead for the next step.
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE
Database altered.
Step 2 – Verify there are no large Gaps:-
Identify the current sequence number for each thread on the primary
THREAD# SEQUENCE#
---------- ----------
1 53
2 49
Verify the target physical standby database has applied up to, but not including
the logs from the primary query. On the standby the following query should be
within 1 or 2 of the primary query result.
THREAD# MAX(SEQUENCE#)
---------- --------------
1 52
2 47
B) Switchover:-
Step 1 – Cancel any apply delay for the target standby:-
Remove
any delay in applying redo that may be in e ect on the standby
database that will become the new primary database. Execute the following
statement in standby, if there is a delay. Here, we don’t have any delay, so we
can skip this step
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE
On the standby:
Stop the apply process
Database altered.
On the primary
Create a guaranteed restore point
Step 3 – Verify that the primary database can be switched to the standby
role:-
Query the SWITCHOVER_STATUS column of the V$DATABASE view on the
primary database:
SWITCHOVER_STATUS
--------------------
TO PRIMARY
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE
Database altered.
On New Standby:-
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE
Database altered.
On New Primary:-
Reference:
https://support.oracle.com/epmos/faces/DocumentDisplay?
_afrLoop=579890596063881&id=1304939.1&_adf.ctrl-state=1emnpr0uk_267
Catch Me On:- Hariprasath Rajaram
Telegram:https://t.me/joinchat/I_f4DhGF_Zifr9YZvvMkRg
LinkedIn:https://www.linkedin.com/in/hari-prasath-aa65bb19/
Facebook:https://www.facebook.com/HariPrasathdba
FB Group:https://www.facebook.com/groups/894402327369506/
FB Page: https://www.facebook.com/dbahariprasath/?
Twitter: https://twitter.com/hariprasathdba
Share via:
Achievement
Search
Search here..
Categories
Archives
Select Month
Tags
Recent Posts
Patching Oracle Enterprise Manager 13c Release 4 Update 12 For OMS And Weblogic
Patching Oracle 19c Grid Infrastructure for a Standalone server-Oracle Restart
Apply Patching 32904851 Oracle 19c Database Release Update 19.12.0.0.0
Oracle Database Critical Patch Update Advisory – July 2021
Oracle Database Security Assessment Tool-Version 2.2.2
Get updated