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

本站中文解释

Oracle视图V$SYSTEM_EVENT主要用于查看系统进行事件监控,它可显示对系统当前事件的总体状况,包括服务请求,等待资源,延迟重试以及相关事件的当前状态。

可以使用以下语句来查看V$SYSTEM_EVENT的视图:

SELECT * FROM V$SYSTEM_EVENT;

这个视图可以用来检查服务器的等待事件,并识别与系统性能相关的问题。如果某些等待事件的事件名消耗的时间很多,则可以代表服务器的瓶颈,此时应该采取措施来优化性能,以提高服务器的性能。

官方英文解释

V$SYSTEM_EVENT displays information on total waits for an event. Note that the TIME_WAITED and AVERAGE_WAIT columns will contain a value of zero on those platforms that do not support a fast timing mechanism. If you are running on one of these platforms and you want this column to reflect true wait times, then you must set TIMED_STATISTICS to TRUE in the parameter file; doing this will have a small negative effect on system performance.

See Also:

“TIMED_STATISTICS”

Column Datatype Description

EVENT

VARCHAR2(64)

Name of the wait event; derived statistic name from V$EVENT_NAME

See Also: “Oracle Wait Events”

TOTAL_WAITS

NUMBER

Total number of waits for the event

TOTAL_TIMEOUTS

NUMBER

Total number of timeouts for the event

TIME_WAITED

NUMBER

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

AVERAGE_WAIT

NUMBER

Average amount of time waited for the event (in hundredths of a second)

TIME_WAITED_MICRO

NUMBER

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

CPU

NUMBER

Total amount of CPU time consumed while implementing the wait event itself (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_FG

NUMBER

Total amount of time waited for the event, from foreground sessions (in hundredths of a second)

AVERAGE_WAIT_FG

NUMBER

Average amount of time waited for the event, from foreground sessions (in hundredths of a second)

TIME_WAITED_MICRO_FG

NUMBER

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

CPU_FG

NUMBER

Total amount of CPU time consumed while implementing the wait event itself, from foreground sessions (in microseconds)

EVENT_ID

NUMBER

Identifier of the wait event

WAIT_CLASS_ID

NUMBER

Identifier of the wait class of the wait event

WAIT_CLASS#

NUMBER

Number of the wait class of the wait event

WAIT_CLASS

VARCHAR2(64)

Name of the wait class of the wait event

CON_ID

NUMBER

The ID of the container to which the data pertains. 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

Note:

This view returns instance-wide data and a value of 0 in the CON_ID column when queried from the root of a CDB.


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