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

SNAP_ID

NUMBER

NOT NULL

Unique snapshot ID

DBID

NUMBER

NOT NULL

Database ID for the snapshot

INSTANCE_NUMBER

NUMBER

NOT NULL

Instance number for the snapshot

SERVICE_NAME_HASH

NUMBER

NOT NULL

Hash of the service name

SERVICE_NAME

VARCHAR2(64)

NOT NULL

Name of the service

WAIT_CLASS_ID

NUMBER

NOT NULL

Identifier for the class of the wait event

WAIT_CLASS

VARCHAR2(64)

Name for the class of the wait event

TOTAL_WAITS

NUMBER

Total number of waits for this event

TIME_WAITED

NUMBER

Total amount of time waited for this event (in hundredths of a second)

CON_DBID

NUMBER

The database ID of the PDB for the sampled session

CON_ID

NUMBER

The ID of the container that CON_DBID identifies. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data

See Also:

“V$SERVICE_WAIT_CLASS”


数据运维技术 » Oracle 视图 DBA_HIST_SERVICE_WAIT_CLASS 官方解释,作用,如何使用详细说明