Dataguard switchover steps:
On the standby database:
Primary: Single, Standby: Single
#################################################################################################
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
#################################################################################################
On the primary database:
alter database commit to switchover to standby with session shutdown;
shutdown immediate;
startup nomount;
alter database mount standby database;
On the standby again:
alter database commit to switchover to primary WITH SESSION SHUTDOWN;
On the new standby:
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;
#################################################################################################
Primary: RAC, Standby: Single
Since You are using 2 node RAc as primary, so for switchover operation you need to shutdown
one database instance( Suppose instance 2).
Suppose your node1:
hostname is dcpdb1
and node 2:
hostname is dcpdb2
and standby hostname is drpdb1
So follow this steps for switchover .
How to Switchover from Primary to Standby Database?
Process:
On the primary server, check the latest archived redo log and force a log switch.
*########### Login dcpdb1 as Oracle user #########*
SQL> SELECT sequence#, first_time, next_time
FROM v$archived_log
ORDER BY next_time;
SQL> ALTER SYSTEM SWITCH LOGFILE;
Check the new archived redo log has arrived at the standby server and been applied.
*########### Login drpdb1 as Oracle user #########*
SQL> SELECT sequence#, first_time, next_time, applied
FROM v$archived_log
ORDER BY next_time ;