java.sql.SQLException: ORA-01000: maximum open cursors exceeded
Posted on 2006年2月8日 13:48问题描述:
Oracle 使用 OPEN_CURSORS 参数指定一个会话一次最多可以打开的游标的数量。超过此数量时,Oracle 将报告 ORA-01000 错误。当此错误传到 DAO时,就会抛出 SQLException
根据oracle文档,最大游标是针对per-session而言,每个session最多允许创建300个cursor。如果connection创建300个未关闭的statement,将导致“超出最多允许打开的游标数”错误出现。减少在程序中使用loop来超作statement的情况,如果使用,用好及时做close操作。在文件init.ora中的参数open_cursors = 300 # 允许打开的最大游标数。(好像可以设置对于同一个SQL,重用同一个游标的,不知道具体是哪个参数?好像是参数CURSOR_SHARING?[http://www.oracle.com.cn/onlinedoc/nav/initora.htm?remark=homepage#index-CUR])
以DBA身份进入数据库端,查看目前游标的实际情况
select o.sid, user_name, osuser, machine, count(*) num_curs
from v$open_cursor o, v$session s
where o.sid=s.sid
group by o.sid, user_name,osuser, machine
order by num_curs desc
--依据前面查训到的联机情况,依据SID近一部查询,再进一步做查询到底是哪些sql对游标占用具体情况
select q.sql_text
from v$open_cursor o, v$sql q
where q.hashvalue=o.hash_value and o.sid = SID
相关推荐
在oracle里面运行一下,解决Exception java.sql.SQLException ORA-00600 内部错误代码
java.sql.SQLException: 不支持的字符集 (在类路径中添加 orai18n.jar): ZHS16GBK ……
NULL 博文链接:https://listen-raining.iteye.com/blog/1962065
NULL 博文链接:https://zhang-zling.iteye.com/blog/980488
ORA-28001 the password has expired密码过期
有关表死锁的详细图片 博文链接:https://meteor-1988.iteye.com/blog/1568695
服务器出现java.sql.SQLException No suitable driver found for 的
ORA-06511: CURSOR_ALREADY_OPEN ORA-06511 是一个常见的错误信息,通常发生在尝试打开已经打开的指针时。这种错误通常是由于开发者在编写 PL/SQL 语句时,忘记了某个指针的状态,导致 Oracle 无法打开指针。解决这...
Q: I am working with ... I am using updateBinaryStream method of resultset to update the BLOB field but it is failing after giving following exception java.sql.SQLException: Internal Error: Unable to
利用时执行如 tasklist /svc 、net user 等命令时出现 ORA-24345: 出现截断或空读取错误,且文件管理功能出现问题,无法上传webshell,因此萌生了重写利用工具的想法。
java.sql.SQLException: null, message from server: “Host ‘223.72.41.7’ is not allowed to connect to this MySQL server” 客户端访问时报错: 解决方法: 1,登陆服务器 mysql> use mysql; //用mysql ...
本文主要介绍了关于MySQL存储表情报错:java.sql.SQLException: Incorrect string value: ‘\xF0\x9F\x92\xA9\x0D\x0A…’的相关解决方法,分享出供大家参考学习,下面话不多说了,来一起看看详细的介绍: ...
oracle实例的内存(SGA和PGA)进行调整,优化数据库性
oracle 10g 数据库驱动下载:oracle jdbc dirver
ORA-01157解决方案
非常方便的一个oracle管理工具,数据库开发和管理员都适用,可以进行数据库的日常开发,管理,优化工作,功能很全,对于dba来说,可以进行一些高级功能比如,awr, ash, 10046等功能。
2008/06/25 13:30:57 - oracl - ERROR : java.sql.SQLException: ORA-01722: 无效数字 2008/06/25 13:30:57 - oracl - ERROR : at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
主要给大家介绍了关于MySQL存储表情时报错:java.sql.SQLException: Incorrect string value: 'xF0x9Fx92xA9x0Dx0A...'的解决方法,文中通过示例代码介绍的非常详细,需要的朋友可以参考借鉴,下面来一起看看吧。
mysql5.6连接驱动jaf,可处理报错java.sql.SQLException: No suitable driver
今天在项目中,使用Mybatis对oracle数据库进行操作的时候,报出ORA-00911: invalid character的错误,检查了一下SQL,发现都书写正确啊,复制到plsql上执行也都没问题,这什么原因呢? 注意:这里说的是用navicat...