Oracle 视图 DBA_HIST_SERVICE_WAIT_CLASS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_HIST_SERVICE_WAIT_CLASS用于显示一段时间内会话使用服务等待类别的统计信息。它列出了过去一段时间,服务等待类别在数据库中的活动占比情况,以及每个等待类别花费的总时间量。
使用方法:可以使用该视图实现查看一段时间内每个服务等待类别所占用的服务比重。可以使用下面的查询来检查特定时间范围内的服务等待分类占比情况:
SELECT CON_ID, SERVICE_WAIT_CLASS_ID, PCT_TOTAL_WAIT_TIME, TOTAL_WAITS, EVENT_NAME
FROM DBA_HIST_SERVICE_WAIT_CLASS
WHERE BEGIN_INTERVAL_TIME >= :start_time
AND END_INTERVAL_TIME
官方英文解释
DBA_HIST_SERVICE_WAIT_CLASS
displays the history of wait class information for services as tracked by the Workload Repository.
This view contains information from V$SERVICE_WAIT_CLASS
.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Unique snapshot ID |
|
|
|
Database ID for the snapshot |
|
|
|
Instance number for the snapshot |
|
|
|
Hash of the service name |
|
|
|
Name of the service |
|
|
|
Identifier for the class of the wait event |
|
|
Name for the class of the wait event |
|
|
|
Total number of waits for this event |
|
|
|
Total amount of time waited for this event (in hundredths of a second) |
|
|
|
The database ID of the PDB for the sampled session |
|
|
|
The ID of the container that
|
See Also:
“V$SERVICE_WAIT_CLASS”