DataGuardAssociation

class oci.database.models.DataGuardAssociation(**kwargs)

Bases: object

DataGuardAssociation model.

Attributes

LIFECYCLE_STATE_AVAILABLE A constant which can be used with the lifecycle_state property of a DataGuardAssociation.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a DataGuardAssociation.
LIFECYCLE_STATE_PROVISIONING A constant which can be used with the lifecycle_state property of a DataGuardAssociation.
LIFECYCLE_STATE_TERMINATED A constant which can be used with the lifecycle_state property of a DataGuardAssociation.
LIFECYCLE_STATE_TERMINATING A constant which can be used with the lifecycle_state property of a DataGuardAssociation.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a DataGuardAssociation.
LIFECYCLE_STATE_UPGRADING A constant which can be used with the lifecycle_state property of a DataGuardAssociation.
PEER_ROLE_DISABLED_STANDBY A constant which can be used with the peer_role property of a DataGuardAssociation.
PEER_ROLE_PRIMARY A constant which can be used with the peer_role property of a DataGuardAssociation.
PEER_ROLE_STANDBY A constant which can be used with the peer_role property of a DataGuardAssociation.
PROTECTION_MODE_MAXIMUM_AVAILABILITY A constant which can be used with the protection_mode property of a DataGuardAssociation.
PROTECTION_MODE_MAXIMUM_PERFORMANCE A constant which can be used with the protection_mode property of a DataGuardAssociation.
PROTECTION_MODE_MAXIMUM_PROTECTION A constant which can be used with the protection_mode property of a DataGuardAssociation.
ROLE_DISABLED_STANDBY A constant which can be used with the role property of a DataGuardAssociation.
ROLE_PRIMARY A constant which can be used with the role property of a DataGuardAssociation.
ROLE_STANDBY A constant which can be used with the role property of a DataGuardAssociation.
TRANSPORT_TYPE_ASYNC A constant which can be used with the transport_type property of a DataGuardAssociation.
TRANSPORT_TYPE_FASTSYNC A constant which can be used with the transport_type property of a DataGuardAssociation.
TRANSPORT_TYPE_SYNC A constant which can be used with the transport_type property of a DataGuardAssociation.
apply_lag Gets the apply_lag of this DataGuardAssociation.
apply_rate Gets the apply_rate of this DataGuardAssociation.
database_id [Required] Gets the database_id of this DataGuardAssociation.
id [Required] Gets the id of this DataGuardAssociation.
is_active_data_guard_enabled Gets the is_active_data_guard_enabled of this DataGuardAssociation.
lifecycle_details Gets the lifecycle_details of this DataGuardAssociation.
lifecycle_state [Required] Gets the lifecycle_state of this DataGuardAssociation.
peer_data_guard_association_id Gets the peer_data_guard_association_id of this DataGuardAssociation.
peer_database_id Gets the peer_database_id of this DataGuardAssociation.
peer_db_home_id Gets the peer_db_home_id of this DataGuardAssociation.
peer_db_system_id [Required] Gets the peer_db_system_id of this DataGuardAssociation.
peer_role [Required] Gets the peer_role of this DataGuardAssociation.
protection_mode [Required] Gets the protection_mode of this DataGuardAssociation.
role [Required] Gets the role of this DataGuardAssociation.
time_created Gets the time_created of this DataGuardAssociation.
transport_type Gets the transport_type of this DataGuardAssociation.

Methods

__init__(**kwargs) Initializes a new DataGuardAssociation object with values from keyword arguments.
LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'

A constant which can be used with the lifecycle_state property of a DataGuardAssociation. This constant has a value of “AVAILABLE”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a DataGuardAssociation. This constant has a value of “FAILED”

LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'

A constant which can be used with the lifecycle_state property of a DataGuardAssociation. This constant has a value of “PROVISIONING”

LIFECYCLE_STATE_TERMINATED = 'TERMINATED'

A constant which can be used with the lifecycle_state property of a DataGuardAssociation. This constant has a value of “TERMINATED”

LIFECYCLE_STATE_TERMINATING = 'TERMINATING'

