You are on page 1of 2

Oracle dataguard broker

Switchover

A switchover (or graceful switchover) is a planned role reversal between the


primary and the standby databases.

Failover
A failover operation is what happens when the primary database is no longer
available.
The failover operation only happens on the standby database.
The failover operation activates the standby database and turns this into
a primary database.
This process cannot be reversed so the decision to failover should be
carefully made.
The failover process is initiated during a real disaster or severe outage.

Manual Failover Fast-start failover

Type 1: Complete Failover Configuration is made in DG Broker

It attempts to minimize data loss by applying When Primary Database is unavailable,


all redo log generated on Primary Database dgbroker will fail over primary database role
will be applied to a standby database. to One of standby database configured
previously in dgbroker.

Type 2: Immediate Failover Old primary database will be disabled from


the Data Guard configuration.

no additional data is applied on a standby If primary database crashed and generated


database. This is fastest and we need to archived not copied to standby database
explicitly define this. then data loss is possible.

Performing Manual Failover

SQL> select name,open_mode,database_role from v$database;

SQL> alter database recover managed standby database finish;

SQL> alter database activate standby database;

SQL> select name,open_mode,database_role from v$database;

SQL> shut immediate;


SQL> startup

SQL> select name,open_mode,database_role from v$database;

You might also like