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 DBA_WR_SYS_TIME_MODEL view displays the WR data of the Time Model statistics of the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| SNAP_ID | NUMBER(38) | NO | The snapshot ID. |
| SVR_IP | VARCHAR2(46) | NO | The IP address of the node. |
| SVR_PORT | NUMBER(38) | NO | The port number of the node. |
| STAT_ID | NUMBER(38) | NO | The ID of the statistic. |
| STAT_NAME | VARCHAR2(64) | NO | The name of the statistic. |
| VALUE | NUMBER(38) | NO | The value of the statistic. |
The values of the STAT_NAME column in this view are the names and corresponding IDs of the statistics, as shown in the following table.
| Statistics | Description | Statistics ID | Statistics Type |
|---|---|---|---|
| DB time | The total time of database activities, including the sum of CPU time and non-idle waiting time. | 200001 | 3072 |
| DB CPU | The CPU time consumed during database activities. | 200002 | 3072 |
| background elapsed time | The total time spent by background processes. | 200005 | 3072 |
| background cpu time | The CPU time consumed by background processes. | 200006 | 3072 |
| non idle wait time | The total time spent in non-idle waiting, i.e., the time when sessions are in a waiting state but not in idle waiting. | 200010 | 3072 |
| idle wait time | The total time spent in idle waiting, i.e., the time when sessions are in an idle waiting state. | 200011 | 3072 |
| background database time | The total time spent by background processes in executing database operations. | 200012 | 3072 |
| background database non-idle wait time | The time spent by background processes in executing database operations during non-idle waiting. | 200013 | 3072 |
| background database idle wait time | The time spent by background processes in executing database operations during idle waiting. | 200014 | 3072 |
| concurrency wait total time | The total waiting time caused by concurrency issues, such as the time spent waiting for resource locks. | 220001 | 3072 |
| user io wait total time | The 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 | The total waiting time caused by user application code, such as lock waits caused by row-level locks or explicit lock commands. | 2200013 | 3072 |
Sample query
Query the WR data of the Time Model statistics of the current tenant and display the first record.
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