A constant which can be used with the lifecycle_state property of a DataGuardAssociation. This constant has a value of “TERMINATING”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a DataGuardAssociation. This constant has a value of “UPDATING”

LIFECYCLE_STATE_UPGRADING = 'UPGRADING'

A constant which can be used with the lifecycle_state property of a DataGuardAssociation. This constant has a value of “UPGRADING”

PEER_ROLE_DISABLED_STANDBY = 'DISABLED_STANDBY'

A constant which can be used with the peer_role property of a DataGuardAssociation. This constant has a value of “DISABLED_STANDBY”

PEER_ROLE_PRIMARY = 'PRIMARY'

A constant which can be used with the peer_role property of a DataGuardAssociation. This constant has a value of “PRIMARY”

PEER_ROLE_STANDBY = 'STANDBY'

A constant which can be used with the peer_role property of a DataGuardAssociation. This constant has a value of “STANDBY”

PROTECTION_MODE_MAXIMUM_AVAILABILITY = 'MAXIMUM_AVAILABILITY'

A constant which can be used with the protection_mode property of a DataGuardAssociation. This constant has a value of “MAXIMUM_AVAILABILITY”

PROTECTION_MODE_MAXIMUM_PERFORMANCE = 'MAXIMUM_PERFORMANCE'

A constant which can be used with the protection_mode property of a DataGuardAssociation. This constant has a value of “MAXIMUM_PERFORMANCE”

PROTECTION_MODE_MAXIMUM_PROTECTION = 'MAXIMUM_PROTECTION'

A constant which can be used with the protection_mode property of a DataGuardAssociation. This constant has a value of “MAXIMUM_PROTECTION”

ROLE_DISABLED_STANDBY = 'DISABLED_STANDBY'

A constant which can be used with the role property of a DataGuardAssociation. This constant has a value of “DISABLED_STANDBY”

ROLE_PRIMARY = 'PRIMARY'

A constant which can be used with the role property of a DataGuardAssociation. This constant has a value of “PRIMARY”

ROLE_STANDBY = 'STANDBY'

A constant which can be used with the role property of a DataGuardAssociation. This constant has a value of “STANDBY”

TRANSPORT_TYPE_ASYNC = 'ASYNC'

A constant which can be used with the transport_type property of a DataGuardAssociation. This constant has a value of “ASYNC”

TRANSPORT_TYPE_FASTSYNC = 'FASTSYNC'

A constant which can be used with the transport_type property of a DataGuardAssociation. This constant has a value of “FASTSYNC”

TRANSPORT_TYPE_SYNC = 'SYNC'

A constant which can be used with the transport_type property of a DataGuardAssociation. This constant has a value of “SYNC”

__init__(**kwargs)

Initializes a new DataGuardAssociation object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) – The value to assign to the id property of this DataGuardAssociation.
  • database_id (str) – The value to assign to the database_id property of this DataGuardAssociation.
  • role (str) – The value to assign to the role property of this DataGuardAssociation. Allowed values for this property are: “PRIMARY”, “STANDBY”, “DISABLED_STANDBY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this DataGuardAssociation. Allowed values for this property are: “PROVISIONING”, “AVAILABLE”, “UPDATING”, “TERMINATING”, “TERMINATED”, “FAILED”, “UPGRADING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this DataGuardAssociation.
  • peer_db_system_id (str) – The value to assign to the peer_db_system_id property of this DataGuardAssociation.
  • peer_db_home_id (str) – The value to assign to the peer_db_home_id property of this DataGuardAssociation.
  • peer_database_id (str) – The value to assign to the peer_database_id property of this DataGuardAssociation.
  • peer_data_guard_association_id (str) – The value to assign to the peer_data_guard_association_id property of this DataGuardAssociation.
  • peer_role (str) – The value to assign to the peer_role property of this DataGuardAssociation. Allowed values for this property are: “PRIMARY”, “STANDBY”, “DISABLED_STANDBY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • apply_lag (str) – The value to assign to the apply_lag property of this DataGuardAssociation.
  • apply_rate (str) – The value to assign to the apply_rate property of this DataGuardAssociation.
  • protection_mode (str) – The value to assign to the protection_mode property of this DataGuardAssociation. Allowed values for this property are: “MAXIMUM_AVAILABILITY”, “MAXIMUM_PERFORMANCE”, “MAXIMUM_PROTECTION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • transport_type (str) – The value to assign to the transport_type property of this DataGuardAssociation. Allowed values for this property are: “SYNC”, “ASYNC”, “FASTSYNC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_created (datetime) – The value to assign to the time_created property of this DataGuardAssociation.
  • is_active_data_guard_enabled (bool) – The value to assign to the is_active_data_guard_enabled property of this DataGuardAssociation.
