OEM (等待事件CPU IO 应用)活动会话数统计(RAC两节点)

select a.wait_class,sum(qty)
from (select wait_class,trunc(count(session_id)/60,2) qty
from v$active_session_history
where to_char(sample_time,'hh24mi')=to_char(sysdate-1/24/60,'hh24mi')
group by wait_class
union all
select wait_class,trunc(count(session_id)/60,2) qty
from v$active_session_history@dblink
where to_char(sample_time,'hh24mi')=to_char(sysdate-1/24/60,'hh24mi')
group by wait_class)a

group by a.wait_class;


WAIT_CLASSSUM(QTY)
46.7
User I/O61.18
Application2
Network0.67
Configuration0.95
Administrative1.88
Concurrency0.48
Cluster2.25
Other0.09
System I/O2.67
Commit0.51

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值