Skip to main content

autonomous_database_dataguard_associations

Creates, updates, deletes, gets or lists an autonomous_database_dataguard_associations resource.

Overview​

Nameautonomous_database_dataguard_associations
TypeResource
Idoci.database.autonomous_database_dataguard_associations

Fields​

The following fields are returned by SELECT queries:

The Autonomous Data Guard-enabled database associated with the specified Autonomous Data Guard association OCID.

NameDatatypeDescription
idstringThe OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous AI Database resides in.
applyLagstringThe lag time between updates to the primary database and application of the redo data on the standby database, as computed by the reporting database. Example: 9 seconds
applyRatestringThe rate at which redo logs are synced between the associated databases. Example: 180 Mb per second
autonomousDatabaseIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Autonomous AI Database that has a relationship with the peer Autonomous AI Database.
isAutomaticFailoverEnabledbooleanIndicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association
lifecycleDetailsstringAdditional information about the current lifecycleState, if available.
lifecycleStatestringThe current state of Autonomous Data Guard. (PROVISIONING, AVAILABLE, ROLE_CHANGE_IN_PROGRESS, TERMINATING, TERMINATED, FAILED, UNAVAILABLE, UPDATING)
peerAutonomousDatabaseIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the peer Autonomous AI Database.
peerAutonomousDatabaseLifeCycleStatestringThe current state of the Autonomous AI Database. (PROVISIONING, AVAILABLE, STOPPING, STOPPED, STARTING, TERMINATING, TERMINATED, UNAVAILABLE, RESTORE_IN_PROGRESS, RESTORE_FAILED, BACKUP_IN_PROGRESS, SCALE_IN_PROGRESS, AVAILABLE_NEEDS_ATTENTION, UPDATING, MAINTENANCE_IN_PROGRESS, RESTARTING, RECREATING, ROLE_CHANGE_IN_PROGRESS, UPGRADING, INACCESSIBLE, STANDBY, TRANSPORTING)
peerRolestringThe Data Guard role of the Autonomous Container Database or Autonomous AI Database, if Autonomous Data Guard is enabled. (PRIMARY, STANDBY, DISABLED_STANDBY, BACKUP_COPY, SNAPSHOT_STANDBY)
protectionModestringThe protection mode of this Autonomous Data Guard association. For more information, see [Oracle Data Guard Protection Modes](http:​//docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) in the Oracle Data Guard documentation. (MAXIMUM_AVAILABILITY, MAXIMUM_PERFORMANCE)
rolestringThe Data Guard role of the Autonomous Container Database or Autonomous AI Database, if Autonomous Data Guard is enabled. (PRIMARY, STANDBY, DISABLED_STANDBY, BACKUP_COPY, SNAPSHOT_STANDBY)
timeCreatedstring (date-time)The date and time the Data Guard association was created.
timeLastRoleChangedstring (date-time)The date and time when the last role change action happened.
timeLastSyncedstring (date-time)The date and time of the last update to the apply lag, apply rate, and transport lag values.
transportLagstringThe approximate number of seconds of redo data not yet available on the standby Autonomous Container Database, as computed by the reporting database. Example: 7 seconds

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectautonomousDatabaseId, autonomousDatabaseDataguardAssociationId, regionopc-request-idDeprecated. Use the [GetAutonomousContainerDatabase](#/en/database/latest/AutonomousContainerDatabase/GetAutonomousContainerDatabase) operation to gets an Autonomous Data Guard-enabled database associated with the specified Autonomous AI Database.<br />
listselectautonomousDatabaseId, regionlimit, pageDeprecated. Use the [GetAutonomousContainerDatabase](#/en/database/latest/AutonomousContainerDatabase/GetAutonomousContainerDatabase) operation to get a list of the Autonomous Data Guard-enabled databases associated with the specified Autonomous AI Database.<br />

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
autonomousDatabaseDataguardAssociationIdstringThe Autonomous Container Database-Autonomous Data Guard association [OCID](/Content/General/Concepts/identifiers.htm).
autonomousDatabaseIdstringThe database [OCID](/Content/General/Concepts/identifiers.htm).
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
limitintegerThe maximum number of items to return per page.
opc-request-idstringUnique identifier for the request.
pagestringThe pagination token to continue listing from.

SELECT examples​

Deprecated. Use the [GetAutonomousContainerDatabase](#/en/database/latest/AutonomousContainerDatabase/GetAutonomousContainerDatabase) operation to gets an Autonomous Data Guard-enabled database associated with the specified Autonomous AI Database.<br />

SELECT
id,
applyLag,
applyRate,
autonomousDatabaseId,
isAutomaticFailoverEnabled,
lifecycleDetails,
lifecycleState,
peerAutonomousDatabaseId,
peerAutonomousDatabaseLifeCycleState,
peerRole,
protectionMode,
role,
timeCreated,
timeLastRoleChanged,
timeLastSynced,
transportLag
FROM oci.database.autonomous_database_dataguard_associations
WHERE autonomousDatabaseId = '{{ autonomousDatabaseId }}' -- required
AND autonomousDatabaseDataguardAssociationId = '{{ autonomousDatabaseDataguardAssociationId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;