Note
This view was introduced in OceanBase Database V4.2.1.
Purpose
This view displays the details of system statistics of all tenants.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CLUSTER_ID | NUMBER(38) | NO | The ID of the cluster. |
| TENANT_ID | NUMBER(38) | NO | The ID of the tenant. |
| SNAP_ID | NUMBER(38) | NO | The ID of the snapshot. |
| SVR_IP | VARCHAR2(46) | NO | The IP address of the node. |
| SVR_PORT | NUMBER(38) | NO | The port of the node. |
| STAT_ID | NUMBER(38) | NO | The ID of the statistic. |
| VALUE | NUMBER(38) | YES | The value of the statistic. |
Sample query
The following example queries the details of system statistics of the current tenant.
obclient [SYS]> SELECT * FROM oceanbase.DBA_WR_SYSSTAT limit 1;
The return result is as follows:
+------------+-----------+---------+----------------+----------+---------+--------+
| CLUSTER_ID | TENANT_ID | SNAP_ID | SVR_IP | SVR_PORT | STAT_ID | VALUE |
+------------+-----------+---------+----------------+----------+---------+--------+
| 4000 | 1 | 114 | xx.xx.xx.xx | 2882 | 10000 | 228856 |
+------------+-----------+---------+----------------+----------+---------+--------+
1 row in set (0.026 sec)