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

本站中文解释

Oracle的V$CON_SYSTEM_EVENT视图就是系统中定义的所有活动和事件的一个列表,它用来记录系统事件,可用于确定特定事件发生的频率、等待时间以及相关的进程信息。

使用V$CON_SYSTEM_EVENT视图主要分为以下几步:

1、启动dbca,进入数据库资源管理器,在菜单中选择“系统视图”;

2、在系统视图中找到V$CON_SYSTEM_EVENT,然后“双击”进入;

3、利用sql语句查看系统中定义的所有活动和事件,如:

SELECT * FROM V$CON_SYSTEM_EVENT;

4、通过查或改sql语句可以设置活动和事件的时间,如:

UPDATE V$CON_SYSTEM_EVENT com set com.wait_time =60 where com.event_name=’DBWR_UPDATE_BUFFER_CACHE’;

以上就是Oracle的V$CON_SYSTEM_EVENT视图的使用方法。

官方英文解释

V$CON_SYSTEM_EVENT displays information on total waits for an event in a container.

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

When queried from a non-CDB, the wait event data in that instance are returned, and the CON_ID value is 0.

When queried from the root of a CDB, the wait event data in every container is returned, and the CON_ID value indicates the container to which the wait event data belong.

When queried from a PDB, wait event data in that PDB are returned, and the CON_ID value is the container ID for that PDB.


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