Note
This view is available starting with V4.0.0.
Purpose
This view displays the information about the units on the current OBServer node.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SVR_IP | VARCHAR2(46) | NO | The IP address of the server. |
| SVR_PORT | NUMBER(38) | NO | The port number of the server. |
| UNIT_ID | NUMBER(38) | NO | The ID of the unit. |
| TENANT_ID | NUMBER(38) | NO | The ID of the tenant to which the unit belongs. |
| ZONE | VARCHAR2(128) | NO | The name of the zone. |
| ZONE_TYPE | VARCHAR2(128) | NO | The type of the zone where the unit resides. Valid values:
NoteThis column is available starting with V4.2.0. |
| REGION | VARCHAR2(128) | NO | The name of the region to which the zone where the unit resides belongs. If this column is not set, the default value is default_region. If the value is NULL, it indicates that the value is invalid. This value appears temporarily after the OBServer node restarts.
NoteThis column is available starting with V4.2.0. |
| MIN_CPU | NUMBER(38) | NO | The lower limit of the CPU specifications. |
| MAX_CPU | NUMBER(38) | NO | The upper limit of the CPU specifications. |
| MEMORY_SIZE | NUMBER(38) | NO | The size of memory, in bytes. |
| MIN_IOPS | NUMBER(38) | NO | The lower limit of the disk IOPS specifications. |
| MAX_IOPS | NUMBER(38) | NO | The upper limit of the disk IOPS specifications. |
| IOPS_WEIGHT | NUMBER(38) | NO | The IOPS weight. |
| MAX_NET_BANDWIDTH | NUMBER(38) | YES | The maximum network bandwidth of the unit, in bytes.
NoteThis column is available starting with V4.3.4. |
| NET_BANDWIDTH_WEIGHT | NUMBER(38) | YES | The weight of the network bandwidth of the unit.
NoteThis column is available starting with V4.3.4. |
| LOG_DISK_SIZE | NUMBER(38) | NO | The size of the log disk, in bytes. |
| LOG_DISK_IN_USE | NUMBER(38) | NO | The size of the log disk that has been used, in bytes. |
| DATA_DISK_SIZE | NUMBER(38) | YES |
NoteThis column is available starting with V4.3.4. |
| DATA_DISK_IN_USE | NUMBER(38) | NO |
|
| STATUS | VARCHAR2(64) | NO | The status of the unit. Valid values:
|
| CREATE_TIME | NUMBER(38) | NO | The unit creation time on the OBServer node. |
| REPLICA_TYPE | VARCHAR2(7) | NO | The replica type. The default value is FULL.
Note
|
Sample query
In SN mode, a user tenant queries the Unit information of the current OBServer node.
obclient [SYS]> SELECT * FROM SYS.V$OB_UNITS\G
The query result is as follows:
*************************** 1. row ***************************
SVR_IP: 172.xx.xxx.xxx
SVR_PORT: 2882
UNIT_ID: 1002
TENANT_ID: 1004
ZONE: zone1
ZONE_TYPE: ReadWrite
REGION: default_region
MIN_CPU: 2
MAX_CPU: 2
MEMORY_SIZE: 5368709120
MIN_IOPS: 9223372036854775807
MAX_IOPS: 9223372036854775807
IOPS_WEIGHT: 2
MAX_NET_BANDWIDTH: 9223372036854775807
NET_BANDWIDTH_WEIGHT: 2
LOG_DISK_SIZE: 17394617549
LOG_DISK_IN_USE: 1751668778
DATA_DISK_SIZE: NULL
DATA_DISK_IN_USE: 29081600
STATUS: NORMAL
CREATE_TIME: 1730257207614632
REPLICA_TYPE: FULL
1 row in set
References
Query the Unit information of all nodes: GV$OB_UNITS
For more information about tenant resources, see View tenant and resource information.
