Backup-Based Disaster Recovery Switchover and Failover Operations

Describes switchover and failover operations with an Backup-Based Disaster Recovery peer database.

About Switchover to a Backup Copy Peer

When you perform a switchover, the primary database becomes the backup copy and the backup copy becomes the primary database, with no data loss.

A switchover is typically done to test failover to the backup copy for audit or certification reasons, or to test your application’s failover procedures when you have added a backup copy peer.

For switchover to a backup copy peer, the Autonomous AI Database Details page, shows the Switchover link under Disaster recovery and the Oracle Cloud Infrastructure Console on the primary database also shows a Switchover link in the Role field when both the primary database and a backup copy peer are available. You can perform a switchover when the primary database Lifecycle state shows Available or Stopped and a backup copy is available (the State field shows Standby).

To see the peer state, on the Autonomous AI Database details page, select the Disaster recovery tab and for the peer listed in the Peer Autonomous AI Database column, check that the State shows Standby.

Using the Autonomous AI Database API, you can initiate the switchover operation at any time. See Use the API for more information.

Perform a Switchover to a Local Backup Copy Peer

When you perform a switchover the primary database becomes the peer, and the peer becomes the primary database, with no data loss.

A switchover is typically done to test failover to the peer for audit or certification reasons or to test your application’s failover procedures with Backup-Based Disaster Recovery.

For a switchover to a backup copy, the Autonomous AI Database Details page, the Oracle Cloud Infrastructure Console on the database with the Primary role shows a Switchover link in the Role field when both the primary database and a peer are available. You can perform a switchover when the primary database Lifecycle state shows Available or Stopped and a peer is available (the State field shows Standby).

To see the peer status, select the Disaster recovery tab and for the peer listed in the Peer Autonomous AI Database column, check that the State field shows Standby.

Using the Autonomous AI Database API, you can initiate the switchover operation at any time. See Use the API for more information.

Perform the following prerequisite steps as necessary:

To perform a switchover, do the following:

  1. On the Autonomous AI Database Details page, under Disaster recovery, in the Role field, click Switchover.

    As an alternative, to initiate a switchover you can select More actions and Switchover or select the Disaster recovery tab anc click Switchover.

  2. In the Confirm switchover to peer dialog, in the Select peer list, choose the peer to switchover.

  3. Enter the database name to confirm that you want to switch over.

  4. Click Confirm switchover to peer.

    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.

    The database lifecycle state badge shows Updating. To see the state of the peer select the Disaster recovery tab. On the Disaster recovery tab the State column shows Role Change in Progress.

When the switchover completes, Backup-Based Disaster Recovery does the following:

Perform a Switchover to a Cross Region Backup Copy Peer

When you perform a switchover, the primary database becomes the peer database and the peer database becomes the primary database, with no data loss.

Note: For a cross region switchover you must initiate the switchover from the cross region peer.

You have several options to access the cross region peer:

To perform a switchover:

  1. On the cross region peer, on the Autonomous AI Database Details page, under Disaster recovery, in the Role field, click Switchover.

    As an alternative, in the row showing the database's disaster recovery details, click more actions at the end of the row and select Switchover.

  2. In the Confirm switchover to peer dialog, enter the peer database name to confirm that you want to switch over.

  3. In the Confirm switchover to peer dialog, click Confirm switchover to peer.

    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.

    The database Lifecycle state changes to Role change in progress. To see the state of the peer database, select the Disaster recovery tab. The state State shows Updating.

When the switchover completes, Autonomous AI Database does the following:

See Notes for Performing a Switchover for more information.

Perform a Failover

When the primary database goes down, with Backup-Based Disaster Recovery you can perform a manual failover to make the local peer the primary database.

Backup-Based Disaster Recovery does not provide an automatic failover option. If you want to provide automatic failover, where the system monitors the primary instance and automatically fails over to a local standby database in certain scenarios, you need to change the disaster recovery type for the local instance to use Autonomous Data Guard.

With both a local Backup-Based Disaster Recovery peer and a cross region Backup-Based Disaster Recovery peer, Oracle recommends that you attempt a manual failover to the local peer first (not to the cross region peer).

Depending on how you enable Backup-Based Disaster Recovery, there are different steps to perform a manual failover to a peer:

When you initiate a manual failover it is failed over to the peer based on the Recovery Time Objective (RTO) and Recovery Point Objective (RPO) targets. See Backup-Based Disaster Recovery Recovery Time Objective (RTO) and Recovery Point Objective (RPO) for more information.

Perform the following prerequisite steps as necessary:

To initiate a manual failover to a cross region backup copy, do the following:

  1. On the peer, perform a switchover. See Perform a Switchover to a Local Backup Copy Peer for details.

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

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

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

  4. In the Confirm manual failover to peer dialog, click Confirm manual failover to peer.

    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.

To initiate a manual failover when the Primary database is unavailable and the local Peer is available, do the following:

  1. On the Details page, under Disaster recovery, in the Role field, click Failover.

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

    Description of adb_failover_manual.png follows

    Description of the illustration adb_failover_manual.png

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

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

When the failover completes, Backup-Based Disaster Recovery does the following:

Notes for Performing a Switchover to a Backup Copy Peer

Provides notes for Backup-Based Disaster Recovery switchover: