databases
Creates, updates, deletes, gets or lists a databases resource.
Overview​
| Name | databases |
| Type | Resource |
| Id | oci.database.databases |
Fields​
The following fields are returned by SELECT queries:
- get
- list
The database information was retrieved.
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the database. |
characterSet | string | The character set for the database. |
compartmentId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment. |
connectionStrings | object | Connection strings to connect to an Oracle Database. |
dataGuardGroup | object | Details of Data Guard setup that the given database is part of. Also includes information about databases part of this Data Guard group and properties for their Data Guard configuration. |
databaseManagementConfig | object | The configuration of the Database Management service. |
databaseSoftwareImageId | string | The database software image [OCID](/Content/General/Concepts/identifiers.htm) |
dbBackupConfig | object | Backup Options To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](/Content/Identity/Concepts/policygetstarted.htm). |
dbHomeId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Database Home. |
dbName | string | The database name. |
dbSystemId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the DB system. |
dbUniqueName | string | A system-generated name for the database to ensure uniqueness within an Oracle Data Guard group (a primary database and its standby databases). The unique name cannot be changed. |
dbWorkload | string | Deprecated. The dbWorkload field has been deprecated for Exadata Database Service on Dedicated Infrastructure, Exadata Database Service on Cloud@Customer, and Base Database Service. Support for this attribute will end in November 2023. You may choose to update your custom scripts to exclude the dbWorkload attribute. After November 2023 if you pass a value to the dbWorkload attribute, it will be ignored. The database workload type. |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). |
encryptionKeyLocationDetails | object | Types of providers supported for managing database encryption keys |
freeformTags | object | 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](/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
homeType | string | Represents database will be under oracle managed home or customer managed home (ORACLE_MANAGED, CUSTOMER_MANAGED) |
isCdb | boolean | True if the database is a container database. |
kmsKeyId | string | The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. |
kmsKeyVersionId | string | The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous AI Database Serverless does not use key versions, hence is not applicable for Autonomous AI Database Serverless instances. |
lastBackupDurationInSeconds | integer | The duration when the latest database backup created. |
lastBackupTimestamp | string (date-time) | The date and time when the latest database backup was created. |
lastFailedBackupTimestamp | string (date-time) | The date and time when the latest database backup failed. |
lifecycleDetails | string | Additional information about the current lifecycle state. |
lifecycleState | string | The current state of the database. (PROVISIONING, AVAILABLE, UPDATING, BACKUP_IN_PROGRESS, UPGRADING, CONVERTING, TERMINATING, TERMINATED, RESTORE_FAILED, FAILED) |
managedSoftwareUpdateDetails | object | The database registered for Oracle Managed Database Software Updates. |
ncharacterSet | string | The national character set for the database. |
pdbName | string | The name of the pluggable database. The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. |
sidPrefix | string | Specifies a prefix for the Oracle SID of the database to be created. |
sourceDatabasePointInTimeRecoveryTimestamp | string (date-time) | Point in time recovery timeStamp of the source database at which cloned database system is cloned from the source database system, as described in [RFC 3339](https:​//tools.ietf.org/rfc/rfc3339) |
storageSizeDetails | object | The database storage size details. This database option is supported for the Exadata VM cluster on Exascale Infrastructure. |
systemTags | object | System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). |
timeCreated | string (date-time) | The date and time the database was created. |
vaultId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and secretId are required for Customer Managed Keys. |
vmClusterId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the VM cluster. |
An Oracle Database on a bare metal or virtual machine DB system. For more information, see [Bare Metal and Virtual Machine DB Systems](/Content/Database/Concepts/overview.htm).<br /><br />To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](/Content/Identity/Concepts/policygetstarted.htm).<br /><br />Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.<br />
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the database. |
characterSet | string | The character set for the database. |
compartmentId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment. |
connectionStrings | object | Connection strings to connect to an Oracle Database. |
dataGuardGroup | object | Details of Data Guard setup that the given database is part of. Also includes information about databases part of this Data Guard group and properties for their Data Guard configuration. |
databaseManagementConfig | object | The configuration of the Database Management service. |
databaseSoftwareImageId | string | The database software image [OCID](/Content/General/Concepts/identifiers.htm) |
dbBackupConfig | object | Backup Options To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](/Content/Identity/Concepts/policygetstarted.htm). |
dbHomeId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Database Home. |
dbName | string | The database name. |
dbSystemId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the DB system. |
dbUniqueName | string | A system-generated name for the database to ensure uniqueness within an Oracle Data Guard group (a primary database and its standby databases). The unique name cannot be changed. |
dbWorkload | string | Deprecated. The dbWorkload field has been deprecated for Exadata Database Service on Dedicated Infrastructure, Exadata Database Service on Cloud@Customer, and Base Database Service. Support for this attribute will end in November 2023. You may choose to update your custom scripts to exclude the dbWorkload attribute. After November 2023 if you pass a value to the dbWorkload attribute, it will be ignored. The database workload type. |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). |
encryptionKeyLocationDetails | object | Types of providers supported for managing database encryption keys |
freeformTags | object | 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](/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
homeType | string | Represents database will be under oracle managed home or customer managed home (ORACLE_MANAGED, CUSTOMER_MANAGED) |
isCdb | boolean | True if the database is a container database. |
kmsKeyId | string | The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. |
kmsKeyVersionId | string | The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous AI Database Serverless does not use key versions, hence is not applicable for Autonomous AI Database Serverless instances. |
lastBackupDurationInSeconds | integer | The duration when the latest database backup created. |
lastBackupTimestamp | string (date-time) | The date and time when the latest database backup was created. |
lastFailedBackupTimestamp | string (date-time) | The date and time when the latest database backup failed. |
lifecycleDetails | string | Additional information about the current lifecycle state. |
lifecycleState | string | The current state of the database. (PROVISIONING, AVAILABLE, UPDATING, BACKUP_IN_PROGRESS, UPGRADING, CONVERTING, TERMINATING, TERMINATED, RESTORE_FAILED, FAILED) |
managedSoftwareUpdateDetails | object | The database registered for Oracle Managed Database Software Updates. |
ncharacterSet | string | The national character set for the database. |
pdbName | string | The name of the pluggable database. The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. |
sidPrefix | string | Specifies a prefix for the Oracle SID of the database to be created. |
sourceDatabasePointInTimeRecoveryTimestamp | string (date-time) | Point in time recovery timeStamp of the source database at which cloned database system is cloned from the source database system, as described in [RFC 3339](https:​//tools.ietf.org/rfc/rfc3339) |
storageSizeDetails | object | The database storage size details. This database option is supported for the Exadata VM cluster on Exascale Infrastructure. |
systemTags | object | System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). |
timeCreated | string (date-time) | The date and time the database was created. |
vaultId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and secretId are required for Customer Managed Keys. |
vmClusterId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the VM cluster. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | databaseId, region | Gets information about the specified database. | |
list | select | compartmentId, region | dbHomeId, systemId, limit, page, sortBy, sortOrder, lifecycleState, dbName | Gets a list of the databases in the specified Database Home.<br /> |
create | insert | region, source | opc-retry-token, opc-request-id | Creates a new database in the specified Database Home. If the database version is provided, it must match the version of the Database Home. Applies to Exadata and Exadata Cloud@Customer systems.<br /> |
update | update | databaseId, region | if-match | Update the specified database based on the request parameters provided.<br /> |
delete | delete | databaseId, region | if-match, performFinalBackup, opc-request-id | Deletes the specified database. Applies only to Exadata systems.<br /><br />The data in this database is local to the Exadata system and will be lost when the database is deleted. Oracle recommends that you back up any data in the Exadata system prior to deleting it. You can use the performFinalBackup parameter to have the Exadata system database backed up before it is deleted.<br /> |
change_encryption_key_location | exec | databaseId, region, providerType | if-match, opc-retry-token, opc-request-id | Update the encryption key management location for the database |
convert_to_pdb | exec | databaseId, region, action | if-match, opc-request-id | Converts a non-container database to a pluggable database.<br /> |
disable_database_management | exec | databaseId, region | opc-retry-token, opc-request-id, if-match | Disables the Database Management service for the database.<br /> |
enable_database_management | exec | databaseId, region, credentialDetails, privateEndPointId, serviceName | opc-retry-token, opc-request-id, if-match | Enables the Database Management service for an Oracle Database located in Oracle Cloud Infrastructure. This service allows the database to access tools including Metrics and Performance hub. Database Management is enabled at the container database (CDB) level. |
migrate_vault_key | exec | databaseId, region, kmsKeyId | if-match, opc-retry-token, opc-request-id | Changes encryption key management from customer-managed, using the [Vault service](/iaas/Content/KeyManagement/Concepts/keyoverview.htm), to Oracle-managed. |
modify_database_management | exec | databaseId, region | opc-retry-token, opc-request-id, if-match | Updates one or more attributes of the Database Management service for the database. |
reschedule_managed_db_software_update | exec | databaseId, region | if-match, opc-request-id, opc-retry-token | Reschedule the Managed Database Software Update<br /> |
restore_database | exec | databaseId, region | if-match | Restore a Database based on the request parameters you provide.<br /> |
rotate_vault_key | exec | databaseId, region | if-match, opc-retry-token, opc-request-id | Creates a new version of an existing [Vault service](/iaas/Content/KeyManagement/Concepts/keyoverview.htm) key. |
upgrade_database | exec | databaseId, region, action | if-match, opc-request-id | Upgrades the specified Oracle Database instance.<br /> |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
compartmentId | string | The compartment [OCID](/Content/General/Concepts/identifiers.htm). |
databaseId | string | The database [OCID](/Content/General/Concepts/identifiers.htm). |
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
dbHomeId | string | A Database Home [OCID](/Content/General/Concepts/identifiers.htm). |
dbName | string | A filter to return only resources that match the entire database name given. The match is not case sensitive. |
if-match | string | For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. |
lifecycleState | string | A filter to return only resources that match the given lifecycle state exactly. |
limit | integer | The maximum number of items to return per page. |
opc-request-id | string | Unique identifier for the request. |
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). |
page | string | The pagination token to continue listing from. |
performFinalBackup | boolean | Whether to perform a final backup of the database or not. Default is false. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work. This parameter is used in multiple APIs. Refer to the API description for details on how the operation uses it. |
sortBy | string | The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DBNAME is ascending. The DBNAME sort order is case sensitive. |
sortOrder | string | The sort order to use, either ascending (ASC) or descending (DESC). |
systemId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Exadata DB system that you want to filter the database results by. Applies only to Exadata DB systems. |
SELECT examples​
- get
- list
Gets information about the specified database.
SELECT
id,
characterSet,
compartmentId,
connectionStrings,
dataGuardGroup,
databaseManagementConfig,
databaseSoftwareImageId,
dbBackupConfig,
dbHomeId,
dbName,
dbSystemId,
dbUniqueName,
dbWorkload,
definedTags,
encryptionKeyLocationDetails,
freeformTags,
homeType,
isCdb,
kmsKeyId,
kmsKeyVersionId,
lastBackupDurationInSeconds,
lastBackupTimestamp,
lastFailedBackupTimestamp,
lifecycleDetails,
lifecycleState,
managedSoftwareUpdateDetails,
ncharacterSet,
pdbName,
sidPrefix,
sourceDatabasePointInTimeRecoveryTimestamp,
storageSizeDetails,
systemTags,
timeCreated,
vaultId,
vmClusterId
FROM oci.database.databases
WHERE databaseId = '{{ databaseId }}' -- required
AND region = '{{ region }}' -- required
;
Gets a list of the databases in the specified Database Home.<br />
SELECT
id,
characterSet,
compartmentId,
connectionStrings,
dataGuardGroup,
databaseManagementConfig,
databaseSoftwareImageId,
dbBackupConfig,
dbHomeId,
dbName,
dbSystemId,
dbUniqueName,
dbWorkload,
definedTags,
encryptionKeyLocationDetails,
freeformTags,
homeType,
isCdb,
kmsKeyId,
kmsKeyVersionId,
lastBackupDurationInSeconds,
lastBackupTimestamp,
lastFailedBackupTimestamp,
lifecycleDetails,
lifecycleState,
managedSoftwareUpdateDetails,
ncharacterSet,
pdbName,
sidPrefix,
sourceDatabasePointInTimeRecoveryTimestamp,
storageSizeDetails,
systemTags,
timeCreated,
vaultId,
vmClusterId
FROM oci.database.databases
WHERE compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
AND dbHomeId = '{{ dbHomeId }}'
AND systemId = '{{ systemId }}'
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
AND lifecycleState = '{{ lifecycleState }}'
AND dbName = '{{ dbName }}'
;
INSERT examples​
- create
- Manifest
Creates a new database in the specified Database Home. If the database version is provided, it must match the version of the Database Home. Applies to Exadata and Exadata Cloud@Customer systems.<br />
INSERT INTO oci.database.databases (
dbHomeId,
dbVersion,
kmsKeyId,
kmsKeyVersionId,
source,
region,
opc-retry-token,
opc-request-id
)
SELECT
'{{ dbHomeId }}',
'{{ dbVersion }}',
'{{ kmsKeyId }}',
'{{ kmsKeyVersionId }}',
'{{ source }}' /* required */,
'{{ region }}',
'{{ opc-retry-token }}',
'{{ opc-request-id }}'
RETURNING
id,
characterSet,
compartmentId,
connectionStrings,
dataGuardGroup,
databaseManagementConfig,
databaseSoftwareImageId,
dbBackupConfig,
dbHomeId,
dbName,
dbSystemId,
dbUniqueName,
dbWorkload,
definedTags,
encryptionKeyLocationDetails,
freeformTags,
homeType,
isCdb,
kmsKeyId,
kmsKeyVersionId,
lastBackupDurationInSeconds,
lastBackupTimestamp,
lastFailedBackupTimestamp,
lifecycleDetails,
lifecycleState,
managedSoftwareUpdateDetails,
ncharacterSet,
pdbName,
sidPrefix,
sourceDatabasePointInTimeRecoveryTimestamp,
storageSizeDetails,
systemTags,
timeCreated,
vaultId,
vmClusterId
;
# Description fields are for documentation purposes
- name: databases
props:
- name: region
value: "{{ region }}"
description: Required parameter for the databases resource.
- name: dbHomeId
value: "{{ dbHomeId }}"
description: |
The [OCID](/Content/General/Concepts/identifiers.htm) of the Database Home.
- name: dbVersion
value: "{{ dbVersion }}"
description: |
A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, privateEndpointLabel, nsgIds, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier.
- name: kmsKeyId
value: "{{ kmsKeyId }}"
description: |
The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- name: kmsKeyVersionId
value: "{{ kmsKeyVersionId }}"
description: |
The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous AI Database Serverless does not use key versions, hence is not applicable for Autonomous AI Database Serverless instances.
- name: source
value: "{{ source }}"
description: |
The source of the database:
Use `NONE` for creating a new database.
Use `DB_BACKUP` for creating a new database by restoring from a backup.
Use `DATAGUARD` for creating a new STANDBY database for a Data Guard setup..
The default is `NONE`.
valid_values: ['NONE', 'DB_BACKUP', 'DATABASE', 'DATAGUARD']
default: NONE
- name: opc-retry-token
value: "{{ opc-retry-token }}"
description: A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
description: A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
- name: opc-request-id
value: "{{ opc-request-id }}"
description: Unique identifier for the request.
description: Unique identifier for the request.
UPDATE examples​
- update
Update the specified database based on the request parameters provided.<br />
UPDATE oci.database.databases
SET
dbBackupConfig = '{{ dbBackupConfig }}',
dbHomeId = '{{ dbHomeId }}',
definedTags = '{{ definedTags }}',
freeformTags = '{{ freeformTags }}',
managedSoftwareUpdateDetails = '{{ managedSoftwareUpdateDetails }}',
newAdminPassword = '{{ newAdminPassword }}',
newTdeWalletPassword = '{{ newTdeWalletPassword }}',
oldTdeWalletPassword = '{{ oldTdeWalletPassword }}',
storageSizeDetails = '{{ storageSizeDetails }}'
WHERE
databaseId = '{{ databaseId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match}}'
RETURNING
id,
characterSet,
compartmentId,
connectionStrings,
dataGuardGroup,
databaseManagementConfig,
databaseSoftwareImageId,
dbBackupConfig,
dbHomeId,
dbName,
dbSystemId,
dbUniqueName,
dbWorkload,
definedTags,
encryptionKeyLocationDetails,
freeformTags,
homeType,
isCdb,
kmsKeyId,
kmsKeyVersionId,
lastBackupDurationInSeconds,
lastBackupTimestamp,
lastFailedBackupTimestamp,
lifecycleDetails,
lifecycleState,
managedSoftwareUpdateDetails,
ncharacterSet,
pdbName,
sidPrefix,
sourceDatabasePointInTimeRecoveryTimestamp,
storageSizeDetails,
systemTags,
timeCreated,
vaultId,
vmClusterId;
DELETE examples​
- delete
Deletes the specified database. Applies only to Exadata systems.<br /><br />The data in this database is local to the Exadata system and will be lost when the database is deleted. Oracle recommends that you back up any data in the Exadata system prior to deleting it. You can use the performFinalBackup parameter to have the Exadata system database backed up before it is deleted.<br />
DELETE FROM oci.database.databases
WHERE databaseId = '{{ databaseId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
AND performFinalBackup = '{{ performFinalBackup }}'
AND opc-request-id = '{{ opc-request-id }}'
;
Lifecycle Methods​
- change_encryption_key_location
- convert_to_pdb
- disable_database_management
- enable_database_management
- migrate_vault_key
- modify_database_management
- reschedule_managed_db_software_update
- restore_database
- rotate_vault_key
- upgrade_database
Update the encryption key management location for the database
EXEC oci.database.databases.change_encryption_key_location
@databaseId='{{ databaseId }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}',
@opc-retry-token='{{ opc-retry-token }}',
@opc-request-id='{{ opc-request-id }}'
@@json=
'{
"providerType": "{{ providerType }}"
}'
;
Converts a non-container database to a pluggable database.<br />
EXEC oci.database.databases.convert_to_pdb
@databaseId='{{ databaseId }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}',
@opc-request-id='{{ opc-request-id }}'
@@json=
'{
"action": "{{ action }}",
"convertToPdbTargetDetails": "{{ convertToPdbTargetDetails }}"
}'
;
Disables the Database Management service for the database.<br />
EXEC oci.database.databases.disable_database_management
@databaseId='{{ databaseId }}' --required,
@region='{{ region }}' --required,
@opc-retry-token='{{ opc-retry-token }}',
@opc-request-id='{{ opc-request-id }}',
@if-match='{{ if-match }}'
;
Enables the Database Management service for an Oracle Database located in Oracle Cloud Infrastructure. This service allows the database to access tools including Metrics and Performance hub. Database Management is enabled at the container database (CDB) level.
EXEC oci.database.databases.enable_database_management
@databaseId='{{ databaseId }}' --required,
@region='{{ region }}' --required,
@opc-retry-token='{{ opc-retry-token }}',
@opc-request-id='{{ opc-request-id }}',
@if-match='{{ if-match }}'
@@json=
'{
"credentialDetails": "{{ credentialDetails }}",
"managementType": "{{ managementType }}",
"privateEndPointId": "{{ privateEndPointId }}",
"serviceName": "{{ serviceName }}"
}'
;
Changes encryption key management from customer-managed, using the Vault service, to Oracle-managed.
EXEC oci.database.databases.migrate_vault_key
@databaseId='{{ databaseId }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}',
@opc-retry-token='{{ opc-retry-token }}',
@opc-request-id='{{ opc-request-id }}'
@@json=
'{
"adminPassword": "{{ adminPassword }}",
"kmsKeyId": "{{ kmsKeyId }}",
"kmsKeyVersionId": "{{ kmsKeyVersionId }}",
"tdeWalletPassword": "{{ tdeWalletPassword }}",
"vaultId": "{{ vaultId }}"
}'
;
Updates one or more attributes of the Database Management service for the database.
EXEC oci.database.databases.modify_database_management
@databaseId='{{ databaseId }}' --required,
@region='{{ region }}' --required,
@opc-retry-token='{{ opc-retry-token }}',
@opc-request-id='{{ opc-request-id }}',
@if-match='{{ if-match }}'
@@json=
'{
"credentialDetails": "{{ credentialDetails }}",
"managementType": "{{ managementType }}",
"privateEndPointId": "{{ privateEndPointId }}",
"serviceName": "{{ serviceName }}"
}'
;
Reschedule the Managed Database Software Update<br />
EXEC oci.database.databases.reschedule_managed_db_software_update
@databaseId='{{ databaseId }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}',
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}'
;
Restore a Database based on the request parameters you provide.<br />
EXEC oci.database.databases.restore_database
@databaseId='{{ databaseId }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}'
@@json=
'{
"databaseSCN": "{{ databaseSCN }}",
"latest": {{ latest }},
"pluggableDatabaseName": "{{ pluggableDatabaseName }}",
"timestamp": "{{ timestamp }}"
}'
;
Creates a new version of an existing Vault service key.
EXEC oci.database.databases.rotate_vault_key
@databaseId='{{ databaseId }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}',
@opc-retry-token='{{ opc-retry-token }}',
@opc-request-id='{{ opc-request-id }}'
;
Upgrades the specified Oracle Database instance.<br />
EXEC oci.database.databases.upgrade_database
@databaseId='{{ databaseId }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}',
@opc-request-id='{{ opc-request-id }}'
@@json=
'{
"action": "{{ action }}",
"databaseUpgradeSourceDetails": "{{ databaseUpgradeSourceDetails }}"
}'
;