Skip to main content

db_versions

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

Overview​

Namedb_versions
TypeResource
Idoci.database.db_versions

Fields​

The following fields are returned by SELECT queries:

The Oracle Database software version.<br /><br />To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](/Content/Identity/Concepts/policygetstarted.htm).<br />

NameDatatypeDescription
isLatestForMajorVersionbooleanTrue if this version of the Oracle Database software is the latest version for a release.
isPreviewDbVersionbooleanTrue if this version of the Oracle Database software is the preview version.
isUpgradeSupportedbooleanTrue if this version of the Oracle Database software is supported for Upgrade.
supportsPdbbooleanTrue if this version of the Oracle Database software supports pluggable databases.
versionstringA valid Oracle Database version.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcompartmentId, regionlimit, page, dbSystemShape, dbSystemId, storageManagement, shapeAttribute, isUpgradeSupported, isDatabaseSoftwareImageSupportedGets a list of supported Oracle Database versions.

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
compartmentIdstringThe compartment [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)
dbSystemIdstringThe DB system [OCID](/Content/General/Concepts/identifiers.htm). If provided, filters the results to the set of database versions which are supported for the DB system.
dbSystemShapestringIf provided, filters the results to the set of database versions which are supported for the given shape.
isDatabaseSoftwareImageSupportedbooleanIf true, filters the results to the set of Oracle Database versions that are supported for OCI database software images.
isUpgradeSupportedbooleanIf provided, filters the results to the set of database versions which are supported for Upgrade.
limitintegerThe maximum number of items to return per page.
pagestringThe pagination token to continue listing from.
shapeAttributestringIf provided and applicable, return DB System shape parameters based on the shapeAttribute provided
storageManagementstringThe DB system storage management option. Used to list database versions available for that storage manager. Valid values are ASM and LVM. * ASM specifies Oracle Automatic Storage Management * LVM specifies logical volume manager, sometimes called logical disk manager.

SELECT examples​

Gets a list of supported Oracle Database versions.

SELECT
isLatestForMajorVersion,
isPreviewDbVersion,
isUpgradeSupported,
supportsPdb,
version
FROM oci.database.db_versions
WHERE compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND dbSystemShape = '{{ dbSystemShape }}'
AND dbSystemId = '{{ dbSystemId }}'
AND storageManagement = '{{ storageManagement }}'
AND shapeAttribute = '{{ shapeAttribute }}'
AND isUpgradeSupported = '{{ isUpgradeSupported }}'
AND isDatabaseSoftwareImageSupported = '{{ isDatabaseSoftwareImageSupported }}'
;