external_non_container_databases
Creates, updates, deletes, gets or lists an external_non_container_databases resource.
Overview​
| Name | external_non_container_databases |
| Type | Resource |
| Id | oci.database.external_non_container_databases |
Fields​
The following fields are returned by SELECT queries:
- get
- list
The external non-container database.
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure external database resource. |
characterSet | string | The character set of the external database. |
compartmentId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment. |
databaseConfiguration | string | The Oracle Database configuration (RAC, SINGLE_INSTANCE) |
databaseEdition | string | The Oracle Database Edition that applies to all the databases on the DB system. Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. (STANDARD_EDITION, ENTERPRISE_EDITION, ENTERPRISE_EDITION_HIGH_PERFORMANCE, ENTERPRISE_EDITION_EXTREME_PERFORMANCE, ENTERPRISE_EDITION_DEVELOPER) |
databaseManagementConfig | object | The configuration of the Database Management service. |
databaseVersion | string | The Oracle Database version. |
dbId | string | The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. |
dbPacks | string | The database packs licensed for the external Oracle Database. |
dbUniqueName | string | The DB_UNIQUE_NAME of the external database. |
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). |
displayName | string | The user-friendly name for the external database. The name does not have to be unique. |
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"} |
lifecycleDetails | string | Additional information about the current lifecycle state. |
lifecycleState | string | The current state of the Oracle Cloud Infrastructure external database resource. (PROVISIONING, NOT_CONNECTED, AVAILABLE, UPDATING, TERMINATING, TERMINATED, FAILED) |
ncharacterSet | string | The national character of the external database. |
operationsInsightsConfig | object | The configuration of Operations Insights for the external database |
stackMonitoringConfig | object | The configuration of Stack Monitoring for the external database. |
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. |
timeZone | string | The time zone of the external database. It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, depending on how the time zone value was specified when the database was created / last altered. |
An Oracle Cloud Infrastructure external non-container database resource. This resource is used to manage a non-container<br />database located outside of Oracle Cloud.<br />
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure external database resource. |
characterSet | string | The character set of the external database. |
compartmentId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment. |
databaseConfiguration | string | The Oracle Database configuration (RAC, SINGLE_INSTANCE) |
databaseEdition | string | The Oracle Database Edition that applies to all the databases on the DB system. Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. (STANDARD_EDITION, ENTERPRISE_EDITION, ENTERPRISE_EDITION_HIGH_PERFORMANCE, ENTERPRISE_EDITION_EXTREME_PERFORMANCE, ENTERPRISE_EDITION_DEVELOPER) |
databaseManagementConfig | object | The configuration of the Database Management service. |
databaseVersion | string | The Oracle Database version. |
dbId | string | The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. |
dbPacks | string | The database packs licensed for the external Oracle Database. |
dbUniqueName | string | The DB_UNIQUE_NAME of the external database. |
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). |
displayName | string | The user-friendly name for the external database. The name does not have to be unique. |
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"} |
lifecycleDetails | string | Additional information about the current lifecycle state. |
lifecycleState | string | The current state of the Oracle Cloud Infrastructure external database resource. (PROVISIONING, NOT_CONNECTED, AVAILABLE, UPDATING, TERMINATING, TERMINATED, FAILED) |
ncharacterSet | string | The national character of the external database. |
operationsInsightsConfig | object | The configuration of Operations Insights for the external database |
stackMonitoringConfig | object | The configuration of Stack Monitoring for the external database. |
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. |
timeZone | string | The time zone of the external database. It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, depending on how the time zone value was specified when the database was created / last altered. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | externalNonContainerDatabaseId, region | opc-request-id | Gets information about a specific external non-container database. |
list | select | compartmentId, region | opc-request-id, limit, page, sortBy, sortOrder, lifecycleState, displayName | Gets a list of the ExternalNonContainerDatabases in the specified compartment.<br /> |
create | insert | region, compartmentId, displayName | opc-retry-token, opc-request-id | Creates a new ExternalNonContainerDatabase resource<br /> |
update | update | externalNonContainerDatabaseId, region, displayName | if-match, opc-request-id | Updates the properties of an external non-container database, such as the display name. |
delete | delete | externalNonContainerDatabaseId, region | if-match, opc-request-id | Deletes the Oracle Cloud Infrastructure resource representing an external non-container database.<br /> |
change_compartment | exec | externalNonContainerDatabaseId, region, compartmentId | opc-retry-token, opc-request-id, if-match | Move the external non-container database and its dependent resources to the specified compartment.<br />For more information about moving external non-container databases, see<br />[Moving Database Resources to a Different Compartment](/Content/Database/Concepts/databaseoverview.htm#moveRes).<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). |
externalNonContainerDatabaseId | string | The external non-container 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) |
displayName | string | A filter to return only resources that match the entire display 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 specified lifecycle state. |
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. |
sortBy | string | The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. |
sortOrder | string | The sort order to use, either ascending (ASC) or descending (DESC). |
SELECT examples​
- get
- list
Gets information about a specific external non-container database.
SELECT
id,
characterSet,
compartmentId,
databaseConfiguration,
databaseEdition,
databaseManagementConfig,
databaseVersion,
dbId,
dbPacks,
dbUniqueName,
definedTags,
displayName,
freeformTags,
lifecycleDetails,
lifecycleState,
ncharacterSet,
operationsInsightsConfig,
stackMonitoringConfig,
systemTags,
timeCreated,
timeZone
FROM oci.database.external_non_container_databases
WHERE externalNonContainerDatabaseId = '{{ externalNonContainerDatabaseId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;
Gets a list of the ExternalNonContainerDatabases in the specified compartment.<br />
SELECT
id,
characterSet,
compartmentId,
databaseConfiguration,
databaseEdition,
databaseManagementConfig,
databaseVersion,
dbId,
dbPacks,
dbUniqueName,
definedTags,
displayName,
freeformTags,
lifecycleDetails,
lifecycleState,
ncharacterSet,
operationsInsightsConfig,
stackMonitoringConfig,
systemTags,
timeCreated,
timeZone
FROM oci.database.external_non_container_databases
WHERE compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
AND lifecycleState = '{{ lifecycleState }}'
AND displayName = '{{ displayName }}'
;
INSERT examples​
- create
- Manifest
Creates a new ExternalNonContainerDatabase resource<br />
INSERT INTO oci.database.external_non_container_databases (
compartmentId,
definedTags,
displayName,
freeformTags,
region,
opc-retry-token,
opc-request-id
)
SELECT
'{{ compartmentId }}' /* required */,
'{{ definedTags }}',
'{{ displayName }}' /* required */,
'{{ freeformTags }}',
'{{ region }}',
'{{ opc-retry-token }}',
'{{ opc-request-id }}'
RETURNING
id,
characterSet,
compartmentId,
databaseConfiguration,
databaseEdition,
databaseManagementConfig,
databaseVersion,
dbId,
dbPacks,
dbUniqueName,
definedTags,
displayName,
freeformTags,
lifecycleDetails,
lifecycleState,
ncharacterSet,
operationsInsightsConfig,
stackMonitoringConfig,
systemTags,
timeCreated,
timeZone
;
# Description fields are for documentation purposes
- name: external_non_container_databases
props:
- name: region
value: "{{ region }}"
description: Required parameter for the external_non_container_databases resource.
- name: compartmentId
value: "{{ compartmentId }}"
description: |
The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment.
- name: definedTags
value: "{{ definedTags }}"
description: |
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).
- name: displayName
value: "{{ displayName }}"
description: |
The user-friendly name for the external database. The name does not have to be unique.
- name: freeformTags
value: "{{ freeformTags }}"
description: |
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"}`
- 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
Updates the properties of an external non-container database, such as the display name.
UPDATE oci.database.external_non_container_databases
SET
definedTags = '{{ definedTags }}',
displayName = '{{ displayName }}',
freeformTags = '{{ freeformTags }}'
WHERE
externalNonContainerDatabaseId = '{{ externalNonContainerDatabaseId }}' --required
AND region = '{{ region }}' --required
AND displayName = '{{ displayName }}' --required
AND if-match = '{{ if-match}}'
AND opc-request-id = '{{ opc-request-id}}'
RETURNING
id,
characterSet,
compartmentId,
databaseConfiguration,
databaseEdition,
databaseManagementConfig,
databaseVersion,
dbId,
dbPacks,
dbUniqueName,
definedTags,
displayName,
freeformTags,
lifecycleDetails,
lifecycleState,
ncharacterSet,
operationsInsightsConfig,
stackMonitoringConfig,
systemTags,
timeCreated,
timeZone;
DELETE examples​
- delete
Deletes the Oracle Cloud Infrastructure resource representing an external non-container database.<br />
DELETE FROM oci.database.external_non_container_databases
WHERE externalNonContainerDatabaseId = '{{ externalNonContainerDatabaseId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
AND opc-request-id = '{{ opc-request-id }}'
;
Lifecycle Methods​
- change_compartment
Move the external non-container database and its dependent resources to the specified compartment.<br />For more information about moving external non-container databases, see<br />[Moving Database Resources to a Different Compartment](/Content/Database/Concepts/databaseoverview.htm#moveRes).<br />
EXEC oci.database.external_non_container_databases.change_compartment
@externalNonContainerDatabaseId='{{ externalNonContainerDatabaseId }}' --required,
@region='{{ region }}' --required,
@opc-retry-token='{{ opc-retry-token }}',
@opc-request-id='{{ opc-request-id }}',
@if-match='{{ if-match }}'
@@json=
'{
"compartmentId": "{{ compartmentId }}"
}'
;