This resource provides the Db Systems Upgrade resource in Oracle Cloud Infrastructure Database service.
Upgrades the operating system and grid infrastructure of the DB system.
resource "oci_database_db_systems_upgrade" "test_db_systems_upgrade" {
#Required
action = var.db_systems_upgrade_action
db_system_id = oci_database_db_system.test_db_system.id
#Optional
is_snapshot_retention_days_force_updated = var.db_systems_upgrade_is_snapshot_retention_days_force_updated
new_gi_version = var.db_systems_upgrade_new_gi_version
snapshot_retention_period_in_days = var.db_systems_upgrade_snapshot_retention_period_in_days
}
The following arguments are supported:
action
- (Required) The operating system upgrade action.db_system_id
- (Required) The DB system OCID.is_snapshot_retention_days_force_updated
- (Optional) If true, rollback time is updated even if operating system upgrade history contains errors.new_gi_version
- (Optional) A valid Oracle Grid Infrastructure (GI) software version.snapshot_retention_period_in_days
- (Optional) The retention period, in days, for the snapshot that allows you to perform a rollback of the upgrade operation. After this number of days passes, you cannot roll back the upgrade.* IMPORTANT * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
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 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 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
- The 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.iorm_config_cache
- The IORM settings of the Exadata DB system.
db_plans
- An array of IORM settings for all the database in the Exadata DB system.
db_name
- The database name. For the default DbPlan
, the dbName
is default
. flash_cache_limit
- The flash cache limit for this database. This value is internally configured based on the share value assigned to the database. share
- The relative priority of this database. lifecycle_details
- Additional information about the current lifecycleState
. objective
- The current value for the IORM objective. The default is AUTO
. state
- The current state of IORM configuration for the Exadata DB system. kms_key_id
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.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 lifecycle state.listener_port
- The port number configured for the listener on the DB system.maintenance_window
- The scheduling details for the quarterly maintenance window. Patching and system updates take place during the 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
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:
point_in_time_data_disk_clone_timestamp
- The point in time for a cloned database system when the data disks were cloned from the source database system, as described in RFC 3339.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_name
- The FQDN of the DNS record for the SCAN IP addresses that are associated with the DB system. 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.
source_db_system_id
- The OCID of the DB system.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:
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.
zone_id
- The OCID of the zone the DB system is associated with. The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Db Systems Upgrade
* update
- (Defaults to 20 minutes), when updating the Db Systems Upgrade
* delete
- (Defaults to 20 minutes), when destroying the Db Systems Upgrade
Import is not supported for this resource.