Note
This view is available starting with V4.2.2.
Overview
The DBA_WR_SYS_TIME_MODEL view displays the WR data for time model statistics of the current tenant.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| SNAP_ID | bigint(20) | NO | Snapshot ID |
| SVR_IP | varchar(46) | NO | Node IP |
| SVR_PORT | bigint(20) | NO | Node Port Number |
| STAT_ID | bigint(20) | NO | Statistical Item ID |
| STAT_NAME | varchar(64) | NO | Statistical Item Name |
| VALUE | bigint(20) | NO | Statistical Item Value |
The following table describes the statistical event names and their corresponding IDs contained in the STAT_NAME column of the view.
Statistical Event Name |
Description |
Statistics Event ID |
Type of the statistical event |
|---|---|---|---|
| DB time | Total time for database activities, including the cumulative value of CPU time and non-idle wait time. | 200001 | 3072 |
| DB CPU | CPU Time Spent on Database Activities | 200002 | 3072 |
| background elapsed time | Total Time Spent by Background Processes | 200005 | 3072 |
| background cpu time | CPU Time Consumed by Background Processes | 200006 | 3072 |
| non idle wait time | The total time spent in a waiting state that is not idle. | 200010 | 3072 |
| idle wait time | Idle Waiting Time: The total time the session is in an idle waiting state. | 200011 | 3072 |
| background database time | Total Time for Background Processes to Perform Database Operations | 200012 | 3072 |
| background database non-idle wait time | Time spent on database operations by background processes in non-idle wait states | 200013 | 3072 |
| background database idle wait time | The amount of time spent by background processes in idle wait states during database operations | 200014 | 3072 |
| concurrency wait total time | The total wait time caused by concurrency issues, such as the time spent 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 data or writing data to disk) to complete | 220002 | 3072 |
| application wait total time | The total amount of wait time generated by user application code (for example, lock waits caused by row-level locks or explicit lock commands). | 2200013 | 3072 |
Sample query
Query the WR data of time model statistics for the current tenant and display the first record.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_WR_SYS_TIME_MODEL LIMIT 1\G
The query result is as follows:
*************************** 1. row ***************************
SNAP_ID: 1
SVR_IP: xx.xx.xx.xx
SVR_PORT: 2882
STAT_ID: 200001
STAT_NAME: DB time
VALUE: 102309227
1 row in set (0.008 sec)
