CreateDataGuardAssociationDetails

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

Bases: object

The configuration details for creating a Data Guard association between databases.

Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.

PROTECTION_MODE_MAXIMUM_AVAILABILITY = 'MAXIMUM_AVAILABILITY'

A constant which can be used with the protection_mode property of a CreateDataGuardAssociationDetails. 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 CreateDataGuardAssociationDetails. 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 CreateDataGuardAssociationDetails. This constant has a value of "MAXIMUM_PROTECTION"

TRANSPORT_TYPE_ASYNC = 'ASYNC'

A constant which can be used with the transport_type property of a CreateDataGuardAssociationDetails. This constant has a value of "ASYNC"

TRANSPORT_TYPE_FASTSYNC = 'FASTSYNC'

A constant which can be used with the transport_type property of a CreateDataGuardAssociationDetails. This constant has a value of "FASTSYNC"

TRANSPORT_TYPE_SYNC = 'SYNC'

A constant which can be used with the transport_type property of a CreateDataGuardAssociationDetails. This constant has a value of "SYNC"

__init__(**kwargs)

Initializes a new CreateDataGuardAssociationDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • database_admin_password (str) -- The value to assign to the database_admin_password property of this CreateDataGuardAssociationDetails.
  • protection_mode (str) -- The value to assign to the protection_mode property of this CreateDataGuardAssociationDetails. Allowed values for this property are: "MAXIMUM_AVAILABILITY", "MAXIMUM_PERFORMANCE", "MAXIMUM_PROTECTION"
  • transport_type (str) -- The value to assign to the transport_type property of this CreateDataGuardAssociationDetails. Allowed values for this property are: "SYNC", "ASYNC", "FASTSYNC"
  • creation_type (str) -- The value to assign to the creation_type property of this CreateDataGuardAssociationDetails.
creation_type

[Required] Gets the creation_type of this CreateDataGuardAssociationDetails. Specifies whether to create the peer database in an existing DB system or in a new DB system. ExistingDbSystem is not supported for creating Data Guard associations for virtual machine DB system databases.

Returns:The creation_type of this CreateDataGuardAssociationDetails.
Return type:str
database_admin_password

[Required] Gets the database_admin_password of this CreateDataGuardAssociationDetails. A strong password for the SYS, SYSTEM, and PDB Admin users to apply during standby creation.

The password must contain no fewer than nine characters and include:

  • At least two uppercase characters.
  • At least two lowercase characters.
  • At least two numeric characters.
  • At least two special characters. Valid special characters include "_", "#", and "-" only.

The password MUST be the same as the primary admin password.

Returns:The database_admin_password of this CreateDataGuardAssociationDetails.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

protection_mode

[Required] Gets the protection_mode of this CreateDataGuardAssociationDetails. The protection mode to set up between the primary and standby databases. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.

IMPORTANT - The only protection mode currently supported by the Database service is MAXIMUM_PERFORMANCE.

Allowed values for this property are: "MAXIMUM_AVAILABILITY", "MAXIMUM_PERFORMANCE", "MAXIMUM_PROTECTION"

Returns:The protection_mode of this CreateDataGuardAssociationDetails.
Return type:str
transport_type

[Required] Gets the transport_type of this CreateDataGuardAssociationDetails. The redo transport type to use for this Data Guard association. Valid values depend on the specified protectionMode:

  • MAXIMUM_AVAILABILITY - SYNC or FASTSYNC
  • MAXIMUM_PERFORMANCE - ASYNC
  • MAXIMUM_PROTECTION - SYNC

For more information, see Redo Transport Services in the Oracle Data Guard documentation.

IMPORTANT - The only transport type currently supported by the Database service is ASYNC.

Allowed values for this property are: "SYNC", "ASYNC", "FASTSYNC"

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