OWI Components(1):V$SYSTEM_EVENT

本文介绍了如何使用V$SYSTEM_EVENT视图进行数据库性能诊断,包括等待事件的统计分析和瓶颈识别。通过关注关键指标如等待时间、总超时次数和平均等待时间,开发者可以快速定位并解决数据库性能问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

V$EVENT_NAME:  当前数据库已经定义的event的数量;

V$SYSTEM_EVENT: 自动数据库实例启动到现在,oracle所有会话遇到的等待事件的aggregated statistics;
the TOTAL_TIMEOUTS column records the number of times a session failed to get the requested resource after the
initial wait.
The column TIME_WAITED reports the total amount of time spent waiting on the event.
The column AVERAGE_WAIT gives the average time for each wait and is derived from the TOTAL_WAITS and TIME_WAITED

columns.

The V$SYSTEM_EVENT view is a good place to start if you want to perform a quick health check on the database

instance. This quick health check may be helpful when you must diagnose a poorly performing database instance,

especially if you are unfamiliar with it and the application. You will quickly discover the top n bottlenecks

that plague the database instance since startup. However, don’t judge performance or make any tuning decisions

based on these bottlenecks just yet. The information is cumulative since the instance startup.
在查询视图时,我们应该关心的是时间,而不是数量.

set lines 160
set numwidth 18
col class for a15
col event for a30
col total_waits for 999,999,999
col total_timeouts for 999,999,999
col time_waited for 999,999,999,999
col average_wait for 999,999,999,999

select a.*, c.startup_time
  from v$system_event a, v$event_name b, v$instance c
 where a.event = b.name
 order by  a.time_waited;






评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值