暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
Oracle报错篇 ORA-6544 [pevm_peruws_callback-1] [1000] 超过最大打开游标数问题.pdf
218
3页
2次
2024-03-17
5墨值下载
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”
$ oerr ORA 100001
1000, 00000, "maximum open cursors exceeded"2
查找特定会话已打开最大游标数和设置的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-010008
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
通过调整参数规避问题重现。首先调大动态open_cursors参数值。如果会话没有释放,可以通过重
启数据库或清理相应的会话。
OPEN_CURSORS specifies the maximum number of open cursors (handles to private SQL
areas) a session can have at once. You can use this parameter to prevent a session from opening an
excessive number of cursors.
OPEN_CURSORS指定单个会话可以同时并发打开 (私有SQL区域的句柄)的最大游标数,可以使
用此参数防止会话打开过多的游标。例如,如果将其值设置为1000,则每个会话一次最多可以打开
1000个游标。
1ORA-6544[pevm_peruws_callback-1][604] is caused (Doc ID 2638095.12Monitoring Open
Cursors & TroubleshootingORA-1000 Errors (Doc ID 76684.1)
3Overview of ORA-1000 Maximum Number of Cursors Exceeded (Doc ID1012266.6)
4ORA-01000 : Troubleshooting Open Cursors Issues (Doc ID 1477783.1)
5ORA-6544 [pevm_peruws_callback-1] Error In Alert Log (Doc ID2992686.1)
6ORA-6544 [pevm_peruws_callback-1] Detected In Alert Log (Doc ID2530870.1)
from v$open_cursor 19
where sid in (177) 20
group by sid ,sql_text,user_name,sql_id;21
22
SELECT s.machine, oc.user_name,oc.sql_text, count(1) 23
FROM v$open_cursor oc,v$session s24
WHERE oc.sid = s.sid and user_name != 'SYS' 25
GROUP BY user_name,sql_text, machine 26
HAVING COUNT(1) > 5 27
ORDER BY count(1) DESC;28
SQL> show parameter open_cursor1
SQL> alter system set open_cursors = 1000 scope=both;2
of 3
5墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

文档被以下合辑收录

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