» Data Source: oci_database_db_systems

This data source provides the list of Db Systems in Oracle Cloud Infrastructure Database service.

Gets a list of the DB systems in the specified compartment. You can specify a backupId to list only the DB systems that support creating a database using this backup in this compartment.

» Example Usage

data "oci_database_db_systems" "test_db_systems" {
    #Required
    compartment_id = "${var.compartment_id}"

    #Optional
    availability_domain = "${var.db_system_availability_domain}"
    backup_id = "${oci_database_backup.test_backup.id}"
    display_name = "${var.db_system_display_name}"
    state = "${var.db_system_state}"
}

» Argument Reference

The following arguments are supported:

  • availability_domain - (Optional) A filter to return only resources that match the given availability domain exactly.
  • backup_id - (Optional) The OCID of the backup. Specify a backupId to list only the DB systems or DB homes that support creating a database using this backup in this compartment.
  • compartment_id - (Required) The compartment OCID.
  • display_name - (Optional) A filter to return only resources that match the entire display name given. The match is not case sensitive.
  • state - (Optional) A filter to return only resources that match the given lifecycle state exactly.

» Attributes Reference

The following attributes are exported:

» DbSystem Reference

The following attributes are exported:

  • availability_domain - The name of the availability domain that the DB system is located in.
  • backup_network_nsg_ids - 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.
  • backup_subnet_id - 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.

  • cluster_name - 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.

  • compartment_id - The OCID of the compartment.

  • cpu_core_count - The number of CPU cores enabled on the DB system.

  • data_storage_percentage - 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.

  • data_storage_size_in_gb - The data storage size, in gigabytes, that is currently available to the DB system. Applies only for virtual machine DB systems.

  • database_edition - The Oracle Database edition that applies to all the databases on the DB system.

  • db_system_options -

    • storage_management - The storage option used in DB system. ASM - Automatic storage management LVM - Logical Volume management
  • defined_tags - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

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

  • display_name - The user-friendly name for the DB system. The name does not have to be unique.

  • domain - The domain name for the DB system.

  • fault_domains - List of the Fault Domains in which this DB system is provisioned.

  • freeform_tags - 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"}

  • hostname - The hostname for the DB system.

  • id - The OCID of the DB system.

  • last_maintenance_run_id - The OCID of the last maintenance run.

  • last_patch_history_entry_id - The OCID of the last patch history. This value is updated as soon as a patch operation starts.

  • license_model - The Oracle license model that applies to all the databases on the DB system. The default is LICENSE_INCLUDED.

  • lifecycle_details - Additional information about the current lifecycleState.

  • listener_port - The port number configured for the listener on the DB system.

  • maintenance_window -

    • days_of_week - Days during the week when maintenance should be performed.
      • name - Name of the day of the week.
    • hours_of_day - The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are
      • 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - represents time slot 20:00 - 23:59 UTC
    • lead_time_in_weeks - Lead time window allows user to set a lead time to prepare for a down time. The lead time is in weeks and valid value is between 1 to 4.
    • months - Months during the year when maintenance should be performed.
      • name - Name of the month of the year.
    • preference - The maintenance window scheduling preference.
    • weeks_of_month - Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week. For example, to allow maintenance during the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. Maintenance cannot be scheduled for the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and hoursOfDay parameters to allow you to specify specific days of the week and hours that maintenance will be performed.
  • next_maintenance_run_id - The OCID of the next maintenance run.

  • node_count - The number of nodes in the DB system. For RAC DB systems, the value is greater than 1.

  • nsg_ids - 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.
  • reco_storage_size_in_gb - The RECO/REDO storage size, in gigabytes, that is currently allocated to the DB system. Applies only for virtual machine DB systems.

  • scan_dns_record_id - The OCID of the DNS record for the SCAN IP addresses that are associated with the DB system.

  • scan_ip_ids - 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.

  • shape - 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
  • sparse_diskgroup - True, if Sparse Diskgroup is configured for Exadata dbsystem, False, if Sparse diskgroup was not configured.

  • ssh_public_keys - The public key portion of one or more key pairs used for SSH access to the DB system.

  • state - The current state of the DB system.

  • subnet_id - 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.

  • time_created - The date and time the DB system was created.

  • time_zone - The time zone of the DB system. For details, see DB System Time Zones.

  • version - The Oracle Database version of the DB system.

  • vip_ids - 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.