Note
This view is introduced since OceanBase Database V4.2.2.
Purpose
The V$STATNAME view displays the statistical items.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CON_ID | NUMBER | NO | The ID of the tenant. |
| STAT_ID | NUMBER | NO | The ID of the statistical item. |
| STATISTIC# | NUMBER | NO | The sequence number of the statistical item. |
| NAME | VARCHAR2(64) | NO | The name of the statistical item. |
| DISPLAY_NAME | VARCHAR2(64) | NO | The display name of the statistical item. |
| CLASS | NUMBER | NO | The class of the statistical item. Each statistical item can belong to only one class.
|
Sample query
obclient [SYS]> SELECT * FROM SYS.V$STATNAME WHERE ROWNUM = 1;
The query result is as follows:
+--------+---------+------------+---------------+---------------+-------+
| CON_ID | STAT_ID | STATISTIC# | NAME | DISPLAY_NAME | CLASS |
+--------+---------+------------+---------------+---------------+-------+
| 1004 | 10000 | 0 | rpc packet in | rpc packet in | 1 |
+--------+---------+------------+---------------+---------------+-------+
1 row in set