DR DC Manual Switch Over
DR DC Manual Switch Over
DR DC Manual Switch Over
1. Verify that there is network connectivity between the primary and standby locations.
2. Each location in the Data Guard configuration should have connectivity through Oracle
Net to the primary database and to all associated standby databases.
4. For switchover operations involving a physical standby database, the primary database instance
is open and the standby database instance is mounted.
5. The standby database that you plan to transition to the primary role must be mounted before you
begin the switchover operation. Ideally, the physical standby database will also be actively
recovering archived redo logs when the database roles are switched. If the physical standby
database is open for read-only access, the switchover operation still will take place, but will require
additional time.
6. Place the standby database that will become the new primary database in
ARCHIVELOG mode.
7. Remove any redo data application delay in effect on the standby database.
8. Verify that the Standby Database is not in delayed recovery mode. Change the recovery mode to
no delay before switchover/switchback.
1. Verify that it is possible to perform a switchover operation. On the primary query the
.
switchover_status column of v$database to verify that switchover to standby is possible
sql> select switchover_status from v$database;
SWITCHOVER_STATUS
------------------
TO STANDBY
NOT ALLOWED - Either this is a standby database and the primary database has not
been switched first, or this is a primary database and there are no standby databases.
SESSIONS ACTIVE - Indicates that there are active SQL sessions attached to the primary
or standby database that need to be disconnected before the switchover operation is permitted.
SWITCHOVER LATENT - The switchover was in pending mode, but did not complete and
went back to the primary database.
TO PRIMARY - This is a standby database, with no active sessions, that is allowed to switch
over to a primary database.
TO STANDBY - This is a primary database, with no active sessions, that is allowed to switch
over to a standby database.
RECOVERY NEEDED - This is a standby database that has not received the switchover
request.
Note that if the status returns SESSIONS ACTIVE then you should append the with session
shutdown clause to the command in step 5.