Overview
The CDB_OB_SERVER_SPACE_USAGE view is used to monitor the detailed storage space usage of each tenant on each node.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| TENANT_ID | varchar(128) | NO | Tenant ID |
| TENANT_NAME | varchar(128) | NO | Tenant name |
| SERVER_IP | varchar(46) | NO | Node IP Address Containing Tenant Uint |
| SERVER_PORT | bigint(20) | NO | Port of the Node Containing Tenant Uint |
| SPACE_TYPE | varchar(9) | NO | Types include:
NoteOnly private data of the node is counted. |
| DATA_BYTES | decimal(42,0) | NO | Data content size, in bytes |
| USAGE_BYTES | decimal(42,0) | NO | Actual disk space usage, 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