Skip to main content

pdb_conversion_history_entries

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

Overview​

Namepdb_conversion_history_entries
TypeResource
Idoci.database.pdb_conversion_history_entries

Fields​

The following fields are returned by SELECT queries:

The pluggable database conversion history.

NameDatatypeDescription
idstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the database conversion history.
actionstringThe operations used to convert a non-container database to a pluggable database. - Use PRECHECK to run a pre-check operation on non-container database prior to converting it into a pluggable database. - Use CONVERT to convert a non-container database into a pluggable database. - Use SYNC if the non-container database was manually converted into a pluggable database using the dbcli command-line utility. Databases may need to be converted manually if the CONVERT action fails when converting a non-container database using the API. - Use SYNC_ROLLBACK if the conversion of a non-container database into a pluggable database was manually rolled back using the dbcli command line utility. Conversions may need to be manually rolled back if the CONVERT action fails when converting a non-container database using the API. (PRECHECK, CONVERT, SYNC, SYNC_ROLLBACK)
additionalCdbParamsstringAdditional container database parameter.
cdbNamestringThe database name. The name must begin with an alphabetic character and can contain a maximum of 8 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.
lifecycleDetailsstringAdditional information about the current lifecycle state for the conversion operation.
lifecycleStatestringStatus of an operation performed during the conversion of a non-container database to a pluggable database. (SUCCEEDED, FAILED, IN_PROGRESS)
sourceDatabaseIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the database.
targetstringThe target container database of the pluggable database created by the database conversion operation. Currently, the database conversion operation only supports creating the pluggable database in a new container database. - Use NEW_DATABASE to specify that the pluggable database be created within a new container database in the same database home. (NEW_DATABASE)
targetDatabaseIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the database.
timeEndedstring (date-time)The date and time when the database conversion operation ended.
timeStartedstring (date-time)The date and time when the database conversion operation started.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdatabaseId, pdbConversionHistoryEntryId, regionopc-request-idGets the details of operations performed to convert the specified database from non-container (non-CDB) to pluggable (PDB).<br />
listselectdatabaseId, regionpdbConversionAction, lifecycleState, sortBy, sortOrder, opc-request-id, limit, pageGets the pluggable database conversion 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).
pdbConversionHistoryEntryIdstringThe database conversion history [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)
lifecycleStatestringA filter to return only the pluggable database conversion history entries that match the specified lifecycle state. For example, you can use this filter to return only entries in the "failed" lifecycle state.
limitintegerThe maximum number of items to return per page.
opc-request-idstringUnique identifier for the request.
pagestringThe pagination token to continue listing from.
pdbConversionActionstringA filter to return only the pluggable database conversion history entries that match the specified conversion action. For example, you can use this filter to return only entries for the precheck operation.
sortBystringThe field to sort by. You can provide one sort order (sortOrder). The default order for TIMECREATED is ascending.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC).

SELECT examples​

Gets the details of operations performed to convert the specified database from non-container (non-CDB) to pluggable (PDB).<br />

SELECT
id,
action,
additionalCdbParams,
cdbName,
lifecycleDetails,
lifecycleState,
sourceDatabaseId,
target,
targetDatabaseId,
timeEnded,
timeStarted
FROM oci.database.pdb_conversion_history_entries
WHERE databaseId = '{{ databaseId }}' -- required
AND pdbConversionHistoryEntryId = '{{ pdbConversionHistoryEntryId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;