Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to fail over to standby safely (san storage upgrade)

User_UAEUZMar 15 2016 — edited Mar 20 2016

Hi all,

My primary database is on the SAN storage and the SAN is having a firmware upgrade on the coming week.

I have a Active dataguard standby setup using the internal disks of the database server, so in case the SAN firmware upgrade encounter issue ( I can still use the standby without changing the network environment)

I also have the luxury do shutdown the primary database before doing the SAN firmware upgrade. Therefore my only concern is to have all changes flushed to standby so that I can have 0 data lost even if the SAN went down permanently due to firmware upgrade issues.

q1) Is my following steps correct ?

On primary

1) shutdown primary database and startup mount;

2) alter system flush redo to standby;

On standby

3) alter database recover managed standby database cancel;

4) alter database recovery managed standby database finish;

5) SELECT SWITCHOVER_STATUS FROM V$DATABASE; -- return either TO PRIMARY or SESSIONS ACTIVE

q2) Beside the above, how do we verify that both databases are actually in sync ?

- checking V$ARCHIVE_GAP  in standby ?  or

- checking v$datafile_header.checkpoint_change#  in both PRIMARY and STANDBY ?

=================================

If SAN storage upgrade fail
On standby

6)  ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY WITH SESSION SHUTDOWN;

7) ALTER DATABASE OPEN;

if SAN storage upgrade pass

On Primary

6) STARTUP DATABASE;

On Standby

7) ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;

Right ?

Regards,

Noob

This post has been answered by Shivananda Rao on Mar 19 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 17 2016
Added on Mar 15 2016
19 comments
5,037 views