oci_database_database_upgrade

This resource provides the Database Upgrade resource in Oracle Cloud Infrastructure Database service.

Upgrades the specified Oracle Database instance.

Database upgrade requires source to be DB_VERSION or DB_SOFTWARE_IMAGE. db_home.0.db_version is updated to target DB version specified in the upgrade request. To avoid a force new create of the db_home on the next apply, add the following to the resource lifecycle { ignore_changes = [ db_home.0.db_version, ] }

Example Usage

resource "oci_database_database_upgrade" "test_database_upgrade" {
	#Required
	action = var.database_upgrade_action
	database_id = oci_database_database.test_database.id

	#Optional
	database_upgrade_source_details {

		#Optional
		database_software_image_id = oci_database_database_software_image.test_database_software_image.id
		db_home_id = oci_database_db_home.test_db_home.id
		db_version = var.database_upgrade_database_upgrade_source_details_db_version
		options = var.database_upgrade_database_upgrade_source_details_options
		source = var.database_upgrade_database_upgrade_source_details_source
	}
}

Argument Reference

The following arguments are supported:

** 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

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Database Upgrade * update - (Defaults to 20 minutes), when updating the Database Upgrade * delete - (Defaults to 20 minutes), when destroying the Database Upgrade

Import

Import is not supported for this resource.