Oracle报错篇 ORA-6544 [pevm_peruws_callback-1] [1000] 超过最大打开游标数问题
本期将为大家分享“ORA-6544[pevm_peruws_callback-1] [1000]”报错的问题解决方案。
关键字:”ORA-6544 [pevm_peruws_callback-1] [1000]”、"ORA-01000"、"maximum opencursors
exceeded"
open_cursors动态参数限制每个会话最大的游标数。数据库alert告警日志会出现“ORA-6544
[pevm_peruws_callback-1] [1000]”的报错信息,相关的调用堆栈以“pevm_peruws_callback”结尾,显
示内部错误[1000]。由于达到open_cursors最大值限制而生成ORA-6544 错误,查看对应的错误定义:
登录sys用户或有DBA角色的用户,定位哪个会话打开太多游标以及哪个SQL语句导致“ORA-
01000: maximum open cursors exceeded”。
查找特定会话已打开最大游标数和设置的open_cursors参数1
SELECT max(a.value) as highest_open_cur, p.value as max_open_cur 2
FROM v$sesstata, v$statname b, v$parameter p 3
WHERE a.statistic# = b.statistic# 4
and b.name = 'opened cursors current' 5
and p.name= 'open_cursors' group by p.value;6
7
查找哪些会话打开的游标数最多,导致ORA-01000。8
col username for a309
select a.value, s.username, s.sid,s.serial# 10
from v$sesstat a11
, v$statname b, v$session s 12
where a.statistic# = b.statistic# 13
and s.sid=a.sid and b.name = 'openedcursors current' 14
and s.username is not null anda.value>50;15
16
查找哪些SQL语句占用游标数17
select sid ,sql_text, user_name, sql_id,count(*) as "OPEN CURSORS"18
文档被以下合辑收录
评论