oci_database_autonomous_database

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

Creates a new Autonomous Database.

This API must be called on the remote region where the peer needs to be created.

Example Usage

resource "oci_database_autonomous_database" "test_autonomous_database" {
	#Required
	admin_password = var.autonomous_database_admin_password
	compartment_id = var.compartment_id
	db_name = var.autonomous_database_db_name

	#Optional
	are_primary_whitelisted_ips_used = var.autonomous_database_are_primary_whitelisted_ips_used
	auto_refresh_frequency_in_seconds = var.autonomous_database_auto_refresh_frequency_in_seconds
	auto_refresh_point_lag_in_seconds = var.autonomous_database_auto_refresh_point_lag_in_seconds
	autonomous_container_database_id = oci_database_autonomous_container_database.test_autonomous_container_database.id
	autonomous_database_backup_id = oci_database_autonomous_database_backup.test_autonomous_database_backup.id
	autonomous_database_id = oci_database_autonomous_database.test_autonomous_database.id
	autonomous_maintenance_schedule_type = var.autonomous_database_autonomous_maintenance_schedule_type
    backup_retention_period_in_days = var.autonomous_database_backup_retention_period_in_days
	character_set = var.autonomous_database_character_set
	clone_type = var.autonomous_database_clone_type
	compute_count = var.autonomous_database_compute_count
	compute_model = var.autonomous_database_compute_model
	cpu_core_count = var.autonomous_database_cpu_core_count
	customer_contacts {

		#Optional
		email = var.autonomous_database_customer_contacts_email
	}
	data_safe_status = var.autonomous_database_data_safe_status
	data_storage_size_in_gb = var.autonomous_database_data_storage_size_in_gb
	data_storage_size_in_tbs = var.autonomous_database_data_storage_size_in_tbs
	database_edition = var.autonomous_database_database_edition
	db_name = var.autonomous_database_db_name
	db_tools_details {
		#Required
		name = var.autonomous_database_db_tools_details_name

		#Optional
		compute_count = var.autonomous_database_db_tools_details_compute_count
		is_enabled = var.autonomous_database_db_tools_details_is_enabled
		max_idle_time_in_minutes = var.autonomous_database_db_tools_details_max_idle_time_in_minutes
	}
	db_version = var.autonomous_database_db_version
	db_workload = var.autonomous_database_db_workload
	defined_tags = var.autonomous_database_defined_tags
	disaster_recovery_type = var.autonomous_database_disaster_recovery_type
	display_name = var.autonomous_database_display_name
	encryption_key {

		#Optional
		arn_role = var.autonomous_database_encryption_key_arn_role
		autonomous_database_provider = var.autonomous_database_encryption_key_autonomous_database_provider
		certificate_directory_name = var.autonomous_database_encryption_key_certificate_directory_name
		certificate_id = oci_apigateway_certificate.test_certificate.id
		directory_name = var.autonomous_database_encryption_key_directory_name
		external_id = oci_database_external.test_external.id
		key_arn = var.autonomous_database_encryption_key_key_arn
		key_name = oci_kms_key.test_key.name
		kms_key_id = oci_kms_key.test_key.id
		okv_kms_key = var.autonomous_database_encryption_key_okv_kms_key
		okv_uri = var.autonomous_database_encryption_key_okv_uri
		service_endpoint_uri = var.autonomous_database_encryption_key_service_endpoint_uri
		vault_id = oci_kms_vault.test_vault.id
		vault_uri = var.autonomous_database_encryption_key_vault_uri
	}
	freeform_tags = {"Department"= "Finance"}
    in_memory_percentage = var.autonomous_database_in_memory_percentage
	is_access_control_enabled = var.autonomous_database_is_access_control_enabled
	is_auto_scaling_enabled = var.autonomous_database_is_auto_scaling_enabled
	is_auto_scaling_for_storage_enabled = var.autonomous_database_is_auto_scaling_for_storage_enabled
	is_data_guard_enabled = var.autonomous_database_is_data_guard_enabled
	is_dedicated = var.autonomous_database_is_dedicated
	is_dev_tier = var.autonomous_database_is_dev_tier
	is_free_tier = var.autonomous_database_is_free_tier
	is_local_data_guard_enabled = var.autonomous_database_is_local_data_guard_enabled
	is_mtls_connection_required = var.autonomous_database_is_mtls_connection_required
	is_preview_version_with_service_terms_accepted = var.autonomous_database_is_preview_version_with_service_terms_accepted
	is_replicate_automatic_backups = var.autonomous_database_is_replicate_automatic_backups
	kms_key_id = oci_kms_key.test_key.id
	license_model = var.autonomous_database_license_model
	max_cpu_core_count = var.autonomous_database_max_cpu_core_count
	ncharacter_set = var.autonomous_database_ncharacter_set
	nsg_ids = var.autonomous_database_nsg_ids
	ocpu_count = var.autonomous_database_ocpu_count
	private_endpoint_label = var.autonomous_database_private_endpoint_label
	refreshable_mode = var.autonomous_database_refreshable_mode
	resource_pool_leader_id = oci_database_resource_pool_leader.test_resource_pool_leader.id
	resource_pool_summary {
		#Optional
		is_disabled = var.autonomous_database_resource_pool_summary_is_disabled
		pool_size = var.autonomous_database_resource_pool_summary_pool_size
	}
	scheduled_operations {
		#Required
		day_of_week {
			#Required
			name = var.autonomous_database_scheduled_operations_day_of_week_name
		}

		#Optional
		scheduled_start_time = var.autonomous_database_scheduled_operations_scheduled_start_time
		scheduled_stop_time = var.autonomous_database_scheduled_operations_scheduled_stop_time
	}
	secret_id = oci_vault_secret.test_secret.id
	secret_version_number = var.autonomous_database_secret_version_number
	source = var.autonomous_database_source
	source_id = oci_database_source.test_source.id
	standby_whitelisted_ips = var.autonomous_database_standby_whitelisted_ips
	subnet_id = oci_core_subnet.test_subnet.id
	subscription_id = oci_onesubscription_subscription.test_subscription.id
	time_of_auto_refresh_start = var.autonomous_database_time_of_auto_refresh_start
	timestamp = var.autonomous_database_timestamp
	use_latest_available_backup_time_stamp = var.autonomous_database_use_latest_available_backup_time_stamp
	vault_id = oci_kms_vault.test_vault.id
	whitelisted_ips = var.autonomous_database_whitelisted_ips
}

