Note
- For V4.3.x versions, this view is available starting with V4.3.5.
- For V4.2.x versions, this view is available starting with V4.2.2.
Purpose
The V$STATNAME view displays the names of statistics.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CON_ID | NUMBER | NO | The tenant ID. |
| STAT_ID | NUMBER | NO | The ID of the statistic. |
| STATISTIC# | NUMBER | NO | The sequence number of the statistic. |
| NAME | VARCHAR2(64) | NO | The name of the statistic. |
| DISPLAY_NAME | VARCHAR2(64) | NO | The name of the statistic. |
| CLASS | NUMBER | NO | The category of the statistic. Each statistic can be only one of the following types:
|
Sample query
Query the definitions of all statistics in the current tenant and display the first 10 records.
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