Switchover on dataguard

Switchover is an activity which acts as a role reversal with guaranteed protection to data.

Here primary database acts as a standby and standby database acts as a primary!!

We can perform switchover in situations like maintenance of primary database like patching,migration of a database from one server to another etc..

ON PRIMARY:


[oracle@orcl ~]$ sqlplus / as sysdba

Check the role of database and log shipping status.

Switchover status should be “To standby” and Database role should be “Primary

Check the redolog status which is “current

On primary check log sequence which are applied on standby

check the archive destinations if they are valid !!

Create a restore point with guaranteed flashback before switchover to avoid any failures

Issue the following command to commit the primary to switchover to standby

Automatically the instance get down

Then startup database in nomount stage and then mount the database in standby mode

Then enable the MRP on new standby and check the status of switchover status on old primary

ON STANDBY:

Check the status of the log shipping on standby database whether primary and standby log sequence are in sync

Check the database role and switchover status of standby database and issue the following command –> commit to switchover to primary and shutdown the database

Then startup in mount stage and again check the status of the database role and switchover status of standby database.Database role should be primary on the new primary !!

switch the logfile multiple times on new primary (old standby)

Check the status of the log sequence in new standby and new primary !!!

Published by kishan

You will know about me.

One thought on “Switchover on dataguard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: