Oracle 视图 DBA_HIST_CON_SYSTEM_EVENT 官方解释,作用,如何使用详细说明

本站中文解释

Oracle视图DBA_HIST_CON_SYSTEM_EVENT返回会话级别的系统事件的历史! 这个视图提供在ORACLE 数据库性能方面的重要信息。它显示每个活动会话的系统事件耗时,系统活动信息及其具体详情。

这个视图包含字段如下:

DBID:表示数据库标识符。

INST_ID:表示数据库实例标识符

SID:表示会话标识符。

SNAME:表示会话名称。

EVENT#:表示事件的号码。

EVENT:表示从V$SESSION_EVENT视图中获取的事件名称。

TOTAL_WAITS:表示对此事件发生的次数。

TIME_WAITED_MICRO:表示对此事件的等待时间(微秒)。

AVERAGE_WAIT:表示对此事件的平均等待时间(微秒)。

我们可以使用这个视图来查找特定会话中发生的系统事件,并查看系统活动的详细指标,以帮助定位数据库性能问题。

官方英文解释

DBA_HIST_CON_SYSTEM_EVENT displays historical information on total waits for an event in a container. This view contains snapshots of V$CON_SYSTEM_EVENT.

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

EVENT_ID

NUMBER

NOT NULL

Identifier of the wait event

EVENT_NAME

VARCHAR2(64)

NOT NULL

Name of the wait event

WAIT_CLASS_ID

NUMBER

Identifier of the Class of the Wait Event

WAIT_CLASS

VARCHAR2(64)

Name of the Class of the Wait Event

TOTAL_WAITS

NUMBER

Total number of waits for the event

TOTAL_TIMEOUTS

NUMBER

Total number of timeouts for the event

TIME_WAITED_MICRO

NUMBER

Total amount of time waited for the event (in microseconds)

TOTAL_WAITS_FG

NUMBER

Total number of waits for the event, from foreground sessions

TOTAL_TIMEOUTS_FG

NUMBER

Total number of timeouts for the event, from foreground sessions

TIME_WAITED_MICRO_FG

NUMBER

Amount of time waited for the event (in microseconds), from foreground sessions

CON_DBID

NUMBER

NOT NULL

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$CON_SYSTEM_EVENT”


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