DbSystem

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

Bases: object

DbSystem model.

DATABASE_EDITION_ENTERPRISE_EDITION = 'ENTERPRISE_EDITION'

A constant which can be used with the database_edition property of a DbSystem. This constant has a value of "ENTERPRISE_EDITION"

DATABASE_EDITION_ENTERPRISE_EDITION_EXTREME_PERFORMANCE = 'ENTERPRISE_EDITION_EXTREME_PERFORMANCE'

A constant which can be used with the database_edition property of a DbSystem. This constant has a value of "ENTERPRISE_EDITION_EXTREME_PERFORMANCE"

DATABASE_EDITION_ENTERPRISE_EDITION_HIGH_PERFORMANCE = 'ENTERPRISE_EDITION_HIGH_PERFORMANCE'

A constant which can be used with the database_edition property of a DbSystem. This constant has a value of "ENTERPRISE_EDITION_HIGH_PERFORMANCE"

DATABASE_EDITION_STANDARD_EDITION = 'STANDARD_EDITION'

A constant which can be used with the database_edition property of a DbSystem. This constant has a value of "STANDARD_EDITION"

DISK_REDUNDANCY_HIGH = 'HIGH'

A constant which can be used with the disk_redundancy property of a DbSystem. This constant has a value of "HIGH"

DISK_REDUNDANCY_NORMAL = 'NORMAL'

A constant which can be used with the disk_redundancy property of a DbSystem. This constant has a value of "NORMAL"

LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'

A constant which can be used with the license_model property of a DbSystem. This constant has a value of "BRING_YOUR_OWN_LICENSE"

LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'

A constant which can be used with the license_model property of a DbSystem. This constant has a value of "LICENSE_INCLUDED"

LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'

A constant which can be used with the lifecycle_state property of a DbSystem. This constant has a value of "AVAILABLE"

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a DbSystem. This constant has a value of "FAILED"

LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'

A constant which can be used with the lifecycle_state property of a DbSystem. This constant has a value of "PROVISIONING"

LIFECYCLE_STATE_TERMINATED = 'TERMINATED'

A constant which can be used with the lifecycle_state property of a DbSystem. This constant has a value of "TERMINATED"

LIFECYCLE_STATE_TERMINATING = 'TERMINATING'

A constant which can be used with the lifecycle_state property of a DbSystem. This constant has a value of "TERMINATING"

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a DbSystem. This constant has a value of "UPDATING"

__init__(**kwargs)

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

Parameters:
  • iorm_config_cache (ExadataIormConfig) -- The value to assign to the iorm_config_cache property of this DbSystem.
  • id (str) -- The value to assign to the id property of this DbSystem.
  • compartment_id (str) -- The value to assign to the compartment_id property of this DbSystem.
  • display_name (str) -- The value to assign to the display_name property of this DbSystem.
  • availability_domain (str) -- The value to assign to the availability_domain property of this DbSystem.
  • fault_domains (list[str]) -- The value to assign to the fault_domains property of this DbSystem.
  • subnet_id (str) -- The value to assign to the subnet_id property of this DbSystem.
  • backup_subnet_id (str) -- The value to assign to the backup_subnet_id property of this DbSystem.
  • nsg_ids (list[str]) -- The value to assign to the nsg_ids property of this DbSystem.
  • backup_network_nsg_ids (list[str]) -- The value to assign to the backup_network_nsg_ids property of this DbSystem.
  • shape (str) -- The value to assign to the shape property of this DbSystem.
  • db_system_options (DbSystemOptions) -- The value to assign to the db_system_options property of this DbSystem.
  • ssh_public_keys (list[str]) -- The value to assign to the ssh_public_keys property of this DbSystem.
  • time_zone (str) -- The value to assign to the time_zone property of this DbSystem.
  • hostname (str) -- The value to assign to the hostname property of this DbSystem.
  • domain (str) -- The value to assign to the domain property of this DbSystem.
  • version (str) -- The value to assign to the version property of this DbSystem.
  • cpu_core_count (int) -- The value to assign to the cpu_core_count property of this DbSystem.
  • cluster_name (str) -- The value to assign to the cluster_name property of this DbSystem.
  • data_storage_percentage (int) -- The value to assign to the data_storage_percentage property of this DbSystem.
  • database_edition (str) -- The value to assign to the database_edition property of this DbSystem. Allowed values for this property are: "STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_HIGH_PERFORMANCE", "ENTERPRISE_EDITION_EXTREME_PERFORMANCE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • last_patch_history_entry_id (str) -- The value to assign to the last_patch_history_entry_id property of this DbSystem.
  • listener_port (int) -- The value to assign to the listener_port property of this DbSystem.
  • lifecycle_state (str) -- The value to assign to the lifecycle_state property of this DbSystem. Allowed values for this property are: "PROVISIONING", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED", '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 DbSystem.
  • lifecycle_details (str) -- The value to assign to the lifecycle_details property of this DbSystem.
  • disk_redundancy (str) -- The value to assign to the disk_redundancy property of this DbSystem. Allowed values for this property are: "HIGH", "NORMAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • sparse_diskgroup (bool) -- The value to assign to the sparse_diskgroup property of this DbSystem.
  • scan_ip_ids (list[str]) -- The value to assign to the scan_ip_ids property of this DbSystem.
  • vip_ids (list[str]) -- The value to assign to the vip_ids property of this DbSystem.
  • scan_dns_record_id (str) -- The value to assign to the scan_dns_record_id property of this DbSystem.
  • data_storage_size_in_gbs (int) -- The value to assign to the data_storage_size_in_gbs property of this DbSystem.
  • reco_storage_size_in_gb (int) -- The value to assign to the reco_storage_size_in_gb property of this DbSystem.
  • node_count (int) -- The value to assign to the node_count property of this DbSystem.
  • license_model (str) -- The value to assign to the license_model property of this DbSystem. Allowed values for this property are: "LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • freeform_tags (dict(str, str)) -- The value to assign to the freeform_tags property of this DbSystem.
  • defined_tags (dict(str, dict(str, object))) -- The value to assign to the defined_tags property of this DbSystem.
