Overview
The CDB_OB_SPACE_usage view records the space usage of different data types for each tenant at various endpoints and paths.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| TENANT_ID | varchar(128) | NO | Tenant ID. |
| TENANT_NAME | varchar(128) | NO | Tenant name. |
| ENDPOINT | varchar(1024) | NO | Endpoint for shared storage. |
| PATH | varchar(1024) | NO | The path of the shared storage. |
| SPACE_TYPE | varchar(11) | NO |
|
| USAGE_BYTES | decimal(42,0) | NO | The actual size of disk space occupied by the data, in bytes. |
References
- Query the size of all user tables in all tenants (based on the leader replica in a multi-replica environment): oceanbase.CDB_OB_TABLE_SPACE_USAGE
- View detailed information about storage space usage of each tenant on each node: oceanbase.CDB_OB_SERVER_SPACE_USAGE