Professional Documents
Culture Documents
================
-- Check that there are no REDO Transport ERRORS or REDO GAPS at the STANDBY
dbs. (v$archive_dest_status view on Primary db)
STATUS GAP_STATUS
--------- ------------------------
VALID NO GAP
-- Do not proceed until the value of the STATUS column is VALID and the value
of the GAP_STATUS column is NOGAP.
-- Ensure TEMPORARY files exist on the STANDBY DB, that match the TEMPORARY
files on PRIMARY DB.
-- Remove any delay in applying redo that may be in effect on the standby
database..
SWITCH OVER :
=============
A SWITCH OVER is typically used to reduce PRIMARY database DOWNTIME during PLANNED
OUTAGES like :
-- OS or H/w upgrades,
-- Rolling Upgrades of oracle db sw
-- Patch sets
FAILOVERS:
==========
Failover is typically used only when the PRIMARY db becomes UNAVAILABLE and there
is no POSSIBILITY of Restoring it.
SWITCHOVER_STATUS
-----------------
TO STANDBY
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN;
Step 3 Shut down and then mount the former primary database.
Step 4 Verify that the switchover target is ready to be switched to the primary
role.
SWITCHOVER_STATUS
-----------------
TO_PRIMARY
Step 5 Switch the target physical standby database role to the primary role.
Step 1 Flush any unsent redo from the primary database to the target standby
database.
-- If the primary database can be mounted, it may be possible to flush any unsent
archived and current redo from the primary database to the standby database
Step 2 Verify that the standby database has the most recently archived redo log
file for each primary database redo thread.
If the error condition cannot be resolved, a failover can still be performed (with
some
data loss)
Step 7 Verify that the target standby database is ready to become a primary
database
SWITCHOVER_STATUS
-----------------
TO PRIMARY
Step 11 Restart Redo Apply if it has stopped at any of the other physical standby
databases in your Data Guard configuration.
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE
DISCONNECT FROM SESSION;