Argument Reference

The following arguments are supported:

For an Autonomous Database on dedicated infrastructure, the allowed values are:

AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSC5601, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P1, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS * clone_type - (Required when source=BACKUP_FROM_ID | BACKUP_FROM_TIMESTAMP | DATABASE) The Autonomous Database clone type. This parameter is not used to create a refreshable clone type, and for refreshable clones one must use the (source=CLONE_TO_REFRESHABLE) parameter. * FULL - This option creates a new database that includes all source database data. * METADATA - This option creates a new database that includes the source database schema and select metadata, but not the source database data. * compartment_id - (Required) (Updatable) The OCID of the compartment of the Autonomous Database. * compute_count - (Optional) (Updatable) The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure. For an Autonomous Database Serverless instance, the ‘ECPU’ compute model requires a minimum value of one, for databases in the elastic resource pool and minimum value of two, otherwise. Required when using the computeModel parameter. When using cpuCoreCount parameter, it is an error to specify computeCount to a non-null value. Providing computeModel and computeCount is the preferred method for both OCPU and ECPU. * compute_model - (Optional) (Updatable) The compute model of the Autonomous Database. This is required if using the computeCount parameter. If using cpuCoreCount then it is an error to specify computeModel to a non-null value. ECPU compute model is the recommended model and OCPU compute model is legacy. * cpu_core_count - (Optional) (Updatable) The number of CPU cores to be made available to the database. For Autonomous Databases on dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes for shape details. Note: This parameter cannot be used with the ocpuCount parameter. This input is ignored for Always Free resources. * The data type must be an integer. * The minimum number of cores for all types of autonomous database is 1 * The maximum number of cores is as follows: * Autonomous Database Serverless instances: The maximum number of cores is 128. * Autonomous Databases on dedicated Exadata infrastructure: The maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes for shape details. * Providing computeModel and computeCount is the preferred method for setting CPUs for both OCPU and ECPU. * customer_contacts - (Optional) (Updatable) Customer Contacts. * email - (Optional) (Updatable) The email address used by Oracle to send notifications regarding databases and infrastructure. * data_safe_status - (Optional) (Updatable) Status of the Data Safe registration for this Autonomous Database. Could be REGISTERED or NOT_REGISTERED. * data_storage_size_in_gb - (Optional) (Updatable) The size, in gigabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed. The maximum storage value is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes for shape details.

Notes * This parameter is only supported for dedicated Exadata infrastructure. * This parameter cannot be used with the dataStorageSizeInTBs parameter. * data_storage_size_in_tbs - (Optional) (Updatable) The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed. For Autonomous Databases on dedicated Exadata infrastructure, the maximum storage value is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes for shape details. A full Exadata service is allocated when the Autonomous Database size is set to the upper limit (384 TB).

**Note:** This parameter cannot be used with the `dataStorageSizeInGBs` parameter. This input is ignored for Always Free resources.

For Autonomous Databases on dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes for shape details.

Note: This parameter cannot be used with the cpuCoreCount parameter. * operations_insights_status - (Optional) (Updatable) Status of Operations Insights for this Autonomous Database. Values supported are ENABLED and NOT_ENABLED * private_endpoint_label - (Optional) (Updatable) (Optional) (Updatable) The resource’s private endpoint label. * Setting the endpoint label to a non-empty string creates a private endpoint database. * Resetting the endpoint label to an empty string, after the creation of the private endpoint database, changes the private endpoint database to a public endpoint database. * Setting the endpoint label to a non-empty string value, updates to a new private endpoint database, when the database is disabled and re-enabled.

For Autonomous Database Serverless instances, the following cloning options are available: * Use BACKUP_FROM_ID for creating a new Autonomous Database by cloning from a specified backup. Also provide the backup OCID in the autonomous_database_backup_id parameter. * Use BACKUP_FROM_TIMESTAMP for creating a point-in-time Autonomous Database clone using backups. Also provide the backup timestamp in the timestamp parameter. For more information, see Cloning and Moving an Autonomous Database. * source_id - (Required when source=CLONE_TO_REFRESHABLE | CROSS_REGION_DATAGUARD | CROSS_REGION_DISASTER_RECOVERY | DATABASE) The OCID of the source Autonomous Database that will be used to create a new standby database for the Data Guard association. * standby_whitelisted_ips - (Optional) (Updatable) The client IP access control list (ACL). This feature is available for Autonomous Database Serverless and on Exadata Cloud@Customer. Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. If arePrimaryWhitelistedIpsUsed is ‘TRUE’ then Autonomous Database uses this primary’s IP access control list (ACL) for the disaster recovery peer called standbywhitelistedips.

For Autonomous Database Serverless instances, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. Example: ["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.<unique_id>","ocid1.vcn.oc1.sea.<unique_id1>;1.1.1.1","ocid1.vcn.oc1.sea.<unique_id2>;1.1.0.0/16"] For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. Example: ["1.1.1.1","1.1.1.0/24","1.1.2.25"]

For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry.

If `arePrimaryWhitelistedIpsUsed` is 'TRUE' then Autonomous Database uses `whitelisted_ips` primary's IP access control list (ACL) as `standbywhitelistedips` for the disaster recovery peer.

This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier.

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.1628. * For Exadata and virtual machine 2-node RAC systems, do not use a subnet that overlaps with 192.168.128.0/20. * For Autonomous Database, setting this will disable public secure access to the database.

For Autonomous Database Serverless instances, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. Example: ["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.<unique_id>","ocid1.vcn.oc1.sea.<unique_id1>;1.1.1.1","ocid1.vcn.oc1.sea.<unique_id2>;1.1.0.0/16"] For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. Example: ["1.1.1.1","1.1.1.0/24","1.1.2.25"]

For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry.

This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. To remove all whitelisted IPs, set the field to a list with an empty string `[""]`.

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

Note: Auto-scaling does not automatically decrease allocated storage when data is deleted from the database. * apex_details - Information about Oracle APEX Application Development. * apex_version - The Oracle APEX Application Development version. * ords_version - The Oracle REST Data Services (ORDS) version. * are_primary_whitelisted_ips_used - This field will be null if the Autonomous Database is not Data Guard enabled or Access Control is disabled. It’s value would be TRUE if Autonomous Database is Data Guard enabled and Access Control is enabled and if the Autonomous Database uses primary IP access control list (ACL) for standby. It’s value would be FALSE if Autonomous Database is Data Guard enabled and Access Control is enabled and if the Autonomous Database uses different IP access control list (ACL) for standby compared to primary. * autonomous_container_database_id - The Autonomous Container Database OCID. Used only by Autonomous Database on Dedicated Exadata Infrastructure. * availability_domain - The availability domain where the Autonomous Database Serverless instance is located. * autonomous_maintenance_schedule_type - The maintenance schedule type of the Autonomous Database Serverless. An EARLY maintenance schedule follows a schedule applying patches prior to the REGULAR schedule. A REGULAR maintenance schedule follows the normal cycle * available_upgrade_versions - List of Oracle Database versions available for a database upgrade. If there are no version upgrades available, this list is empty. * backup_config - Autonomous Database configuration details for storing manual backups in the Object Storage service. * manual_backup_bucket_name - Name of Object Storage bucket to use for storing manual backups. * manual_backup_type - The manual backup destination type. * backup_retention_period_in_days - Retention period, in days, for backups. * character_set - The character set for the autonomous database. The default is AL32UTF8. Allowed values are:

AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSC5601, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P1, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS * cluster_placement_group_id - The OCID of the cluster placement group of the Autonomous Serverless Database. * compartment_id - The OCID of the compartment. * compute_count - The compute amount (CPUs) available to the database. Minimum and maximum values depend on the compute model and whether the database is an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure. For an Autonomous Database Serverless instance, the ‘ECPU’ compute model requires a minimum value of one, for databases in the elastic resource pool and minimum value of two, otherwise. Required when using the computeModel parameter. When using cpuCoreCount parameter, it is an error to specify computeCount to a non-null value. Providing computeModel and computeCount is the preferred method for both OCPU and ECPU. * compute_model - The compute model of the Autonomous Database. This is required if using the computeCount parameter. If using cpuCoreCount then it is an error to specify computeModel to a non-null value. ECPU compute model is the recommended model and OCPU compute model is legacy. * connection_strings - The connection string used to connect to the Autonomous Database. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Database for the password value. * all_connection_strings - Returns all connection strings that can be used to connect to the Autonomous Database. For more information, please see Predefined Database Service Names for Autonomous Transaction Processing * dedicated - The database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements. * high - The High database service provides the highest level of resources to each SQL statement resulting in the highest performance, but supports the fewest number of concurrent SQL statements. * low - The Low database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements. * medium - The Medium database service provides a lower level of resources to each SQL statement potentially resulting a lower level of performance, but supports more concurrent SQL statements. * profiles - A list of connection string profiles to allow clients to group, filter and select connection string values based on structured metadata. * consumer_group - Consumer group used by the connection. * display_name - A user-friendly name for the connection. * host_format - Host format used in connection string. * is_regional - True for a regional connection string, applicable to cross-region DG only. * protocol - Protocol used by the connection. * session_mode - Specifies whether the listener performs a direct hand-off of the session, or redirects the session. In RAC deployments where SCAN is used, sessions are redirected to a Node VIP. Use DIRECT for direct hand-offs. Use REDIRECT to redirect the session. * syntax_format - Specifies whether the connection string is using the long (LONG), Easy Connect (EZCONNECT), or Easy Connect Plus (EZCONNECTPLUS) format. Autonomous Database Serverless instances always use the long format. * tls_authentication - Specifies whether the TLS handshake is using one-way (SERVER) or mutual (MUTUAL) authentication. * value - Connection string value. * connection_urls - The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. Note that these URLs are provided by the console only for databases on dedicated Exadata infrastructure. Example: {"sqlDevWebUrl": "https://<hostname>/ords...", "apexUrl", "https://<hostname>/ords..."} * apex_url - Oracle Application Express (APEX) URL. * database_transforms_url - The URL of the Database Transforms for the Autonomous Database. * graph_studio_url - The URL of the Graph Studio for the Autonomous Database. * machine_learning_notebook_url - The URL of the Oracle Machine Learning (OML) Notebook for the Autonomous Database. * machine_learning_user_management_url - Oracle Machine Learning user management URL. * mongo_db_url - The URL of the MongoDB API for the Autonomous Database. * ords_url - The Oracle REST Data Services (ORDS) URL of the Web Access for the Autonomous Database. * sql_dev_web_url - Oracle SQL Developer Web URL. * cpu_core_count - The number of CPU cores to be made available to the database. When the ECPU is selected, the value for cpuCoreCount is 0. For Autonomous Database on Dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes for shape details.

**Note:** This parameter cannot be used with the `ocpuCount` parameter.
* The data type must be an *integer*.
* The minimum number of cores for all types of autonomous database is *1*
* The maximum number of cores is as follows:
    * Autonomous Database Serverless instances: The maximum number of cores is *128*.
    * Autonomous Databases on dedicated Exadata infrastructure: The maximum number of cores is determined by the infrastructure shape. See [Characteristics of Infrastructure Shapes](https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details.

For Autonomous Databases on dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes for shape details.

**Note:** This parameter cannot be used with the `cpuCoreCount` parameter. 

For Autonomous Database Serverless instances, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. Example: ["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.<unique_id>","ocid1.vcn.oc1.sea.<unique_id1>;1.1.1.1","ocid1.vcn.oc1.sea.<unique_id2>;1.1.0.0/16"] For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. Example: ["1.1.1.1","1.1.1.0/24","1.1.2.25"]

For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry.

This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier.

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.1628. * For Exadata and virtual machine 2-node RAC systems, do not use a subnet that overlaps with 192.168.128.0/20. * For Autonomous Database, setting this will disable public secure access to the database.

For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry.

Timeouts

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

Import

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

$ terraform import oci_database_autonomous_database.test_autonomous_database "id"