Purpose
The oceanbase.CDB_OB_DATABASES view displays the database metadata of all tenants in the sys tenant.
Note
This view is introduced since OceanBase Database V4.0.0.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The ID of the tenant. |
| DATABASE_NAME | varchar(128) | NO | The name of the database. |
| IN_RECYCLEBIN | varchar(3) | NO | Indicates whether the database has been dropped and is in the recycle bin. Valid values:YESNO |
| COLLATION | varchar(128) | NO | The default collation of the database. |
| READ_ONLY | varchar(3) | NO | YES: The database is read-only.NO: The database supports reads and writes. |
| COMMENT | varchar(2048) | NO | The description of the database. |