Note
This view is introduced since OceanBase Database V4.2.2.
Purpose
The DBA_WR_EVENT_NAME view displays the persisted tenant-level wait events of the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| EVENT_ID | NUMBER(38) | NO | The ID of the wait event. |
| EVENT_NAME | VARCHAR2(64) | YES | The name of the wait event. |
| PARAMETER1 | VARCHAR2(64) | YES | The name of the first parameter of the wait event. |
| PARAMETER2 | VARCHAR2(64) | YES | The name of the second parameter of the wait event. |
| PARAMETER3 | VARCHAR2(64) | YES | The name of the third parameter of the wait event. |
| WAIT_CLASS_ID | NUMBER(38) | YES | The ID of the class to which the wait event belongs. |
| WAIT_CLASS | VARCHAR2(64) | YES | The name of the class to which the wait event belongs. |
The following table lists the names of wait event classes in the WAIT_CLASS column, and the corresponding wait event IDs.
| Event class | Event ID | Description |
|---|---|---|
| OTHER | 100 | A wait event that does not belong to any other classes. |
| APPLICATION | 101 | A wait event caused by the client code. |
| CONFIGURATION | 102 | A wait event caused by insufficient resources configured for the database or instance. |
| ADMINISTRATIVE | 103 | A wait event caused by a command entered by the database administrator (DBA). |
| CONCURRENCY | 104 | A wait event of waiting for internal resources of the database. |
| COMMIT | 105 | A wait event related to log commitment. |
| IDLE | 106 | A task execution wait event when the session is inactive. |
| NETWORK | 107 | A wait event related to network communication. |
| USER_IO | 108 | A user I/O wait event. |
| SYSTEM_IO | 109 | A wait event of waiting for background process I/O resources. |
| CLUSTER | 111 | A wait event related to clusters. |
Sample query
obclient [SYS]> SELECT * FROM SYS.DBA_WR_EVENT_NAME WHERE ROWNUM = 1;
The query result is as follows:
+----------+-----------------------------------+------------+------------+------------+---------------+-------------+
| EVENT_ID | EVENT_NAME | PARAMETER1 | PARAMETER2 | PARAMETER3 | WAIT_CLASS_ID | WAIT_CLASS |
+----------+-----------------------------------+------------+------------+------------+---------------+-------------+
| 0 | latch: latch wait queue lock wait | address | number | tries | 104 | CONCURRENCY |
+----------+-----------------------------------+------------+------------+------------+---------------+-------------+
1 row in set