Skip to main content

db_system_upgrade_history_entries

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

Overview​

Namedb_system_upgrade_history_entries
TypeResource
Idoci.database.db_system_upgrade_history_entries

Fields​

The following fields are returned by SELECT queries:

The upgrade operation details were retrieved.

NameDatatypeDescription
idstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the upgrade history entry.
actionstringThe operating system upgrade action. (PRECHECK, ROLLBACK, UPDATE_SNAPSHOT_RETENTION_DAYS, UPGRADE)
lifecycleDetailsstringA descriptive text associated with the lifecycleState. Typically contains additional displayable text.
lifecycleStatestringThe current state of the action. (IN_PROGRESS, SUCCEEDED, FAILED, NEEDS_ATTENTION)
newGiVersionstringA valid Oracle Grid Infrastructure (GI) software version.
newOsVersionstringA valid Oracle Software (OS) version eg. Oracle Linux Server release 8
oldGiVersionstringA valid Oracle Grid Infrastructure (GI) software version.
oldOsVersionstringA valid Oracle Software (OS) version eg. Oracle Linux Server release 8
snapshotRetentionPeriodInDaysintegerThe retention period, in days, for the snapshot that allows you to perform a rollback of the upgrade operation. After this number of days passes, you cannot roll back the upgrade.
timeEndedstring (date-time)The date and time when the upgrade action completed
timeStartedstring (date-time)The date and time when the upgrade action started.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdbSystemId, upgradeHistoryEntryId, regionopc-request-idGets the details of the specified operating system upgrade operation for the specified DB system.<br />
listselectdbSystemId, regionlimit, page, sortOrder, sortBy, upgradeAction, lifecycleState, opc-request-idGets the history of the upgrade actions performed on 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).
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)
upgradeHistoryEntryIdstringThe database/db system upgrade History [OCID](/Content/General/Concepts/identifiers.htm).
lifecycleStatestringA filter to return only upgrade history entries that match the given lifecycle state exactly.
limitintegerThe maximum number of items to return per page.
opc-request-idstringUnique identifier for the request.
pagestringThe pagination token to continue listing from.
sortBystringThe field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is ascending.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC).
upgradeActionstringA filter to return only upgradeHistoryEntries that match the specified Upgrade Action.

SELECT examples​

Gets the details of the specified operating system upgrade operation for the specified DB system.<br />

SELECT
id,
action,
lifecycleDetails,
lifecycleState,
newGiVersion,
newOsVersion,
oldGiVersion,
oldOsVersion,
snapshotRetentionPeriodInDays,
timeEnded,
timeStarted
FROM oci.database.db_system_upgrade_history_entries
WHERE dbSystemId = '{{ dbSystemId }}' -- required
AND upgradeHistoryEntryId = '{{ upgradeHistoryEntryId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;