Note
- For V4.3.x, this view was introduced in V4.3.5.
- For V4.2.x, this view was introduced in V4.2.2.
Purpose
The DBA_WR_SYS_TIME_MODEL view displays WR data of the time model statistics in this tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| SNAP_ID | bigint(20) | NO | Snapshot ID |
| SVR_IP | varchar(46) | NO | Node IP |
| SVR_PORT | bigint(20) | NO | Node port |
| STAT_ID | bigint(20) | NO | Stat ID |
| STAT_NAME | varchar(64) | NO | Stat name |
| VALUE | bigint(20) | NO | Stat value |
The following table describes the statistical events in the STAT_NAME column of the view and their corresponding IDs.
| Statistical event | Description | Stat ID | Stat 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 wait, which is the total time when the session is in a waiting state but not in an idle wait state. | 200010 | 3072 |
| idle wait time | Total time of idle wait, which is the total time when the session is 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, for example, wait time due to resource lock. | 220001 | 3072 |
| user io wait total time | Total wait time of user processes waiting for I/O operations (such as data read or write to disk) to complete. | 220002 | 3072 |
| application wait total time | Total wait time generated by user application code (such as lock wait caused by row-level locking or explicit locking commands). | 2200013 | 3072 |
Sample query
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_WR_SYS_TIME_MODEL LIMIT 10;
The query result is as follows:
+---------+----------------+----------+---------+-------------------------+-----------+
| SNAP_ID | SVR_IP | SVR_PORT | STAT_ID | STAT_NAME | VALUE |
+---------+----------------+----------+---------+-------------------------+-----------+
| 2 | 172.xx.xxx.xxx | 2882 | 200001 | DB time | 34505 |
| 1 | 172.xx.xxx.xxx | 2882 | 200001 | DB time | 34505 |
| 2 | 172.xx.xxx.xxx | 2882 | 200002 | DB CPU | 1966 |
| 1 | 172.xx.xxx.xxx | 2882 | 200002 | DB CPU | 1966 |
| 2 | 172.xx.xxx.xxx | 2882 | 200005 | background elapsed time | 233110335 |
| 1 | 172.xx.xxx.xxx | 2882 | 200005 | background elapsed time | 116267272 |
| 2 | 172.xx.xxx.xxx | 2882 | 200006 | background cpu time | 209738761 |
| 1 | 172.xx.xxx.xxx | 2882 | 200006 | background cpu time | 104674501 |
| 1 | 172.xx.xxx.xxx | 2882 | 200010 | non idle wait time | 32539 |
| 1 | 172.xx.xxx.xxx | 2882 | 200011 | idle wait time | 0 |
+---------+----------------+----------+---------+-------------------------+-----------+
10 rows in set