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_SYS_TIME_MODEL view displays tenant-level Time Model statistics on the current node.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | NUMBER | NO | The tenant 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 | NO | The ID of the statistics item. |
| STAT_NAME | VARCHAR2(64) | NO | The name of the statistics item. |
| VALUE | NUMBER | NO | The value of the statistics item. |
The values of the STAT_NAME column in the view are the names and IDs of the statistics events, as shown in the table below.
| Statistics Event Name | Description | Statistics Event ID | Statistics Event Type |
|---|---|---|---|
| DB time | The total time of database activity, including the sum of CPU time and non-idle wait time. | 200001 | 3072 |
| DB CPU | The CPU time consumed by database activity. | 200002 | 3072 |
| background elapsed time | The total time consumed 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 states. | 200010 | 3072 |
| idle wait time | The total time spent in idle waiting states. | 200011 | 3072 |
| background database time | The total time consumed by background processes for database operations. | 200012 | 3072 |
| background database non-idle wait time | The time spent by background processes in non-idle waiting states for database operations. | 200013 | 3072 |
| background database idle wait time | The time spent by background processes in idle waiting states for database operations. | 200014 | 3072 |
| concurrency wait total time | The total time spent waiting due to concurrency issues, such as 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). | 220002 | 3072 |
| application wait total time | The 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 tenant-level Time Model statistics on the current node.
obclient [SYS]> SELECT * FROM SYS.V$OB_SYS_TIME_MODEL;
The query result is as follows:
+-----------+----------------+----------+---------+-------------------------+------------+
| TENANT_ID | SVR_IP | SVR_PORT | STAT_ID | STAT_NAME | VALUE |
+-----------+----------------+----------+---------+-------------------------+------------+
| 1004 | 172.xx.xxx.xxx | 2882 | 200001 | DB time | 383173563 |
| 1004 | 172.xx.xxx.xxx | 2882 | 200002 | DB CPU | 379092487 |
| 1004 | 172.xx.xxx.xxx | 2882 | 200005 | background elapsed time | 3523356618 |
| 1004 | 172.xx.xxx.xxx | 2882 | 200006 | background cpu time | 3185615826 |
| 1004 | 172.xx.xxx.xxx | 2882 | 200010 | non idle wait time | 4081076 |
| 1004 | 172.xx.xxx.xxx | 2882 | 200011 | idle wait time | 20114 |
+-----------+----------------+----------+---------+-------------------------+------------+
6 rows in set