CreateDataGuardAssociationWithNewDbSystemDetails

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

Bases: oci.database.models.create_data_guard_association_details.CreateDataGuardAssociationDetails

The configuration details for creating a Data Guard association for a virtual machine DB system database. For this type of DB system database, the creationType should be NewDbSystem. A new DB system will be launched to create the standby database.

To create a Data Guard association for a database in a bare metal or Exadata DB system, use the create_data_guard_association_to_existing_db_system_details() subtype instead.

Attributes

PROTECTION_MODE_MAXIMUM_AVAILABILITY str(object=’‘) -> str
PROTECTION_MODE_MAXIMUM_PERFORMANCE str(object=’‘) -> str
PROTECTION_MODE_MAXIMUM_PROTECTION str(object=’‘) -> str
TRANSPORT_TYPE_ASYNC str(object=’‘) -> str
TRANSPORT_TYPE_FASTSYNC str(object=’‘) -> str
TRANSPORT_TYPE_SYNC str(object=’‘) -> str
availability_domain Gets the availability_domain of this CreateDataGuardAssociationWithNewDbSystemDetails.
backup_network_nsg_ids Gets the backup_network_nsg_ids of this CreateDataGuardAssociationWithNewDbSystemDetails.
creation_type [Required] Gets the creation_type of this CreateDataGuardAssociationDetails.
database_admin_password [Required] Gets the database_admin_password of this CreateDataGuardAssociationDetails.
display_name Gets the display_name of this CreateDataGuardAssociationWithNewDbSystemDetails.
hostname Gets the hostname of this CreateDataGuardAssociationWithNewDbSystemDetails.
nsg_ids Gets the nsg_ids of this CreateDataGuardAssociationWithNewDbSystemDetails.
protection_mode [Required] Gets the protection_mode of this CreateDataGuardAssociationDetails.
shape Gets the shape of this CreateDataGuardAssociationWithNewDbSystemDetails.
subnet_id Gets the subnet_id of this CreateDataGuardAssociationWithNewDbSystemDetails.
transport_type [Required] Gets the transport_type of this CreateDataGuardAssociationDetails.

Methods

__init__(**kwargs) Initializes a new CreateDataGuardAssociationWithNewDbSystemDetails object with values from keyword arguments.
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_MAXIMUM_AVAILABILITY = 'MAXIMUM_AVAILABILITY'
PROTECTION_MODE_MAXIMUM_PERFORMANCE = 'MAXIMUM_PERFORMANCE'
PROTECTION_MODE_MAXIMUM_PROTECTION = 'MAXIMUM_PROTECTION'
TRANSPORT_TYPE_ASYNC = 'ASYNC'
TRANSPORT_TYPE_FASTSYNC = 'FASTSYNC'
TRANSPORT_TYPE_SYNC = 'SYNC'
__init__(**kwargs)

Initializes a new CreateDataGuardAssociationWithNewDbSystemDetails object with values from keyword arguments. The default value of the creation_type attribute of this class is NewDbSystem and it should not be changed. 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 CreateDataGuardAssociationWithNewDbSystemDetails.
  • protection_mode (str) – The value to assign to the protection_mode property of this CreateDataGuardAssociationWithNewDbSystemDetails. 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 CreateDataGuardAssociationWithNewDbSystemDetails. Allowed values for this property are: “SYNC”, “ASYNC”, “FASTSYNC”
  • creation_type (str) – The value to assign to the creation_type property of this CreateDataGuardAssociationWithNewDbSystemDetails.
  • display_name (str) – The value to assign to the display_name property of this CreateDataGuardAssociationWithNewDbSystemDetails.
  • availability_domain (str) – The value to assign to the availability_domain property of this CreateDataGuardAssociationWithNewDbSystemDetails.
  • shape (str) – The value to assign to the shape property of this CreateDataGuardAssociationWithNewDbSystemDetails.
  • subnet_id (str) – The value to assign to the subnet_id property of this CreateDataGuardAssociationWithNewDbSystemDetails.
  • nsg_ids (list[str]) – The value to assign to the nsg_ids property of this CreateDataGuardAssociationWithNewDbSystemDetails.
  • backup_network_nsg_ids (list[str]) – The value to assign to the backup_network_nsg_ids property of this CreateDataGuardAssociationWithNewDbSystemDetails.
  • hostname (str) – The value to assign to the hostname property of this CreateDataGuardAssociationWithNewDbSystemDetails.
availability_domain

Gets the availability_domain of this CreateDataGuardAssociationWithNewDbSystemDetails. The name of the availability domain that the standby database DB system will be located in. For example- “Uocm:PHX-AD-1”.

Returns:The availability_domain of this CreateDataGuardAssociationWithNewDbSystemDetails.
Return type:str
backup_network_nsg_ids

Gets the backup_network_nsg_ids of this CreateDataGuardAssociationWithNewDbSystemDetails. A list of the OCIDs of the network security groups (NSGs) that the backup network of this DB system belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see Security Rules. Applicable only to Exadata systems.

Returns:The backup_network_nsg_ids of this CreateDataGuardAssociationWithNewDbSystemDetails.
Return type:list[str]
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.

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
display_name

Gets the display_name of this CreateDataGuardAssociationWithNewDbSystemDetails. The user-friendly name of the DB system that will contain the the standby database. The display name does not have to be unique.

Returns:The display_name of this CreateDataGuardAssociationWithNewDbSystemDetails.
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.

hostname

Gets the hostname of this CreateDataGuardAssociationWithNewDbSystemDetails. The hostname for the DB node.

Returns:The hostname of this CreateDataGuardAssociationWithNewDbSystemDetails.
Return type:str
nsg_ids

Gets the nsg_ids of this CreateDataGuardAssociationWithNewDbSystemDetails. A list of the OCIDs of the network security groups (NSGs) that this resource belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see Security Rules. NsgIds restrictions: - Autonomous Databases with private access require at least 1 Network Security Group (NSG). The nsgIds array cannot be empty.

Returns:The nsg_ids of this CreateDataGuardAssociationWithNewDbSystemDetails.
Return type:list[str]
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
shape

Gets the shape of this CreateDataGuardAssociationWithNewDbSystemDetails. The virtual machine DB system shape to launch for the standby database in the Data Guard association. The shape determines the number of CPU cores and the amount of memory available for the DB system. Only virtual machine shapes are valid options. If you do not supply this parameter, the default shape is the shape of the primary DB system.

To get a list of all shapes, use the list_db_system_shapes() operation.

Returns:The shape of this CreateDataGuardAssociationWithNewDbSystemDetails.
Return type:str
subnet_id

Gets the subnet_id of this CreateDataGuardAssociationWithNewDbSystemDetails. The OCID of the subnet the DB system is associated with. Subnet Restrictions: - For 1- and 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.16.16/28

These subnets are used by the Oracle Clusterware private interconnect on the database instance. Specifying an overlapping subnet will cause the private interconnect to malfunction. This restriction applies to both the client subnet and backup subnet.

Returns:The subnet_id of this CreateDataGuardAssociationWithNewDbSystemDetails.
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