Note
This view is available starting with V1.4.
Purpose
The V$SESSTAT view displays session-level statistics.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SID | bigint(20) | NO | For V4.3.x:
|
| CON_ID | bigint(20) | NO | The tenant ID. |
| SVR_IP | varchar(46) | NO | The IP address of the server where the information is located. |
| SVR_PORT | bigint(20) | NO | The port number of the server where the information is located. |
| STATISTICS# | bigint(20) | NO | The index of the statistics. |
| VALUE | bigint(20) | NO | The number of times the statistics occurred. |
Sample query
Query the session-level statistics.
obclient [oceanbase]> SELECT * FROM oceanbase.V$SESSTAT LIMIT 1\G
The query result is as follows:
*************************** 1. row ***************************
SID: 3221696264
CON_ID: 1
SVR_IP: xx.xx.xx.xx
SVR_PORT: 2882
STATISTIC#: 0
VALUE: 0
