博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ORA-01000 maximum open cursors exceeded
阅读量:7235 次
发布时间:2019-06-29

本文共 1032 字,大约阅读时间需要 3 分钟。

  hot3.png

Get detail of opened cursors current

select * from gv$sysstat where name like '%open%'select sum(a.value) total_cur, avg(a.value) avg_cur, max(a.value) max_cur, s.username, s.machinefrom gv$sesstat a, gv$statname b, gv$session s where a.statistic# = b.statistic#  and s.sid=a.sidand b.name = 'opened cursors current' group by s.username, s.machineorder by 1 desc;

Update open_cursors

show parameter open_cursors;alter system set open_cursors=1000 scope=MEMORY; (如果启动时候定义了spfile,可以写scope=BOTH)
Kill session to let the parameter take effect
select        substr(a.spid,1,9) pid,        substr(b.sid,1,5) sid,        substr(b.serial#,1,5) ser#,        substr(b.machine,1,6) box,        substr(b.username,1,10) username, --       b.server,        substr(b.osuser,1,8) os_user,        substr(b.program,1,30) program from gv$session b, gv$process a where b.paddr = a.addr and type='USER' order by program, sid;alter system kill session 'SID,SERIAL#'e.g. alter system kill session '12,2653'

参考

转载于:https://my.oschina.net/l1z2g9/blog/101267

你可能感兴趣的文章
windows github 下载慢 修改hosts
查看>>
HTML布局规范
查看>>
关于java加法的编写
查看>>
第七周编程总结
查看>>
CocoaPods的安装使用和常见问题
查看>>
计算机科学,大一学生怎样来爱你(文&PPT)
查看>>
老男孩在创业及培训中28条教导学生感悟语录分享!
查看>>
老板不在,你不得不做出越权的决定,咋办?(考试题系列)
查看>>
如何解决SQL Server 2008 R2中“阻止保存要求重新创建表的更改”的问题!
查看>>
cloudstack 4管理器安装备忘
查看>>
sentry日志管理系统安装以及使用教程
查看>>
python-pip : Depends: python-setuptools (>= 0.6c1) 问题
查看>>
iptables外网一端口通过NAT转发内网一服务器端口上
查看>>
新书推荐
查看>>
程序与生活:生活要持续更新
查看>>
网络安全系列之四十九 IIS6.0权限设置
查看>>
VSphere client 虚拟机克隆及网卡报错处理
查看>>
【第一期】如何打造属于自己的网站编辑器——CKEditor与UEditor之争
查看>>
linux下卷组管理
查看>>
17个Linux系统高频率常用命令行和shell小脚本
查看>>