About Autonomous Data Guard with Cross Region Standby

Provides information on features and operation of Autonomous Data Guard with a cross region or a cross tenancy 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.

A cross region standby database is a replica of the primary database and may be used for recovery in case of failure or when the primary is not available. Enabling Autonomous Data Guard with a cross region standby provides a low RTO solution for disaster recovery in the event an entire region is not available or when the primary database is down for any reason.

Autonomous Data Guard cross region standby databases incur the additional cost of the base CPUs and twice the storage of the Primary database, including any auto scaled storage usage, billed on the remote peer database. auto scaled CPUs of the Primary are not billed for additionally on the remote peer database. The number of base CPUs is specified by the number of ECPUs (OCPUs if your database uses OCPUs) as shown in the ECPU count (OCPU count) field on the Oracle Cloud Infrastructure Console.

Autonomous AI Database allows you to create one or more remote disaster recovery peer databases, depending on your compute model:

Paired regions are remote regions where you can create a cross region standby database. See Autonomous AI Database Cross Region Paired Regions for more information on paired regions.

You perform almost 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. Autonomous Data Guard then performs the same actions on the cross region standby database.

After you add a remote standby database, Autonomous AI Database provides access to the remote standby database from the Oracle Cloud Infrastructure Console. Autonomous AI Database provides access to the remote standby database so that you can perform some operations independently on the remote standby, such as configuring networks and VCNs for private endpoints and adding tagging to define keys and values that are not replicated between the primary database and the remote standby.

Note: Autonomous Data Guard does not perform automatic failover for a cross region standby. If the primary database is unavailable and a local standby is unavailable, you can perform a manual failover to make a cross region standby database assume the primary role.

You cannot connect to a cross region standby while it operates as a standby database, and it is not available for read-only operations. You can connect to the database in the following cases:

The following areas have differences for failover or switchover from the primary database to a remote standby database, when compared to failover or switchover to a local standby:

Cross Tenancy Autonomous Data Guard with Cross Region Standby

You can enable cross tenancy Autonomous Data Guard with a cross region standby. When you add a cross tenancy Autonomous Data Guard standby database in a different region, Autonomous AI Database provisions a cross region standby database in the destination tenancy. With a cross tenancy Autonomous Data Guard standby, you can failover, switchover, or create a snapshot standby with a cross region standby in a different tenancy. This feature allows you to use Autonomous Data Guard to migrate a database to a different tenancy.

See Use a Cross Tenancy Autonomous Data Guard Standby Database for more information.

OCI Full Stack Disaster Recovery with an Autonomous Data Guard Cross Region Standby

When Full Stack Disaster Recovery is enabled, the Autonomous AI Database details page, under Disaster recovery, shows the Full Stack DR field as Enabled.

Description of adb_full_stack_dr_enabled.png follows

Description of the illustration adb_full_stack_dr_enabled.png

See Use OCI Full Stack Disaster Recovery with Autonomous AI Database for more information.

Autonomous Data Guard Database Role

After you add a cross region standby database, each database has a designated role: primary, standby, or snapshot standby.

The role specifies the current state of a database, primary, standby, or snapshot standby, and this value changes after you perform a switchover or a failover or after you convert a standby database to a snapshot standby. You can view the Autonomous AI Database role in the icon that shows next to the display name on the Autonomous AI Database Information page. For example:

Description of adb_adg_primary.png follows

Description of the illustration adb_adg_primary.png

Description of adb_adg_standby.png follows

Description of the illustration adb_adg_standby.png

After you add a cross region standby database, you can view the role in the Disaster recovery area on the details page. The role is one of:

To view details for a peer, on the Autonomous AI Database details page, select the Disaster recovery tab. The list shows the peer database information and the Peer role column shows the peer role:

Autonomous Data Guard Cross Region Failover and Switchover

You can have one local disaster recovery peer and optionally you can add one or more cross region peers (multiple cross region peers are allowed with the ECPU compute model). In both the local and cross region cases, either peer can be a Backup-Based Disaster Recovery copy or an Autonomous Data Guard standby.

With both a current region and one or more cross region Autonomous Data Guard peer databases, depending on the state of the primary database, you have the following options:

Autonomous Data Guard Database Cross Region Backup and Restore

After you add an Autonomous Data Guard cross region standby database, backup and restore from backup is handled as follows:

Cross Region Disaster Recovery Connection Strings and Wallets

When you add an Autonomous Data Guard cross region (remote) standby database, or when you use a cross region Backup-Based Disaster Recovery peer, the wallet and connection string from the primary database contains only the hostname of the primary database.

In addition, the wallet and connection string from a remote peer database contains only the hostname of the remote database. This applies for both instance and regional wallets.

Oracle recommends that you configure your applications running on the Primary Role database to use the wallet or connection string downloaded from the Primary database. For applications that run on a remote database, use the wallet or connection string downloaded from the remote database (where the remote database is the current primary database after a failover or after you perform a switchover). You can obtain these connection strings or the wallet by clicking Database connection on the Oracle Cloud Infrastructure Console.

For example, if your cross region Autonomous Data Guard is setup with the primary in Ashburn (IAD) and a cross region standby in Phoenix (PHX), Oracle recommends that your mid-tier applications running in IAD use the connection string or wallet from the primary database in IAD, and your corresponding applications that run in PHX after a failover or after you perform a switchover, use the connection string or wallet from the standby database in PHX. During regional failover or switchover, Oracle recommends failing over both your database and your mid-tier applications to the new Primary role database for optimum performance and to minimize any cross regional latency.

See Download Client Credentials (Wallets) for more information.

If required by your application, you may manually construct connection strings containing both primary and remote database hostnames, to support connecting to either instance that is available and open for connections automatically, the primary or the remote database.

For details on the steps to manually create these connection strings see:

Cross Region Autonomous Data Guard with Customer-Managed Encryption Keys

When you add an Autonomous Data Guard cross region standby, there are special considerations when the primary database is using customer-managed encryption keys, or if you want to switch to using customer-managed encryption keys on the primary database.

Note: Autonomous AI Database supports multiple customer-managed keys providers. Only Oracle Cloud Infrastructure Vault is supported for use with Autonomous Data Guard. Other vaults are not supported for customer-managed keys.

In order for a remote standby to be able to use the same master encryption key as the primary database, the master encryption key must be replicated to the remote region. Customer-Managed Encryption Keys are only supported with a single cross region Autonomous Data Guard standby. Multiple cross region standbys are not supported because Oracle Cloud Infrastructure Vault only supports replication to one remote region.

Consider the following cases:

See the following for more information:

Cross Tenancy Autonomous Data Guard with Customer-Managed Encryption Keys

When you add an Autonomous Data Guard cross tenancy standby, there are special considerations when the Primary database is using customer-managed encryption keys or if you want to switch to using encryption keys on the Primary database.

When you add an Autonomous Data Guard cross tenancy standby for additional security, for example to protect against ransomware, if the Primary is using a customer-managed key, you can replicate the encryption key and use it in the standby. You must use the same encryption key, whether an Oracle-managed key or a customer-managed key, in both the Primary tenancy and the standby. Since each tenancy has an independent copy of the key, disabling or deleting the key in one tenancy does not affect the other.

Note: Autonomous AI Database supports multiple customer-managed keys providers. Only Oracle Cloud Infrastructure Vault is supported for use with Autonomous Data Guard. Other vaults are not supported for customer-managed keys on either the Primary or a Standby with Autonomous Data Guard.

See Notes for Customer-Managed Encryption Keys with a Cross Tenancy Autonomous Data Guard Standby for more information.

Replicating Backups to a Cross Region Autonomous Data Guard Standby

When you add a cross region Autonomous Data Guard standby you can enable cross region backup replication so that automatic backups from the primary are also available on a remote region.

By default the backups taken on the primary are not replicated to a cross region standby database. When you enable cross region backup replication, up to 7 days of automatic backups for the primary are replicated to a cross region standby database. When this feature is enabled, automatic backups are available in the remote region as follows:

Cross region backup replication incurs an additional cost. See Oracle Autonomous AI Database Serverless Features Billing for more information.

See Add a Cross Region Standby Database and Enable or Disable Backup Replication for an Existing Cross Region Standby for more information.

Note the following for cross region automatic backup replication:

Autonomous Data Guard cross region BYOL Licensing

The BYOL ECPU limit you set on an Autonomous Data Guard Primary database does not apply to a cross region or cross tenancy Autonomous Data Guard Standby database.

On a cross region or cross tenancy Standby you can independently set the BYOL ECPU limit, as required. Setting a value for BYOL License limit limits how many ECPUs will be covered by BYOL licenses.

For example, consider an 8 ECPU Autonomous Data Guard Primary database using BYOL licensing. When you add a cross region or cross tenancy Standby, the Standby takes its licensing from the Primary (using BYOL licensing).

In this example, if you set the BYOL License limit to 4 (ECPUs) on the Primary, then 4 of the 8 ECPUs use BYOL licensing. However, the BYOL License limit you set on the Primary does not apply on a cross region or cross tenancy Standby. The Standby uses Bring your own license (BYOL) licensing (without a BYOL License limit). If you separately set a BYOL License limit on the Standby, for example if you set the BYOL License limit value to 2 (ECPUs), 2 ECPUs on the Standby are billed using BYOL licensing and 6 ECPUs. Similarly, the BYOL ECPU limit you set on the Standby does not affect the Primary’s BYOL ECPU limit.

See Choose Bring Your Own License Option While Provisioning or Cloning and Choose Bring Your Own License on Autonomous AI Database (ECPU Compute Model) for more information.