Note
- This view is available starting with V4.3.5 for V4.3.x.
- This view is available starting with V4.2.2 for V4.2.x.
Purpose
The V$OB_SESS_TIME_MODEL view displays session-level time model statistics on the current node.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SID | NUMBER | NO | Session ID |
| TENANT_ID | NUMBER | NO | Tenant ID |
| SVR_IP | VARCHAR2(46) | NO | Node IP |
| SVR_PORT | NUMBER(38) | NO | Node port number |
| STAT_ID | NUMBER | NO | Statistics ID |
| STAT_NAME | VARCHAR2(64) | NO | Statistics name |
| VALUE | NUMBER | NO | Statistics value |
The values in the STAT_NAME column of this view are the names and IDs of statistics events, as shown in the following table.
| Statistics Event Name | Description | Statistics Event ID | Statistics Event Type |
|---|---|---|---|
| DB time | Total time for database activity, including the sum of CPU and non-idle wait times | 200001 | 3072 |
| DB CPU | CPU time consumed during database activity | 200002 | 3072 |
| background elapsed time | Total time for background processes | 200005 | 3072 |
| background cpu time | CPU time consumed by background processes | 200006 | 3072 |
| non idle wait time | Total time for non-idle waits, i.e., the time when the session is in a waiting state but not in an idle wait state | 200010 | 3072 |
| idle wait time | Total time for idle waits, i.e., the time when the session is in an idle wait state | 200011 | 3072 |
| background database time | Total time for background processes to execute database operations | 200012 | 3072 |
| background database non-idle wait time | Total time for background processes to execute database operations in a non-idle wait state | 200013 | 3072 |
| background database idle wait time | Total time for background processes to execute database operations in an idle wait state | 200014 | 3072 |
| concurrency wait total time | Total time spent waiting due to concurrency issues, such as waiting for resource locks | 220001 | 3072 |
| user io wait total time | Total time spent by user processes waiting for I/O operations (such as reading or writing data to disk) to complete | 220002 | 3072 |
| application wait total time | Total time spent waiting due to user application code, such as lock waits caused by row-level locks or explicit lock commands | 2200013 | 3072 |
Sample query
Query session-level time model statistics on the current node and display the first record.
obclient [SYS]> SELECT * FROM SYS.V$OB_SESS_TIME_MODEL WHERE ROWNUM = 1;
The query result is as follows:
+---------------+-----------+----------------+----------+---------+--------------------+-------+
| SID | TENANT_ID | SVR_IP | SVR_PORT | STAT_ID | STAT_NAME | VALUE |
+---------------+-----------+----------------+----------+---------+--------------------+-------+
| 4947802324992 | 1004 | 172.xx.xxx.xxx | 2882 | 200010 | non idle wait time | 0 |
+---------------+-----------+----------------+----------+---------+--------------------+-------+
1 row in set