100% found this document useful (1 vote)
138 views2 pages

ORACLE Graceful Switch Over

The document outlines the steps to perform a switchover between a primary and physical standby database. It involves checking configuration parameters on both databases like datafiles, controlfiles, redo logs. On the primary, it verifies the ability to switchover and shuts down the database. On the standby, it commits to becoming the new primary. The old primary then recovers as a new standby while the new primary enables archiving.

Uploaded by

Rajneesh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
138 views2 pages

ORACLE Graceful Switch Over

The document outlines the steps to perform a switchover between a primary and physical standby database. It involves checking configuration parameters on both databases like datafiles, controlfiles, redo logs. On the primary, it verifies the ability to switchover and shuts down the database. On the standby, it commits to becoming the new primary. The old primary then recovers as a new standby while the new primary enables archiving.

Uploaded by

Rajneesh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Prechecks Crosscheck following parameters or primary and standby:

Check Datafile, Controlfiles, Redologs file paths select name from v$datafile; select name from v$controlfile; select member from v$logfile; log_file_name_convert On Primary log_file_name_convert='/data1/wiprodr,/data1/wipro' On Standby log_file_name_convert='/data1/wipro,/data1/wiprodr' db_file_name_convert On Primary db_file_name_convert='wiprodr','wiprot' On Standby db_file_name_convert='wiprot','wiprodr' log_archive_dest_1 On Primary log_archive_dest_1='location="/data1/arch/wipro", lgwr mandatory reopen=5 valid_for=(online_logfile,primary_role)' On Standby log_archive_dest_1='location=use_db_recovery_file_dest lgwr mandatory reopen=5 valid_for=(online_logfiles,primary_role)' log_archive_dest_2 On Primary log_archive_dest_2='service=wiprotdr lgwr async valid_for=(online_logfiles,primary_role) db_unique_name=wiprotdr' On Standby log_archive_dest_2='service=wipro lgwr async valid_for=(online_logfiles,primary_role) db_unique_name=wipro' standby_archive_dest On Primary standby_archive_dest = '/data1/arch/wipro' On Standby standby_archive_dest = '/data1/arch/wipro' Listener status (on Primary and Standby lsnrctl status <LISTENER_NAME>

Steps to be performed on Primary


Verify that it is possible to perform a switchover

select switchover_status FROM v$database; SWITCHOVER_STATUS -----------------TO STANDBY

Note : Ensure No active sessions should be present SQL> alter database commit to switchover to physical standby ; Note : If SWITCHOVER_STATUS returns "SESSIONS ACTIVE" SQL> alter database commit to switchover to physical standby with session shutdown; SQL> shutdown immediate SQL> startup nomount ; SQL > alter database mount standby database; SQL > alter system set log_archive_dest_state_2 = defer; Steps to be performed on Standby Database Verify that the physical standby can be converted to the new primary

select switchover_status FROM v$database; SWITCHOVER_STATUS -----------------SWITCHOVER PENDING

SQL > alter database commit to switchover to primary; Note : If SWITCHOVER_STATUS returns "SESSIONS ACTIVE" SQL> alter database commit to switchover to primary with session shutdown; SQL > shutdown immediate; SQL > startup ; Steps to be performed on New Standby Database Primary) (Old

SQL > alter database recover managed standby database disconnect from session; Steps to be performed on New Primary Database Standby) SQL > alter system set log_archive_dest_state_2 = enable; SQL > alter system archive log current; Note : Add Temp file to the database (Old

You might also like