availability_domain

[Required] Gets the availability_domain of this DbSystem. The name of the availability domain that the DB system is located in.

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

Gets the backup_network_nsg_ids of this DbSystem. 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 DB systems.

Returns:The backup_network_nsg_ids of this DbSystem.
Return type:list[str]
backup_subnet_id

Gets the backup_subnet_id of this DbSystem. The OCID of the backup network subnet the DB system is associated with. Applicable only to Exadata DB systems.

Subnet Restriction: See the subnet restrictions information for subnetId.

Returns:The backup_subnet_id of this DbSystem.
Return type:str
cluster_name

Gets the cluster_name of this DbSystem. The cluster name for Exadata and 2-node RAC virtual machine DB systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive.

Returns:The cluster_name of this DbSystem.
Return type:str
compartment_id

[Required] Gets the compartment_id of this DbSystem. The OCID of the compartment.

Returns:The compartment_id of this DbSystem.
Return type:str
cpu_core_count

[Required] Gets the cpu_core_count of this DbSystem. The number of CPU cores enabled on the DB system.

Returns:The cpu_core_count of this DbSystem.
Return type:int
data_storage_percentage

Gets the data_storage_percentage of this DbSystem. The percentage assigned to DATA storage (user data and database files). The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 40 and 80. The default is 80 percent assigned to DATA storage. Not applicable for virtual machine DB systems.

Returns:The data_storage_percentage of this DbSystem.
Return type:int
data_storage_size_in_gbs

Gets the data_storage_size_in_gbs of this DbSystem. The data storage size, in gigabytes, that is currently available to the DB system. Applies only for virtual machine DB systems.

Returns:The data_storage_size_in_gbs of this DbSystem.
Return type:int
database_edition

[Required] Gets the database_edition of this DbSystem. The Oracle Database edition that applies to all the databases on the DB system.

Allowed values for this property are: "STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_HIGH_PERFORMANCE", "ENTERPRISE_EDITION_EXTREME_PERFORMANCE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The database_edition of this DbSystem.
Return type:str
db_system_options

Gets the db_system_options of this DbSystem.

Returns:The db_system_options of this DbSystem.
Return type:DbSystemOptions
defined_tags

Gets the defined_tags of this DbSystem. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Returns:The defined_tags of this DbSystem.
Return type:dict(str, dict(str, object))
disk_redundancy

Gets the disk_redundancy of this DbSystem. The type of redundancy configured for the DB system. NORMAL is 2-way redundancy. HIGH is 3-way redundancy.

Allowed values for this property are: "HIGH", "NORMAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The disk_redundancy of this DbSystem.
Return type:str
display_name

[Required] Gets the display_name of this DbSystem. The user-friendly name for the DB system. The name does not have to be unique.

Returns:The display_name of this DbSystem.
Return type:str
domain

[Required] Gets the domain of this DbSystem. The domain name for the DB system.

Returns:The domain of this DbSystem.
Return type:str
fault_domains

Gets the fault_domains of this DbSystem. List of the Fault Domains in which this DB system is provisioned.

Returns:The fault_domains of this DbSystem.
Return type:list[str]
freeform_tags

Gets the freeform_tags of this DbSystem. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Example: {"Department": "Finance"}

