Note
This view is available starting with V4.0.0.
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 of the unit |
| 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 | IP Address of the OBServer Where the Unit Belongs |
| 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 |
| 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 |
| REPLICA_TYPE | varchar(7) | NO | Replica type. Default value:FULL
NoteThe |
Sample query
The system tenant queries the unit information of the tenant with ID 1002.
obclient(root@sys)[oceanbase]> SELECT * FROM oceanbase.DBA_OB_UNITS WHERE TENANT_ID=1002\G
The query result is as follows:
*************************** 1. row ***************************
UNIT_ID: 1001
TENANT_ID: 1002
STATUS: ACTIVE
RESOURCE_POOL_ID: 1001
UNIT_GROUP_ID: 1001
CREATE_TIME: 2025-10-15 11:12:51.198872
MODIFY_TIME: 2025-10-15 11:13:02.371741
ZONE: zone1
SVR_IP: xxx.xx.xxx.239
SVR_PORT: 2882
MIGRATE_FROM_SVR_IP: NULL
MIGRATE_FROM_SVR_PORT: NULL
MANUAL_MIGRATE: NULL
UNIT_CONFIG_ID: 1001
MAX_CPU: 1
MIN_CPU: 1
MEMORY_SIZE: 5368709120
LOG_DISK_SIZE: 16106127360
MAX_IOPS: 9223372036854775807
MIN_IOPS: 9223372036854775807
IOPS_WEIGHT: 1
REPLICA_TYPE: FULL
*************************** 2. row ***************************
UNIT_ID: 1002
TENANT_ID: 1002
STATUS: ACTIVE
RESOURCE_POOL_ID: 1001
UNIT_GROUP_ID: 1001
CREATE_TIME: 2025-10-15 11:12:51.202933
MODIFY_TIME: 2025-10-15 11:13:02.372625
ZONE: zone2
SVR_IP: xxx.xx.xxx.201
SVR_PORT: 2882
MIGRATE_FROM_SVR_IP: NULL
MIGRATE_FROM_SVR_PORT: NULL
MANUAL_MIGRATE: NULL
UNIT_CONFIG_ID: 1001
MAX_CPU: 1
MIN_CPU: 1
MEMORY_SIZE: 5368709120
LOG_DISK_SIZE: 16106127360
MAX_IOPS: 9223372036854775807
MIN_IOPS: 9223372036854775807
IOPS_WEIGHT: 1
REPLICA_TYPE: FULL
*************************** 3. row ***************************
UNIT_ID: 1003
TENANT_ID: 1002
STATUS: ACTIVE
RESOURCE_POOL_ID: 1001
UNIT_GROUP_ID: 1001
CREATE_TIME: 2025-10-15 11:12:51.207160
MODIFY_TIME: 2025-10-15 11:13:02.372625
ZONE: zone3
SVR_IP: xxx.xx.xxx.198
SVR_PORT: 2882
MIGRATE_FROM_SVR_IP: NULL
MIGRATE_FROM_SVR_PORT: NULL
MANUAL_MIGRATE: NULL
UNIT_CONFIG_ID: 1001
MAX_CPU: 1
MIN_CPU: 1
MEMORY_SIZE: 5368709120
LOG_DISK_SIZE: 16106127360
MAX_IOPS: 9223372036854775807
MIN_IOPS: 9223372036854775807
IOPS_WEIGHT: 1
REPLICA_TYPE: FULL
3 rows in set
