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}
adminPasswordstringRequired. The password for the default ADMIN user.
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.
propertiesobjectOptional. The properties of the Database. (id: DatabaseProperties)
tdeWalletPasswordstringOptional. The TDE wallet password for the database.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, databasesIdGets details of a single Database.
listselectprojectsId, locationsIdpageSize, pageToken, filterLists 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,
characterSet,
createTime,
databaseId,
dbHomeName,
dbName,
dbUniqueName,
gcpOracleZone,
ncharacterSet,
ociUrl,
opsInsightsStatus,
properties,
tdeWalletPassword
FROM google.oracledatabase.databases
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND databasesId = '{{ databasesId }}' -- required
;