Overview
Displays the unit information for all tenants.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| UNIT_ID | bigint(20) | NO | Unit ID |
| TENANT_ID | bigint(20) | NO | Tenant ID of the unit:
|
| STATUS | varchar(128) | NO |
|
| RESOURCE_POOL_ID | bigint(20) | NO | ID of the resource pool to which the unit belongs. |
| UNIT_GROUP_ID | bigint(20) | NO | Unit group ID to which the unit belongs |
| CREATE_TIME | timestamp(6) | YES | Unit creation time |
| MODIFY_TIME | timestamp(6) | YES | Unit Modified At |
| ZONE | varchar(128) | NO | Zone Name |
| SVR_IP | varchar(46) | NO | OBServer IP Address of the Unit |
| SVR_PORT | bigint(20) | NO | OBServer Port Number of the Unit |
| MIGRATE_FROM_SVR_IP | varchar(46) | NO |
|
| MIGRATE_FROM_SVR_PORT | bigint(20) | NO |
|
| MANUAL_MIGRATE | varchar(3) | NO |
|
| UNIT_CONFIG_ID | bigint(20) | NO | Unit Specification ID |
| MAX_CPU | double | NO | Maximum CPU Specification |
| MIN_CPU | double | NO | Minimum CPU Specification |
| MEMORY_SIZE | bigint(20) | NO | Memory specification, in bytes |
| LOG_DISK_SIZE | bigint(20) | NO | Log disk specification, in bytes |
| DATA_DISK_SIZE | bigint(20) | NO | The size of the local cache available to the unit, in bytes. |
| MAX_IOPS | bigint(20) | NO | Maximum Disk IOPS Specification |
| MIN_IOPS | bigint(20) | NO | Minimum Disk IOPS Specification |
| IOPS_WEIGHT | bigint(20) | NO | IOPS Weight |
| MAX_NET_bandWIDTH | bigint(20) | NO | The maximum network bandwidth of a unit, in bytes. |
| NET_BANDWIDTH_WEIGHT | bigint(20) | NO | Weight value of unit's network bandwidth |
| NET_BANDWIDTH_WEIGHT | bigint(20) | NO | Weight value of unit's network bandwidth |
| REPLICA_TYPE | varchar(7) | NO | Replica type. Default: FULL |
Sample query
View the unit information of all tenants.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_UNITS\G
The query result is as follows:
*************************** 1. row ***************************
UNIT_ID: 1
TENANT_ID: 1
STATUS: ACTIVE
RESOURCE_POOL_ID: 1
UNIT_GROUP_ID: 1
CREATE_TIME: 2025-06-23 15:04:26.853917
MODIFY_TIME: 2025-06-23 15:04:26.853917
ZONE: zone1
SVR_IP: 172.xx.xxx.xxx
SVR_PORT: 2882
MIGRATE_FROM_SVR_IP: NULL
MIGRATE_FROM_SVR_PORT: NULL
MANUAL_MIGRATE: NULL
UNIT_CONFIG_ID: 1
MAX_CPU: 4
MIN_CPU: 4
MEMORY_SIZE: 5368709120
LOG_DISK_SIZE: 17448304640
DATA_DISK_SIZE: NULL
MAX_IOPS: 9223372036854775807
MIN_IOPS: 9223372036854775807
IOPS_WEIGHT: 4
MAX_NET_BANDWIDTH: 9223372036854775807
NET_BANDWIDTH_WEIGHT: 4
REPLICA_TYPE: FULL
*************************** 2. row ***************************
UNIT_ID: 1001
TENANT_ID: 1002
STATUS: ACTIVE
RESOURCE_POOL_ID: 1001
UNIT_GROUP_ID: 1001
CREATE_TIME: 2025-06-23 15:16:09.087075
MODIFY_TIME: 2025-06-23 15:16:18.624919
ZONE: zone1
SVR_IP: 172.xx.xxx.xxx
SVR_PORT: 2882
MIGRATE_FROM_SVR_IP: NULL
MIGRATE_FROM_SVR_PORT: NULL
MANUAL_MIGRATE: NULL
UNIT_CONFIG_ID: 1001
MAX_CPU: 2
MIN_CPU: 2
MEMORY_SIZE: 6442450944
LOG_DISK_SIZE: 19327352832
DATA_DISK_SIZE: NULL
MAX_IOPS: 9223372036854775807
MIN_IOPS: 9223372036854775807
IOPS_WEIGHT: 2
MAX_NET_BANDWIDTH: 9223372036854775807
NET_BANDWIDTH_WEIGHT: 2
REPLICA_TYPE: FULL
*************************** 3. row ***************************
UNIT_ID: 1002
TENANT_ID: 1004
STATUS: ACTIVE
RESOURCE_POOL_ID: 1002
UNIT_GROUP_ID: 1002
CREATE_TIME: 2025-06-23 15:16:12.956789
MODIFY_TIME: 2025-06-23 15:17:14.677111
ZONE: zone1
SVR_IP: 172.xx.xxx.xxx
SVR_PORT: 2882
MIGRATE_FROM_SVR_IP: NULL
MIGRATE_FROM_SVR_PORT: NULL
MANUAL_MIGRATE: NULL
UNIT_CONFIG_ID: 1001
MAX_CPU: 2
MIN_CPU: 2
MEMORY_SIZE: 6442450944
LOG_DISK_SIZE: 19327352832
DATA_DISK_SIZE: NULL
MAX_IOPS: 9223372036854775807
MIN_IOPS: 9223372036854775807
IOPS_WEIGHT: 2
MAX_NET_BANDWIDTH: 9223372036854775807
NET_BANDWIDTH_WEIGHT: 2
REPLICA_TYPE: FULL
3 rows in set