Skip to main content

db_home_patches

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

Overview​

Namedb_home_patches
TypeResource
Idoci.database.db_home_patches

Fields​

The following fields are returned by SELECT queries:

The patch package.

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
getselectdbHomeId, patchId, regionGets information about a specified patch package.<br />
listselectdbHomeId, regionlimit, pageLists patches applicable to the requested Database Home.<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
dbHomeIdstringThe Database Home [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 about a specified patch package.<br />

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