Time for action – failover with a physical standby database using SQL*Plus

Follow these steps to complete a failover on the physical standby Data Guard environment:

  1. If you're able to mount a primary database, perform the following command to flush the redo from the primary online redo logfiles:
    SQL> alter system flush redo to INDIA_UN;

    Use DB_UNIQUE_NAME of the standby database so that redo will be sent to the respective standby database.

  2. Check the status of both the primary and standby databases. With the primary database in the MOUNT state, check the maximum archive log sequence that has been generated as shown in the following code:
    SQL> select max(sequence#) from v$archived_log;
    MAX(SEQUENCE#)
    --------------
               462
  3. If the primary database is inaccessible, ...

Get Oracle Data Guard 11gR2 Administration Beginner's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.