Skip to main content

databases

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

Overview

Namedatabases
TypeResource
Idgoogle.oracledatabase.databases

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The name of the Database resource in the following format: projects/{project}/locations/{region}/databases/{database}
adminPasswordstringOptional. The password for the default ADMIN user. Note: Only one of admin_password_secret_version or admin_password can be populated.
adminPasswordSecretVersionstringOptional. The resource name of a secret version in Secret Manager which contains the database admin user's password. Format: projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of admin_password_secret_version or admin_password can be populated.
characterSetstringOptional. The character set for the database. The default is AL32UTF8.
createTimestring (google-datetime)Output only. The date and time that the Database was created.
databaseIdstringOptional. The database ID of the Database.
dbHomeNamestringOptional. The name of the DbHome resource associated with the Database.
dbNamestringOptional. The database name. The name must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted.
dbUniqueNamestringOptional. The DB_UNIQUE_NAME of the Oracle Database being backed up.
gcpOracleZonestringOutput only. The GCP Oracle zone where the Database is created.
ncharacterSetstringOptional. The national character set for the database. The default is AL16UTF16.
ociUrlstringOutput only. HTTPS link to OCI resources exposed to Customer via UI Interface.
opsInsightsStatusstringOutput only. The Status of Operations Insights for this Database. (OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED, ENABLING, ENABLED, DISABLING, NOT_ENABLED, FAILED_ENABLING, FAILED_DISABLING)
pluggableDatabaseIdstringOptional. The ID of the pluggable database associated with the Database. The ID must be unique within the project and location.
pluggableDatabaseNamestringOptional. The pluggable database associated with the Database. The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters.
propertiesobjectOptional. The properties of the Database. (id: DatabaseProperties)
tdeWalletPasswordstringOptional. The TDE wallet password for the database. Note: Only one of tde_wallet_password_secret_version or tde_wallet_password can be populated.
tdeWalletPasswordSecretVersionstringOptional. The resource name of a secret version in Secret Manager which contains the TDE wallet password for the database. Format: projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of tde_wallet_password_secret_version or tde_wallet_password can be populated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, databasesIdGets details of a single Database.
listselectprojectsId, locationsIdpageToken, filter, pageSizeLists all the Databases for the given project, location and DbSystem.

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
databasesIdstring
locationsIdstring
projectsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets details of a single Database.

SELECT
name,
adminPassword,
adminPasswordSecretVersion,
characterSet,
createTime,
databaseId,
dbHomeName,
dbName,
dbUniqueName,
gcpOracleZone,
ncharacterSet,
ociUrl,
opsInsightsStatus,
pluggableDatabaseId,
pluggableDatabaseName,
properties,
tdeWalletPassword,
tdeWalletPasswordSecretVersion
FROM google.oracledatabase.databases
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND databasesId = '{{ databasesId }}' -- required
;