设为首页 加入收藏

TOP

关于ORA-02391问题的解决方法(二)
2015-11-10 12:17:29 来源: 作者: 【 】 浏览:5
Tags:关于 ORA-02391 问题 解决 方法
0%,即每个user的对应的session超过profile中设定值的90%,就会返回结果。
select u.username||' with related profile '||p.profile||' has potential issue on '||p.resource_name ||' current value is '||s.cnt||' of '||p.limit
?from dba_profiles p,
?(select username,count(*)cnt from v$session where username is not null group by username) s,
?dba_users u
?where? p.RESOURCE_NAME = 'SESSIONS_PER_USER'
?and p.profile=u.profile
?and s.username=u.username
?and p.profile !='DEFAULT'
?and s.cnt*100/decode(p.limit,'DEFAULT',999)>=90;


返回结果类似下面的形式。
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
APP_TEST with related profile PF_APP_TEST1 has potential issue on SESSIONS_PER_USER current value is 29 of 31
?APP_TEST2 with related profile PF_APP_TEST2 has potential issue on SESSIONS_PER_USER current value is 60 of 6


进一步改进,我们可以加入orabbix中,这样我们可能比开发还早收到报警邮件,问题处理也更有效。


首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Oracle的TAF浅析 下一篇Oracle 字符集小结

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: