Use Oracle Data Guard with Oracle Exadata Database Service on Cloud@Customer
Learn to configure and manage Data Guard groups in your VM cluster.
- About Using Oracle Data Guard with Oracle Exadata Database Service on Cloud@Customer
Oracle Data Guard provides a comprehensive set of services that create, maintain, manage, and monitor one or more standby databases to enable production Oracle databases to survive disasters and data corruptions. - Prerequisites for Using Oracle Data Guard with Oracle Exadata Database Service on Cloud@Customer
Review the list of prerequisites for using Data Guard with Oracle Exadata Database Service on Cloud@Customer. - Working with Data Guard
Oracle Data Guard ensures high availability, data protection, and disaster recovery for enterprise data. - Using the Console to Manage an Oracle Data Guard group
Learn how to enable a Data Guard group between databases, change the role of a database in a Data Guard group using either a switchover or a failover operation, and reinstate a failed database. - Using the API to Manage Data Guard Associations on an Oracle Exadata Database Service on Cloud@Customer System
Learn how to use the API to manage Data Guard associations on an Oracle Exadata Database Service on Cloud@Customer system. - Using the API to Manage Data Guard group on an Oracle Exadata Database Service on Cloud@Customer System
Learn how to use the API to manage Data Guard group on an Oracle Exadata Database Service on Cloud@Customer system.
Parent topic: How-to Guides
About Using Oracle Data Guard with Oracle Exadata Database Service on Cloud@Customer
Oracle Data Guard provides a comprehensive set of services that create, maintain, manage, and monitor one or more standby databases to enable production Oracle databases to survive disasters and data corruptions.
Oracle Data Guard maintains these standby databases as copies of the production database. Then, if the production database becomes unavailable because of a planned or an unplanned outage, Oracle Data Guard can switch any standby database to the production role, minimizing the downtime associated with the outage. Oracle Data Guard can be used with traditional backup, restoration, and cluster techniques to provide a high level of data protection and data availability. Oracle Data Guard transport services are also used by other Oracle features such as Oracle Streams and Oracle GoldenGate for efficient and reliable transmission of redo from a source database to one or more remote destinations.
For complete information on Oracle Data Guard, see the Oracle Data Guard Concepts and Administration documentation and Oracle Data Guard Broker Concepts on the Oracle Database Documentation portal.
This topic explains how to use the Console or the API to manage Data Guard resources in your VM cluster.
- The standby database is a physical standby.
- The versions of peer databases (primary and standby) are identical.
- The standby database is deployed as an open, read-only database (Active Data Guard).
- A primary database can support up to a maximum of six standby databases.
Prerequisites for Using Oracle Data Guard with Oracle Exadata Database Service on Cloud@Customer
Review the list of prerequisites for using Data Guard with Oracle Exadata Database Service on Cloud@Customer.
- VM Clusters
A VM cluster Data Guard implementation requires two Exadata database VM Clusters, one containing the primary database and one containing the standby database. - Password
To change the SYS password or rotate TDE keys, use OCI API. - Adding a Node to a VM Cluster
When adding a node to a VM cluster, an instance of the Data Guard database is automatically created on the new node. - Removing a Node from a VM Cluster
When removing a node from a VM cluster, the instance and it's metadata on the removing node is deleted automatically.
VM Clusters
A VM cluster Data Guard implementation requires two Exadata database VM Clusters, one containing the primary database and one containing the standby database.
Oracle strongly recommends the primary and standby databases for any production workloads be on different Exadata Cloud Infrastructures for better fault isolation and disaster protection.
Adding a Node to a VM Cluster
When adding a node to a VM cluster, an instance of the Data Guard database is automatically created on the new node.
Working with Data Guard
Oracle Data Guard ensures high availability, data protection, and disaster recovery for enterprise data.
The primary and standby databases constitute a Data Guard group. Most of your applications access the primary database. A standby database is a transactionally consistent copy of the primary database.
Data Guard maintains the standby database by transmitting and applying redo data from the primary database. If the primary database becomes unavailable, you can use Data Guard to switchover or failover the standby database to the primary role. This is true even if you have more than one standby database.
- Switchover
A switchover reverses the primary and standby database roles. - Failover
A failover transitions the standby database into the primary role after the existing primary database fails or becomes unreachable. - Reinstate
Reinstates a database into the standby role in a Data Guard group.
Switchover
A switchover reverses the primary and standby database roles.
Each database continues to be part of the Data Guard group in its new role. A switchover ensures no data loss. You can use a switchover before you perform planned maintenance on the primary database. Performing planned maintenance on a Exadata database compute node with a Data Guard group is typically done by switching the primary to the standby role, performing maintenance on the standby, and then switching it back to the primary role.
Parent topic: Working with Data Guard
Failover
A failover transitions the standby database into the primary role after the existing primary database fails or becomes unreachable.
A failover might result in some data loss when you use Maximum Performance protection mode.
Parent topic: Working with Data Guard
Reinstate
Reinstates a database into the standby role in a Data Guard group.
You can use the reinstate command to return a failed database into service after correcting the cause of failure.
You cannot terminate a primary database that is part of a Data Guard group that contains one or more standby databases. You will have to terminate the standby databases first. Alternatively, you can switch over the primary database to the standby role, and then terminate the former primary.
You cannot terminate a VM cluster that includes Data Guard enabled databases. You must first terminate the standby databases that are part of the Data Guard group.
Parent topic: Working with Data Guard
Using the Console to Manage an Oracle Data Guard group
Learn how to enable a Data Guard group between databases, change the role of a database in a Data Guard group using either a switchover or a failover operation, and reinstate a failed database.
When you enable Data Guard, a separate Data Guard group is created between the primary and the standby databases.
- Using the Console to Enable Data Guard on an Oracle Exadata Database Service on Cloud@Customer System
Learn to set up a Data Guard group between databases. - Using the Console to View Data Guard group of Databases in an Exadata VM Cluster
To view the role of each database in a Data Guard group in an Exadata VM Cluster, follow this procedure. - Using the Console To View and Edit Data Guard group Details
You can switch between Data Guard types based on the Oracle Database software license type you have deployed. - Using the Console To Perform a Database Switchover
You can initiate a switchover operation on a standby database that is a member of the Data Guard group. - Using the Console To Perform a Database Failover
You can initiate a failover operation on a standby database that is a member of the Data Guard group. - Using the Console To Reinstate a Database
After you fail over a primary database to its standby, the standby assumes the primary role and the old primary is identified as a disabled standby. - Using the Console To Terminate a Data Guard group on an Oracle Exadata Database Service on Cloud@Customer System
On a VM cluster, you remove a Data Guard group by terminating all the standby databases.
Using the Console to Enable Data Guard on an Oracle Exadata Database Service on Cloud@Customer System
Learn to set up a Data Guard group between databases.
Data Guard relies on a reliable network with sufficient throughput between the primary and standby clusters. Since Oracle does not own the network, some evaluation should be done prior to implementing Data Guard to ensure the required network bandwidth is available. It is recommended that Assessing and Optimizing Network Performance be followed to understand the achievable throughput between the clusters and evaluate whether the requirements of the database are met. By default, the maximum socket buffer size is set to a higher value for cross-region ExaDB-C@C Data Guard configurations.
When you configure a Data Guard group, the primary and standby databases must be on the same major release version while the standby database can be on a higher minor version.
As part of the latest release we are introducing an enhanced user experience and new APIs to improve performance and provide additional Data Guard capabilities including support for multiple standby databases via cloud automation.
- With the new API, your new Data Guard configuration will be created as a Data Guard group resource.
- If you have an existing Data Guard setup, you can continue to use current capabilities with no impact. However, if you wish to create multiple standby databases, you will need to migrate to the new API model, which can be done at any time.
- If you currently have automation that manages Data Guard operations using the existing Data Guard Association API, you will need to update your applications to use the new API to take advantage of these new capabilities
Oracle currently supports both the existing Data Guard Association API and the new Data Guard group API and the associated user interfaces.
A parallel operation on the Standby, if it fails, should be retried after a 5-minute interval.
A work request is issued to configure the Data Guard association. The progress of the request and the stages of provisioning can be viewed on the Work Requests page of the respective Standby database.
When the association is created, the details for a database and its peer display their respective roles as Primary or Standby.
Using the Console to View Data Guard group of Databases in an Exadata VM Cluster
To view the role of each database in a Data Guard group in an Exadata VM Cluster, follow this procedure.
- Open the navigation menu. Under Oracle Database, click Exadata Database Service on Cloud@Customer.
- Choose your Compartment.
- Click on the VM Cluster containing the databases you wish to view their roles in Data Guard associations.
- In the Databases section under Resources, the role of each database in this VM Cluster is indicated in the Data Guard role column.
Parent topic: Using the Console to Manage an Oracle Data Guard group
Using the Console To View and Edit Data Guard group Details
You can switch between Data Guard types based on the Oracle Database software license type you have deployed.
Parent topic: Using the Console to Manage an Oracle Data Guard group
Using the Console To Perform a Database Switchover
You can initiate a switchover operation on a standby database that is a member of the Data Guard group.
This database should now assume the role of the standby, and the standby should assume the role of the primary in the Data Guard group.
Parent topic: Using the Console to Manage an Oracle Data Guard group
Using the Console To Perform a Database Failover
You can initiate a failover operation on a standby database that is a member of the Data Guard group.
You can initiate a failover even if the primary database is in a healthy state; however, exercise caution when performing a failover.
This database should now assume the role of the primary, and the old primary's role should display as Disabled Standby.
Parent topic: Using the Console to Manage an Oracle Data Guard group
Using the Console To Reinstate a Database
After you fail over a primary database to its standby, the standby assumes the primary role and the old primary is identified as a disabled standby.
After you correct the cause of failure, you can reinstate the failed database as a functioning standby for the current primary.
Before you can reinstate a version 12.2 or later database, you must perform some
steps on the database host to stop the database or start it in
MOUNT
mode.
ORACLE_UNQNAME
environment variable to the
value of the Database Unique Name, and then run these
commands:srvctl stop database -d db-unique-name -o abort
srvctl start database -d db-unique-name -o mount
This database should now be reinstated as the standby in the Data Guard group.
Parent topic: Using the Console to Manage an Oracle Data Guard group
Using the Console To Terminate a Data Guard group on an Oracle Exadata Database Service on Cloud@Customer System
On a VM cluster, you remove a Data Guard group by terminating all the standby databases.
Parent topic: Using the Console to Manage an Oracle Data Guard group
Using the API to Manage Data Guard Associations on an Oracle Exadata Database Service on Cloud@Customer System
Learn how to use the API to manage Data Guard associations on an Oracle Exadata Database Service on Cloud@Customer system.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.
The following table lists the REST API endpoints to manage Data Guard associations.
Operation | REST API Endpoint |
---|---|
Create a Data Guard association. |
|
View details of the specified Data Guard association's configuration information. |
|
View the list of all Data Guard associations for the specified database. |
|
Perform a switchover to transition a primary database of a Data Guard association into standby role. |
|
Perform a failover to transition a standby database
identified by the |
|
Reinstate a database identified by the
|
For more information, see Using the Console To Reinstate a Database. |
Delete a standby database. |
For the complete list of APIs, see Database Service API.
Using the API to Manage Data Guard group on an Oracle Exadata Database Service on Cloud@Customer System
Learn how to use the API to manage Data Guard group on an Oracle Exadata Database Service on Cloud@Customer system.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.
The following table lists the REST API endpoints to manage Data Guard group.
Operation | REST API Endpoint | Comment |
---|---|---|
Create / Add Standby Database |
|
|
Data Guard Action - Failover |
Failover should be triggered on respective standby that to become primary. |
|
Data Guard Action - Reinstate |
Reinstate should be triggered on respective standby to be reinstated. |
|
Data Guard Action - Switchover |
Switchover should be triggered on respective standby that to become primary. |
|
Delete Standby |
|
|
Migrate Data Guard Association to multiple Standby |
|
|
Update Data Guard group Configuration |
It takes either standby or primary database OCID to update the configuration. |
For the complete list of APIs, see Database Service API.