Perform a Manual Failover

When Autonomous Data Guard cannot automatically fail over to a local standby database, if a local standby database is available you can perform a manual failover to make the local standby database the primary database.

If a cross region standby is available, you can perform a switchover to make the cross region standby database the primary database. If the switchover fails, you can initiate a manual failover to the cross region standby. It is possible for data loss to occur with a manual failover.

When you initiate a manual failover Autonomous Data Guard fails over to the standby database based on the Recovery Time Objective (RTO) and Recovery Point Objective (RPO) targets. See Autonomous Data Guard Recovery Time Objective (RTO) and Recovery Point Objective (RPO) for more information.

Perform Manual Failover to a Local Standby Database

When Autonomous Data Guard cannot automatically fail over to a local standby database, if a local standby database is available you can perform a manual failover to make the local standby database the primary database.

When you add a local Autonomous Data Guard standby and automatic failover is not successful, Oracle Cloud Infrastructure console shows a banner with information about why the automatic failover was not successful. The Oracle Cloud Infrastructure console also shows a failover link in the Role field that you can click to initiate a manual failover to the local standby. The failover link only shows when the primary database is unavailable and a standby database is available. That is, the Lifecycle state field shows Unavailable and the local standby database is available.

Using the API, you can initiate manual failover at any time. See Use the API for information on using the API.

To see the standby database status, on the details page, select the Disaster recovery tab and for the standby database listed in the Peer Autonomous AI Database column, check that the State field shows Available or Stopped.

Perform the following prerequisite steps as necessary:

To initiate a manual failover when the primary database is unavailable and the local standby is available:

  1. On the Autonomous AI Database details page, under Disaster recovery, in the Local field, click Failover.

    This shows the Confirm failover to peer dialog, along with information on possible data loss that may result if you perform the manual failover to standby.

    Description of adb_failover_manual.png follows

    Description of the illustration adb_failover_manual.png

  2. In the Confirm failover to peer dialog, enter the Autonomous AI Database name to confirm that you want to failover.

  3. In the Confirm failover to peer dialog, click Failover.

After the failover completes, Autonomous AI Database reports the time of the last switchover in the Role field on the Autonomous AI Database Details page under Disaster recovery.

See Notes for Manual Failover with a Standby Database for information on steps that Autonomous Data Guard takes after failover completes.

Perform Manual Failover to a Cross Region Standby Database

If a cross region peer is available you can perform a switchover to make a cross region peer the primary database. If the switchover fails, you can initiate a manual failover to the cross region peer.

It is possible for data loss to occur with a manual failover. When you initiate a manual failover, Autonomous AI Database fails over to the peer database based on the Recovery Time Objective (RTO) and Recovery Point Objective (RPO) targets. See Autonomous Data Guard Recovery Time Objective (RTO) and Recovery Point Objective (RPO) for more information.

With both a local Autonomous Data Guard standby and one or more cross region Autonomous Data Guard standby databases, when automatic failover is not successful and the local standby database is available, Oracle recommends that you attempt a manual failover to the local standby first (not to a remote standby).

If a local standby is unavailable or a manual failover to the local standby fails, you can perform a manual switchover to a cross region standby. If the switchover to the cross region standby fails, on the standby database the Oracle Cloud Infrastructure Console shows a Failover link in the Role field that you can click to initiate a manual failover to the standby database.

Using the API, you can initiate manual failover at any time. See Use the API for information on using the API.

Note: When Full Stack Disaster Recovery is enabled, the Autonomous AI Database details page, under Disaster recovery, shows the Full Stack DR field as Enabled. See Use Full Stack Disaster Recovery to Perform Switchover or Failover Operations for details on performing a switchover or a failover when Full Stack Disaster Recovery is enabled.

Perform the following prerequisite steps as necessary:

To initiate a manual failover to a cross region standby:

  1. On the standby database, perform a switchover. See Perform a Switchover to a Cross Region Standby for details.

  2. If the switchover attempt in Step 1 fails, on the standby database the Role field shows a Failover link. On the standby database, click the Failover link.

    This shows the Confirm failover to standby dialog, along with information on possible data loss that may result if you perform the manual failover to the standby database.

  3. In the Confirm failover to standby dialog, enter the Autonomous AI Database name to confirm that you want to failover.

  4. In the Confirm failover to standby dialog, click Failover.

    When concurrent operations such as scaling are active, the confirmation also confirms either pausing or canceling the concurrent operation. See Concurrent Operations on Autonomous AI Database for more information.

After the failover completes, Autonomous AI Database reports the time of the last switchover in the Role field on the Autonomous AI Database Details page under Disaster recovery.

See Notes for Manual Failover with a Standby Database for information on steps that Autonomous Data Guard takes after failover completes.

Notes for Manual Failover with a Standby Database

When the failover completes, Autonomous Data Guard performs post failover steps.