oci_database_pluggable_database

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

Creates and starts a pluggable database in the specified container database. Pluggable Database can be created using different operations (e.g. LocalClone, RemoteClone, Relocate ) with this API. Use the StartPluggableDatabase and StopPluggableDatabase APIs to start and stop the pluggable database.

Example Usage

resource "oci_database_pluggable_database" "test_pluggable_database" {
	#Required
	container_database_id = oci_database_database.test_database.id
	pdb_name = var.pluggable_database_pdb_name

	#Optional
	container_database_admin_password = var.pluggable_database_container_database_admin_password
	defined_tags = var.pluggable_database_defined_tags
	freeform_tags = {"Department"= "Finance"}
	pdb_admin_password = var.pluggable_database_pdb_admin_password
	pdb_creation_type_details {
		#Required
		creation_type = var.pluggable_database_pdb_creation_type_details_creation_type
		source_pluggable_database_id = oci_database_pluggable_database.test_pluggable_database.id

		#Optional
		dblink_user_password = var.pluggable_database_pdb_creation_type_details_dblink_user_password
		dblink_username = var.pluggable_database_pdb_creation_type_details_dblink_username
		refreshable_clone_details {

			#Optional
			is_refreshable_clone = var.pluggable_database_pdb_creation_type_details_refreshable_clone_details_is_refreshable_clone
		}
		source_container_database_admin_password = var.pluggable_database_pdb_creation_type_details_source_container_database_admin_password
	}
	should_create_pdb_backup = var.pluggable_database_should_create_pdb_backup
	should_pdb_admin_account_be_locked = var.pluggable_database_should_pdb_admin_account_be_locked
	tde_wallet_password = var.pluggable_database_tde_wallet_password
}

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 Pluggable Database * update - (Defaults to 20 minutes), when updating the Pluggable Database * delete - (Defaults to 20 minutes), when destroying the Pluggable Database

Import

PluggableDatabases can be imported using the id, e.g.

$ terraform import oci_database_pluggable_database.test_pluggable_database "id"