Skip to main content

database_upgrade_history_entries

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

Overview​

Namedatabase_upgrade_history_entries
TypeResource
Idoci.database.database_upgrade_history_entries

Fields​

The following fields are returned by SELECT queries:

The database upgrade history.

NameDatatypeDescription
idstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the database upgrade history.
actionstringThe database upgrade action. (PRECHECK, UPGRADE, ROLLBACK)
lifecycleDetailsstringAdditional information about the current lifecycle state.
lifecycleStatestringStatus of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED. (SUCCEEDED, FAILED, IN_PROGRESS)
optionsstringAdditional upgrade options supported by DBUA(Database Upgrade Assistant). Example: "-upgradeTimezone false -keepEvents"
sourcestringThe source of the Oracle Database software to be used for the upgrade. - Use DB_HOME to specify an existing Database Home to upgrade the database. The database is moved to the target Database Home and makes use of the Oracle Database software version of the target Database Home. - Use DB_VERSION to specify a generally-available Oracle Database software version to upgrade the database. - Use DB_SOFTWARE_IMAGE to specify a [database software image](/iaas/Content/Database/Concepts/databasesoftwareimage.htm) to upgrade the database. (DB_HOME, DB_VERSION, DB_SOFTWARE_IMAGE)
sourceDbHomeIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Database Home.
targetDBVersionstringA valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation. This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, privateEndpointLabel, nsgIds, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier.
targetDatabaseSoftwareImageIdstringthe database software image used for upgrading database.
targetDbHomeIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Database Home.
timeEndedstring (date-time)The date and time when the database upgrade ended.
timeStartedstring (date-time)The date and time when the database upgrade started.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdatabaseId, upgradeHistoryEntryId, regionopc-request-idgets the upgrade history for a specified database.<br />
listselectdatabaseId, regionupgradeAction, lifecycleState, sortBy, sortOrder, opc-request-id, limit, pageGets the upgrade history for a specified database in a bare metal or virtual machine 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
databaseIdstringThe database [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 upgradeHistoryEntries 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 upgrade history for a specified database.<br />

SELECT
id,
action,
lifecycleDetails,
lifecycleState,
options,
source,
sourceDbHomeId,
targetDBVersion,
targetDatabaseSoftwareImageId,
targetDbHomeId,
timeEnded,
timeStarted
FROM oci.database.database_upgrade_history_entries
WHERE databaseId = '{{ databaseId }}' -- required
AND upgradeHistoryEntryId = '{{ upgradeHistoryEntryId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;