Note
This view is available starting with V4.0.0.
Purpose
This view displays the metadata of 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. |
Sample query
Query the metadata of databases in the current tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_DATABASES;
The query result is as follows:
+---------------+---------------+-------------+-----------+----------------------+
| DATABASE_NAME | IN_RECYCLEBIN | COLLATION | READ_ONLY | COMMENT |
+---------------+---------------+-------------+-----------+----------------------+
| TEST1 | NO | utf8mb4_bin | NO | oracle user database |
| ORAAUDITOR | NO | utf8mb4_bin | NO | oracle sys schema |
| LBACSYS | NO | utf8mb4_bin | NO | oracle sys schema |
| SYS | NO | utf8mb4_bin | NO | oracle sys schema |
| __public | NO | utf8mb4_bin | YES | public schema |
| __recyclebin | NO | utf8mb4_bin | YES | recyclebin schema |
| oceanbase | NO | utf8mb4_bin | NO | system database |
+---------------+---------------+-------------+-----------+----------------------+
7 rows in set