Note
This view is available starting with V4.2.1.
Purpose
This view displays the names of system statistics for the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| CLUSTER_ID | bigint(20) | NO | The cluster ID. |
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| STAT_ID | bigint(20) | NO | The ID of the system statistic. |
| STAT_NAME | varchar(64) | NO | The name of the system statistic. |
Sample query
Query the names of system statistics for the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_WR_STATNAME limit 1;
The return result is as follows:
+------------+-----------+---------+---------------+
| CLUSTER_ID | TENANT_ID | STAT_ID | STAT_NAME |
+------------+-----------+---------+---------------+
| 4000 | 1 | 10000 | rpc packet in |
+------------+-----------+---------+---------------+
1 row in set (0.004 sec)
