Note
This view is available starting with V1.4.
Purpose
This view displays the statistical events of the current tenant on the current OBServer node.
Where:
STATISTIC#: the index of the statistical event. The index of the same statistical event may vary across different OBServer node versions.STAT_ID: the ID of the statistical event. The ID of the same statistical event is guaranteed to be consistent across different OBServer node versions.
Note
To use this view, you must enable monitoring by setting the value of the enable_perf_event parameter to True.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| CON_ID | NUMBER | NO | The tenant ID. |
| SVR_IP | VARCHAR2(46) | NO | The IP address of the server where the information is stored. |
| SVR_PORT | NUMBER(38) | NO | The port number of the server where the information is stored. |
| STATISTIC# | NUMBER | NO | The index of the statistical event. |
| NAME | VARCHAR2(64) | NO | The name of the statistical event. |
| CLASS | NUMBER | NO | The type of the statistical event. |
| VALUE | NUMBER | NO | The result value of the statistical event. |
| STAT_ID | NUMBER | NO | The ID of the statistical event. |
Sample query
In the user tenant, query the statistical events of the current tenant on the current node and display the first 10 records.
obclient [SYS]> SELECT * FROM SYS.V$SYSSTAT WHERE ROWNUM <= 10;
The query result is as follows:
+--------+----------------+----------+------------+-----------------------+-------+------------+---------+
| CON_ID | SVR_IP | SVR_PORT | STATISTIC# | NAME | CLASS | VALUE | STAT_ID |
+--------+----------------+----------+------------+-----------------------+-------+------------+---------+
| 1004 | 11.xxx.xxx.xxx | 28825 | 0 | rpc packet in | 1 | 11544765 | 10000 |
| 1004 | 11.xxx.xxx.xxx | 28825 | 1 | rpc packet in bytes | 1 | 4330653649 | 10001 |
| 1004 | 11.xxx.xxx.xxx | 28825 | 2 | rpc packet out | 1 | 23087847 | 10002 |
| 1004 | 11.xxx.xxx.xxx | 28825 | 3 | rpc packet out bytes | 1 | 6688319626 | 10003 |
| 1004 | 11.xxx.xxx.xxx | 28825 | 4 | rpc deliver fail | 1 | 0 | 10004 |
| 1004 | 11.xxx.xxx.xxx | 28825 | 5 | rpc net delay | 1 | 737646453 | 10005 |
| 1004 | 11.xxx.xxx.xxx | 28825 | 6 | rpc net frame delay | 1 | 2067679 | 10006 |
| 1004 | 11.xxx.xxx.xxx | 28825 | 7 | mysql packet in | 1 | 315 | 10007 |
| 1004 | 11.xxx.xxx.xxx | 28825 | 8 | mysql packet in bytes | 1 | 26499 | 10008 |
| 1004 | 11.xxx.xxx.xxx | 28825 | 9 | mysql packet out | 1 | 37214 | 10009 |
+--------+----------------+----------+------------+-----------------------+-------+------------+---------+
10 rows in set
References
Query the session-level statistical events:
Query the definitions of all statistical events of the tenant: V$STATNAME
For more information about statistical events, see Common statistical events.
