O'Reilly logo

Oracle Data Guard 11gR2 Administration Beginner's Guide by Nassyam Basha, Emre Baransel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required