Note
This view is available starting with V4.0.0.
Purpose
This view displays the metadata of the databases in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| DATABASE_NAME | VARCHAR2(128) | NO | The name of the database. |
| IN_RECYCLEBIN | VARCHAR2(3) | NO | Indicates whether the database is in the recycle bin.
|
| COLLATION | VARCHAR2(128) | NO | The default collation of the database. |
| READ_ONLY | VARCHAR2(3) | NO | The read-only status of the database.
|
| COMMENT | VARCHAR2(2048) | NO | The description of the database. |
| TABLEGROUP_NAME | VARCHAR2(128) | NO | The name of the table group to which the database is bound.
NoteThis column is available starting with V4.4.1. |
Sample query
Query the metadata of the databases in the current user tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_DATABASES WHERE DATABASE_NAME = 'SYS'\G
The query result is as follows:
*************************** 1. row ***************************
DATABASE_NAME: SYS
IN_RECYCLEBIN: NO
COLLATION: utf8mb4_bin
READ_ONLY: NO
COMMENT: oracle sys schema
TABLEGROUP_NAME: NULL
1 row in set