SOP DC-DR Database DRILL
SOP DC-DR Database DRILL
=====================================
CBS Oracle Database have 3 Container Databases RSCBCDB1DC, RSCBCDB3DC & RSCBCDB4DC at BSDC, Jaipur location.
All these three Container databases can be switched over to Jodhpur-DC, Jodhpur location as per requirement.
The document describes the steps for switchover of one Container database RSCBCDB4DC and in the same manner
other two RSCBCDB1DC and RSCBCDB3DC can be switched to Jodhpur-DC, Jodhpur location.
1. Check the Database roles of Primary and Standby Databases. Also check the SYNC status of all Standby
databases with primary database.
SQL> select name,db_unique_name,open_mode,database_role from v$database; >> run command on both Primary
and all Standby database
SWITCHOVER_STATUS
--------------------
TO STANDBY
4. Successful execution of above command shows current Primary database RSCBCDB4DC is ready for switchover TO
STANDBY, so now switch the same.
SQL > alter database switchover to rscbcdb4; >> Run from 1st node of RSCBCDB4DC
Now RSCBCDB4 became new Primary database in MOUNT mode and RSCBCDB4DC became Standby database that will
shutdown automatically.
5. After switchover new Primary database RSCBCDB4 will open in MOUNT mode with database role PRIMARY. Run the
following commands on RSCBCDB4 to open the CDB and all pluggable databases.
6. Change the default startup option from MOUNT to OPEN for new primary database RSCBCDB4.
8. For DR-SYNC (RSCBCDB4DC), on new primary database RSCBCDB4 change the parameter log_archive_dest_3. Check
SYNC after the change.
9. New Standby database RSCBCDB4DC after the switchover will be shutdown with database role PHYSICAL STANDBY.
Start new standby database RSCBCDB4DC in mount mode.
10. Check the RFS processes on new standby database RSCBCDB4DC and run the MRP process.
SQL> recover managed standby database disconnect; >> Run on any one node
11. Change the default startup option in srvctl from OPEN to MOUNT for new standby database RSCBCDB4DC.
12. For CASCADE-DR SYNC (RSCBCDB4NDR), on new standby database RSCBCDB4DC change the parameter
log_archive_dest_2. Check SYNC after the change.
14. Make changes in parameters of dbrpt4dr, new primary database RSCBCDB4 and new standby database RSCBCDB4DC
so that it will start sync from new primary RSCBCDB4.
**********************************************************************************
=================== CURRENT DATABASE PARAMETERS BEFORE SWITCHOVER ================
**********************************************************************************
------------------------------- RSCBCDB4DC ---------------------------------------
log_archive_dest_1 location=use_db_recovery_file_dest valid_for=(all_logfiles,all_roles)
db_unique_name=rscbcdb4dc
log_archive_dest_2 service=rscbcdb4ndr async noaffirm reopen=15
valid_for=(online_logfiles,primary_role) db_unique_name=rscbcdb4ndr
log_archive_dest_3 service=rscbcdb4 async noaffirm reopen=15
valid_for=(online_logfiles,primary_role) db_unique_name=rscbcdb4
log_archive_dest_4 service=dbrpt4dr async noaffirm reopen=15
valid_for=(online_logfiles,primary_role) db_unique_name=dbrpt4dr
log_archive_dest_state_1 enable
log_archive_dest_state_2 ENABLE
log_archive_dest_state_3 ENABLE
log_archive_dest_state_4 ENABLE
fal_client RSCBCDB4DC
fal_server RSCBCDB4NDR,RSCBCDB4,DBRPT4DR
log_archive_config dg_config=(rscbcdb4dc,rscbcdb4ndr,rscbcdb4,dbrpt4dr)
remote_listener pdc-scan3:1521
db_unique_name rscbcdb4dc