About Standby Databases

Provides information about enabling and using Autonomous Data Guard for disaster recovery on Autonomous AI Database.

When you use Autonomous Data Guard, the system creates a standby database that is continuously updated with the changes from the primary database. You can use Autonomous Data Guard with a standby in the current region, a local standby, or with one or more standby databases in different regions, cross region standby databases, or you can add both a local standby and one or more a remote standby databases.

You can also create an Autonomous Data Guard standby, either local or remote in a different tenancy.

By selecting from the disaster recovery options that Autonomous AI Database provides, you can choose the features and options that meet your Recovery Time Objective (RTO) and Recovery Point Objective (RPO) requirements.

By default, each Autonomous AI Database instance provides a local Backup-Based Disaster Recovery peer database.

To add automatic failover and to lower your Recovery Time Objective (RTO), you can use a local Autonomous Data Guard standby database.

To use the most resilient disaster recovery option that Autonomous AI Database offers, you can add a local Autonomous Data Guard standby database and one or more cross region Autonomous Data Guard standby databases.

In addition, other options using Backup-Based Disaster Recovery enable you to provide lower cost and higher Recovery Time Objective (RTO) disaster recovery options, as compared to Autonomous Data Guard. See Use Backup-Based Disaster Recovery for details on Backup-Based Disaster Recovery.

Autonomous Data Guard with Local Standby

When you use an Autonomous Data Guard standby database in the current region, Autonomous AI Database provisions a local standby database and monitors the primary database; if the primary database goes down, the standby instance can automatically assume the role of the primary instance or you can fail over to the standby database yourself.

Local Autonomous Data Guard peer databases incur the additional cost of the base CPUs and the storage of the Primary database, including any auto scaled storage usage, billed on the Primary database itself. auto scaled CPUs of the Primary database are not billed for additionally on the local Autonomous Data Guard peer database. See Oracle Autonomous AI Database Serverless Features Billing for more information.

All databases with a local Autonomous Data Guard standby are protected by zero data loss by default, during normal operation. Redo is sent synchronously to the standby redo log destination, and the primary database does not commit transactions until it receives acknowledgment that the data has been received on the standby redo log destination. If the primary database does not receive an acknowledgment within specific time thresholds (due to a network problem, for example), the standby may temporarily fallback to operate asynchronously to preserve primary database availability until it starts to receive acknowledgments in a timely manner again.

See Zero Data Loss Protection with Local Autonomous Data Guard for more information.

Adding a local standby database provides an identical standby database that allows the following, depending on the state of the primary database:

Autonomous AI Database does not provide access to a standby database in the current region. You perform all operations, such as scaling up the ECPU count (OCPU count if your database uses OCPUs) and enabling compute auto scaling on the primary database, and Autonomous Data Guard then performs the same actions on the local standby database. Likewise, you only perform actions such as stopping or restarting the database on the primary database.

A local standby database is created in the same region as the primary database (current region). For better resilience, the standby database is provisioned as follows:

See View Network Information on the OCI Console and Regions and Availability Domains for more information on availability domains.

All Autonomous AI Database features from the primary database are available when the local standby instance becomes the primary, after the system fails over or after you perform a switchover operation, including the following:

Zero Data Loss Protection with Local Autonomous Data Guard

Autonomous AI Database provides zero data loss protection (Recovery Point Objective, RPO = 0) when a local Autonomous Data Guard standby is enabled. It uses synchronous redo transport between the primary and standby databases to ensure that all committed transactions are protected.

This capability is fully managed and requires no additional configuration or tuning. It maintains existing performance and does not introduce additional cost, removing traditional trade-offs between protection and operations.

If you are using a local Autonomous Data Guard standby, zero data loss protection is automatically enabled and no user action is required. As a result, you can achieve zero data loss protection with minimal effort while maintaining performance and cost efficiency.

This capability provides the following benefits:

Autonomous Data Guard with Cross Region or Cross Tenancy Standby

You can add a cross region or a cross tenancy Autonomous Data Guard standby database.

When you add a standby database in a different region, if the primary instance goes down, Autonomous Data Guard provides a standby database that is physically separated in a remote region. The standby database is available to assume the role of the unavailable primary instance. When you add a standby database in a different tenancy, Autonomous Data Guard provides a standby database that is in a different tenancy. The standby database is available to assume the role of the unavailable primary instance.

See About Autonomous Data Guard with Cross Region Standby for more information.

Autonomous Data Guard Recovery Time Objective (RTO) and Recovery Point Objective (RPO)

