Skip to main content

pluggable_database_snapshots

Creates, updates, deletes, gets or lists a pluggable_database_snapshots resource.

Overview​

Namepluggable_database_snapshots
TypeResource
Idoci.database.pluggable_database_snapshots

Fields​

The following fields are returned by SELECT queries:

Information about the Exadata Pluggable Database Snapshot.

NameDatatypeDescription
idstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Exadata Pluggable Database Snapshot.
namestringThe user-friendly name for the Database Snapshot. The name should be unique.
clusterIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the VM cluster.
compartmentIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the compartment.
definedTagsobjectDefined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm).
freeformTagsobjectFree-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"}
lifecycleDetailsstringAdditional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
lifecycleStatestringThe current state of the Exadata Pluggable Database Snapshot. (CREATING, AVAILABLE, TERMINATING, TERMINATED, FAILED)
pluggableDatabaseIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Exadata Pluggable Database.
systemTagsobjectSystem tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm).
timeCreatedstring (date-time)The date and time that the Exadata Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectpluggableDatabaseSnapshotId, regionopc-request-idGets information about the specified Exadata Pluggable Database Snapshot in the specified compartment.<br />
listselectregioncompartmentId, limit, page, sortBy, name, sortOrder, lifecycleState, clusterId, pluggableDatabaseId, opc-request-idGets a list of the Exadata Pluggable Database Snapshots in the specified compartment.<br />
createinsertregion, name, pluggableDatabaseIdopc-retry-token, opc-request-idCreates a Pluggable Database Snapshot<br />
deletedeletepluggableDatabaseSnapshotId, regionif-match, opc-request-idDeletes the specified Exadata Pluggable Database Snapshot.<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.

NameDatatypeDescription
pluggableDatabaseSnapshotIdstringThe Exadata Pluggable Database Snapshot [OCID](/Content/General/Concepts/identifiers.htm).
regionstringOCI 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)
clusterIdstringA filter to return only Exadata Database Node Snapshots that match the given VM cluster.
compartmentIdstringThe compartment [OCID](/Content/General/Concepts/identifiers.htm).
if-matchstringFor 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.
lifecycleStatestringA filter to return only Exadata Pluggable Database Snapshots that match the given lifecycle state exactly.
limitintegerThe maximum number of items to return per page.
namestringA filter to return only resources that match the entire name given. The match is not case sensitive.
opc-request-idstringUnique identifier for the request.
opc-retry-tokenstringA 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).
pagestringThe pagination token to continue listing from.
pluggableDatabaseIdstringA filter to return only Exadata Pluggable Database Snapshots that match the given database [OCID](/Content/General/Concepts/identifiers.htm).
sortBystringThe field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for NAME is ascending. The NAME sort order is case sensitive.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC).

SELECT examples​

Gets information about the specified Exadata Pluggable Database Snapshot in the specified compartment.<br />

SELECT
id,
name,
clusterId,
compartmentId,
definedTags,
freeformTags,
lifecycleDetails,
lifecycleState,
pluggableDatabaseId,
systemTags,
timeCreated
FROM oci.database.pluggable_database_snapshots
WHERE pluggableDatabaseSnapshotId = '{{ pluggableDatabaseSnapshotId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;

INSERT examples​

Creates a Pluggable Database Snapshot<br />

INSERT INTO oci.database.pluggable_database_snapshots (
definedTags,
freeformTags,
name,
pluggableDatabaseId,
region,
opc-retry-token,
opc-request-id
)
SELECT
'{{ definedTags }}',
'{{ freeformTags }}',
'{{ name }}' /* required */,
'{{ pluggableDatabaseId }}' /* required */,
'{{ region }}',
'{{ opc-retry-token }}',
'{{ opc-request-id }}'
RETURNING
id,
name,
clusterId,
compartmentId,
definedTags,
freeformTags,
lifecycleDetails,
lifecycleState,
pluggableDatabaseId,
systemTags,
timeCreated
;

DELETE examples​

Deletes the specified Exadata Pluggable Database Snapshot.<br />

DELETE FROM oci.database.pluggable_database_snapshots
WHERE pluggableDatabaseSnapshotId = '{{ pluggableDatabaseSnapshotId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
AND opc-request-id = '{{ opc-request-id }}'
;