Skip to main content

db_system_patches

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

Overview​

Namedb_system_patches
TypeResource
Idoci.database.db_system_patches

Fields​

The following fields are returned by SELECT queries:

The patch information was retrieved.

NameDatatypeDescription
idstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the patch.
availableActionsarrayActions that can possibly be performed using this patch.
descriptionstringThe text describing this patch package.
lastActionstringAction that is currently being performed or was completed last. (APPLY, PRECHECK)
lifecycleDetailsstringA descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
lifecycleStatestringThe current state of the patch as a result of lastAction. (AVAILABLE, SUCCESS, IN_PROGRESS, FAILED)
timeReleasedstring (date-time)The date and time that the patch was released.
versionstringThe version of this patch package.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdbSystemId, patchId, regionGets information the specified patch.<br />
listselectdbSystemId, regionlimit, pageLists the patches applicable to the specified DB system.<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
dbSystemIdstringThe DB system [OCID](/Content/General/Concepts/identifiers.htm).
patchIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the patch.
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)
limitintegerThe maximum number of items to return per page.
pagestringThe pagination token to continue listing from.

SELECT examples​

Gets information the specified patch.<br />

SELECT
id,
availableActions,
description,
lastAction,
lifecycleDetails,
lifecycleState,
timeReleased,
version
FROM oci.database.db_system_patches
WHERE dbSystemId = '{{ dbSystemId }}' -- required
AND patchId = '{{ patchId }}' -- required
AND region = '{{ region }}' -- required
;