Autonomous Data Guard monitors the primary database and if the instance goes down, the local standby instance assumes the role of the primary instance, according to the Recovery Time Objective (RTO) and Recovery Point Objective (RPO).

If a local Autonomous Data Guard standby instance is not available and you have enabled cross region disaster recovery, you can manually fail over to the cross region standby.

If you do not add a cross region Autonomous Data Guard standby, you have the option to add a cross region Backup-Based Disaster Recovery peer. See Backup-Based Disaster Recovery Recovery Time Objective (RTO) and Recovery Point Objective (RPO) for details on the RTO and RPO with Backup-Based Disaster Recovery.

The RTO is the maximum amount of time required to restore database connectivity to a standby database after a manual or automatic failover is initiated. The RPO is the maximum duration of potential data loss on the primary database.

Local Autonomous Data Guard Standby

When you add a local standby database Autonomous Data Guard provides these options for failover or switchover:

Cross Region Autonomous Data Guard Standby

When you add a cross region standby database, the RTO and RPO numbers for failover to the Autonomous Data Guard cross region standby are as follows:

See the following for more information:

Autonomous Data Guard Operations

Autonomous Data Guard provides a set of operations to manage a standby database, including: to enable, switchover, disconnect, or terminate a standby database.

Operation Description
Convert to Snapshot Standby

Converting a disaster recovery peer to a snapshot standby opens the database in read-write mode and the cross region disaster recovery peer temporarily stops refreshing data from the source database.

See Convert cross region Peer to Snapshot Standby for more information.

Disable Autonomous Data Guard

If you have a local standby database or a cross region standby database, you can change the disaster recovery type to Backup-Based Disaster Recovery for the local standby or you can terminate a cross region standby. In either case, disabling Autonomous Data Guard terminates the standby database.

See Update Standby to Use a Backup Copy Peer or Disable a cross region Standby Database for details.

Disconnect Standby

When you disconnect a cross region standby, the standby is disassociated from the Primary database. This converts the database from a peer database to a standalone database. Following the disconnect operation you are not allowed to reconnect to the Primary.

See Disconnect a Peer Database and Disconnect a Snapshot Standby for more information.

Enable Autonomous Data Guard

If you are using Backup-Based Disaster Recovery, you can update your disaster recovery type to local (current region) Autonomous Data Guard, or you can add an Autonomous Data Guard cross region standby.

See Enable Autonomous Data Guard and Add a cross region Standby Database for details.

Failover - Automatic

After you add a local Autonomous Data Guard standby database, the system monitors the primary instance and automatically fails over to a local standby database in certain scenarios.

See Automatic Failover with a Standby Database for more information.

Failover - Manual

If the primary database is not available you can perform a manual failover to change roles to make a standby database the primary database:

  • If a local standby is available, you can manually failover to the local standby (you do not have the option to failover to a remote standby if a local standby is available).
  • If a local standby is not available, you have the option to manually failover to a remote standby.

See Perform a Manual Failover for details.

Switchover

When Autonomous Data Guard is enabled, switchover changes the roles of the primary and the standby, the standby database becomes the primary, and the primary database becomes the standby. If you have both a local standby database (current region), and a cross region standby database (remote), you can choose to switchover to either the local standby or the remote standby.

See Perform a Switchover for details.

Terminate

If you want to terminate the primary instance, select More actions and Terminate. Terminating the primary instance also terminates a local standby database.

If you have both a local standby database (current region), and a cross region standby database, you must terminate the cross region standby database before you terminate the primary database.

See Terminate a cross region Standby Database for details.

Autonomous AI Database Disaster Recovery Status

Autonomous AI Database provides information about disaster recovery status on the Autonomous AI Database Details page.

In the Disaster recovery area:

The Role field shows the role of the current database, as follows:

To view the peer Autonomous AI Database information, on the Autonomous AI Database details page select the Disaster recovery tab. This shows the peer Autonomous AI Database information. The State column shows the state of a standby database, as follows:

Autonomous Data Guard Events

You can use Oracle Cloud Infrastructure events to respond when Autonomous AI Database changes its state due to an Autonomous Data Guard related event such as a failover or switchover operation.

Autonomous AI Database events include the following:

Based on events you can perform actions or send notifications. See Events and Notifications for a Standby Database for more information on using events and producing notifications.

Autonomous Data Guard Metrics

You can use Oracle Cloud Infrastructure metrics to monitor Autonomous Data Guard.

Autonomous AI Database metrics includes Peer Lag which is the total time in seconds by which the Disaster Recovery peer lags behind its Primary database.

See Available Metrics: oci_autonomous_database for more information.