Note
- Starting from V4.3.5, this view is introduced in V4.3.x.
- Starting from V4.2.2, this view is introduced in V4.2.x.
Purpose
The DBA_WR_SYS_TIME_MODEL view displays the WR statistics of the Time Model in the tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| SNAP_ID | NUMBER(38) | NO | Snapshot ID |
| SVR_IP | VARCHAR2(46) | NO | Node IP |
| SVR_PORT | NUMBER(38) | NO | Node port |
| STAT_ID | NUMBER(38) | NO | Statistic ID |
| STAT_NAME | VARCHAR2(64) | NO | Statistic name |
| VALUE | NUMBER(38) | NO | Statistic value |
The following table describes the values of the STAT_NAME column in the view.
| Statistic name | Description | Statistic ID | Statistic type |
|---|---|---|---|
| DB time | Total time of database activity, which is the sum of CPU time and non-idle wait time. | 200001 | 3072 |
| DB CPU | CPU time of database activity. | 200002 | 3072 |
| background elapsed time | Total time of background process execution. | 200005 | 3072 |
| background cpu time | CPU time of background processes. | 200006 | 3072 |
| non idle wait time | Total time of non-idle waits, which is the total time that sessions are in a wait state but are not in an idle wait state. | 200010 | 3072 |
| idle wait time | Total time of idle waits, which is the total time that sessions are in an idle wait state. | 200011 | 3072 |
| background database time | Total time of database operations executed by background processes. | 200012 | 3072 |
| background database non-idle wait time | Total time of database operations executed by background processes in a non-idle wait state. | 200013 | 3072 |
| background database idle wait time | Total time of database operations executed by background processes in an idle wait state. | 200014 | 3072 |
| concurrency wait total time | Total wait time due to concurrency issues, such as wait time due to resource locking. | 220001 | 3072 |
| user io wait total time | Total wait time of user processes waiting for I/O operations (such as data reads and writes to the disk) to complete. | 220002 | 3072 |
| application wait total time | Total wait time generated by user application code (such as lock waits caused by row-level locking or explicit locking commands). | 2200013 | 3072 |
Sample query
obclient [SYS]> SELECT * FROM SYS.DBA_WR_SYS_TIME_MODEL WHERE ROWNUM = 1;
The query result is as follows:
+---------+----------------+----------+---------+-----------+-------+
| SNAP_ID | SVR_IP | SVR_PORT | STAT_ID | STAT_NAME | VALUE |
+---------+----------------+----------+---------+-----------+-------+
| 1 | 172.xx.xxx.xxx | 2882 | 200001 | DB time | 31910 |
+---------+----------------+----------+---------+-----------+-------+
1 row in set