Returns:The freeform_tags of this DbSystem.
Return type:dict(str, str)
hostname

[Required] Gets the hostname of this DbSystem. The hostname for the DB system.

Returns:The hostname of this DbSystem.
Return type:str
id

[Required] Gets the id of this DbSystem. The OCID of the DB system.

Returns:The id of this DbSystem.
Return type:str
iorm_config_cache

Gets the iorm_config_cache of this DbSystem.

Returns:The iorm_config_cache of this DbSystem.
Return type:ExadataIormConfig
last_patch_history_entry_id

Gets the last_patch_history_entry_id of this DbSystem. The OCID of the last patch history. This value is updated as soon as a patch operation starts.

Returns:The last_patch_history_entry_id of this DbSystem.
Return type:str
license_model

Gets the license_model of this DbSystem. The Oracle license model that applies to all the databases on the DB system. The default is LICENSE_INCLUDED.

Allowed values for this property are: "LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The license_model of this DbSystem.
Return type:str
lifecycle_details

Gets the lifecycle_details of this DbSystem. Additional information about the current lifecycleState.

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

[Required] Gets the lifecycle_state of this DbSystem. The current state of the DB system.

Allowed values for this property are: "PROVISIONING", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The lifecycle_state of this DbSystem.
Return type:str
listener_port

Gets the listener_port of this DbSystem. The port number configured for the listener on the DB system.

Returns:The listener_port of this DbSystem.
Return type:int
node_count

Gets the node_count of this DbSystem. The number of nodes in the DB system. For RAC DB systems, the value is greater than 1.

Returns:The node_count of this DbSystem.
Return type:int
nsg_ids

Gets the nsg_ids of this DbSystem. A list of the OCIDs of the network security groups (NSGs) that 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.

Returns:The nsg_ids of this DbSystem.
Return type:list[str]
reco_storage_size_in_gb

Gets the reco_storage_size_in_gb of this DbSystem. The RECO/REDO storage size, in gigabytes, that is currently allocated to the DB system. Applies only for virtual machine DB systems.

Returns:The reco_storage_size_in_gb of this DbSystem.
Return type:int
scan_dns_record_id

Gets the scan_dns_record_id of this DbSystem. The OCID of the DNS record for the SCAN IP addresses that are associated with the DB system.

Returns:The scan_dns_record_id of this DbSystem.
Return type:str
scan_ip_ids

Gets the scan_ip_ids of this DbSystem. The OCID of the Single Client Access Name (SCAN) IP addresses associated with the DB system. SCAN IP addresses are typically used for load balancing and are not assigned to any interface. Oracle Clusterware directs the requests to the appropriate nodes in the cluster.

Note: For a single-node DB system, this list is empty.

Returns:The scan_ip_ids of this DbSystem.
Return type:list[str]
shape

[Required] Gets the shape of this DbSystem. The shape of the DB system. The shape determines resources to allocate to the DB system. - For virtual machine shapes, the number of CPU cores and memory - For bare metal and Exadata shapes, the number of CPU cores, storage, and memory

Returns:The shape of this DbSystem.
Return type:str
sparse_diskgroup

Gets the sparse_diskgroup of this DbSystem. True, if Sparse Diskgroup is configured for Exadata dbsystem, False, if Sparse diskgroup was not configured.

Returns:The sparse_diskgroup of this DbSystem.
Return type:bool
ssh_public_keys

[Required] Gets the ssh_public_keys of this DbSystem. The public key portion of one or more key pairs used for SSH access to the DB system.

Returns:The ssh_public_keys of this DbSystem.
Return type:list[str]
subnet_id

[Required] Gets the subnet_id of this DbSystem. The OCID of the subnet the DB system is associated with.

Subnet Restrictions: - For bare metal DB systems and for single node virtual machine DB systems, do not use a subnet that overlaps with 192.168.16.16/28. - For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20.

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 DbSystem.
Return type:str
time_created

Gets the time_created of this DbSystem. The date and time the DB system was created.

Returns:The time_created of this DbSystem.
Return type:datetime
time_zone

Gets the time_zone of this DbSystem. The time zone of the DB system. For details, see DB System Time Zones.

Returns:The time_zone of this DbSystem.
Return type:str
version

Gets the version of this DbSystem. The Oracle Database version of the DB system.

Returns:The version of this DbSystem.
Return type:str
vip_ids

Gets the vip_ids of this DbSystem. The OCID of the virtual IP (VIP) addresses associated with the DB system. The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the DB system to enable failover. If one node fails, the VIP is reassigned to another active node in the cluster.

Note: For a single-node DB system, this list is empty.

Returns:The vip_ids of this DbSystem.
Return type:list[str]