apply_lag

Gets the apply_lag of this DataGuardAssociation. The 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

Returns:The apply_lag of this DataGuardAssociation.
Return type:str
apply_rate

Gets the apply_rate of this DataGuardAssociation. The rate at which redo logs are synced between the associated databases.

Example: 180 Mb per second

Returns:The apply_rate of this DataGuardAssociation.
Return type:str
database_id

[Required] Gets the database_id of this DataGuardAssociation. The OCID of the reporting database.

Returns:The database_id of this DataGuardAssociation.
Return type:str
id

[Required] Gets the id of this DataGuardAssociation. The OCID of the Data Guard association.

Returns:The id of this DataGuardAssociation.
Return type:str
is_active_data_guard_enabled

Gets the is_active_data_guard_enabled of this DataGuardAssociation. True if active Data Guard is enabled.

Returns:The is_active_data_guard_enabled of this DataGuardAssociation.
Return type:bool
lifecycle_details

Gets the lifecycle_details of this DataGuardAssociation. Additional information about the current lifecycleState, if available.

Returns:The lifecycle_details of this DataGuardAssociation.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this DataGuardAssociation. The current state of the Data Guard association.

Allowed values for this property are: “PROVISIONING”, “AVAILABLE”, “UPDATING”, “TERMINATING”, “TERMINATED”, “FAILED”, “UPGRADING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this DataGuardAssociation.
Return type:str
peer_data_guard_association_id

Gets the peer_data_guard_association_id of this DataGuardAssociation. The OCID of the peer database’s Data Guard association.

Returns:The peer_data_guard_association_id of this DataGuardAssociation.
Return type:str
peer_database_id

Gets the peer_database_id of this DataGuardAssociation. The OCID of the associated peer database.

Returns:The peer_database_id of this DataGuardAssociation.
Return type:str
peer_db_home_id

Gets the peer_db_home_id of this DataGuardAssociation. The OCID of the Database Home containing the associated peer database.

Returns:The peer_db_home_id of this DataGuardAssociation.
Return type:str
peer_db_system_id

[Required] Gets the peer_db_system_id of this DataGuardAssociation. The OCID of the DB system containing the associated peer database.

Returns:The peer_db_system_id of this DataGuardAssociation.
Return type:str
peer_role

[Required] Gets the peer_role of this DataGuardAssociation. The role of the peer database in this Data Guard association.

Allowed values for this property are: “PRIMARY”, “STANDBY”, “DISABLED_STANDBY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The peer_role of this DataGuardAssociation.
Return type:str
protection_mode

[Required] Gets the protection_mode of this DataGuardAssociation. The protection mode of this Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.

Allowed values for this property are: “MAXIMUM_AVAILABILITY”, “MAXIMUM_PERFORMANCE”, “MAXIMUM_PROTECTION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The protection_mode of this DataGuardAssociation.
Return type:str
role

[Required] Gets the role of this DataGuardAssociation. The role of the reporting database in this Data Guard association.

Allowed values for this property are: “PRIMARY”, “STANDBY”, “DISABLED_STANDBY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The role of this DataGuardAssociation.
Return type:str
time_created

Gets the time_created of this DataGuardAssociation. The date and time the Data Guard association was created.

Returns:The time_created of this DataGuardAssociation.
Return type:datetime
transport_type

Gets the transport_type of this DataGuardAssociation. The redo transport type used by this Data Guard association. For more information, see Redo Transport Services in the Oracle Data Guard documentation.

Allowed values for this property are: “SYNC”, “ASYNC”, “FASTSYNC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The transport_type of this DataGuardAssociation.
Return type:str