Note
This view is available starting with V1.4.
Purpose
The V$SESSTAT view displays session-level statistics.
In this view, STATISTIC# indicates the statistic number. You can query the V$STATNAME view to obtain the name and description of the statistic corresponding to the statistic number.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SID | NUMBER | NO | For V4.3.x:
|
| CON_ID | NUMBER | NO | The tenant ID. |
| SVR_IP | VARCHAR2(46) | NO | The IP address of the server. |
| SVR_PORT | NUMBER(38) | NO | The port number of the server. |
| STATISTIC# | NUMBER | NO | The statistic number. |
| VALUE | NUMBER | NO | The statistic value. |
Sample query
Query some session-level statistics.
obclient [SYS]> SELECT * FROM SYS.V$SESSTAT WHERE ROWNUM =1\G
The query result is as follows:
*************************** 1. row ***************************
SID: 1152921504606867748
CON_ID: 1004
SVR_IP: xx.xx.xx.xx
SVR_PORT: 2882
STATISTIC#: 0
VALUE: 0
