我在一个.Net开发的Web系统中有几个调用Oracle存储过程,并使用ref cursor返回数据集的页面,经常不定时地报出Ora-06502,ora-06512错误,这个错误通常不做任何处理将在十几分钟后恢复,或者重新编译存储过程后,恢复。
这几个存储过程在Pl/sql中都是通过的。很奇怪。系统已经运行了半年左右,一直没有这个错误,是最近才出现的,开始几天出一次,后来每天都出现几次。似乎更使用的频率有关。通常周末两天间隔的时间要长一些,工作日间隔的时间短一些。在一些论坛中看到说同oracle的一个bug 4015165有关,但是还不能确定。不知有没有朋友有过这方面的经验? 我们Oracle的版本是9.2.0.6.

解决方案 »

  1.   

    我的应用服务器的使用的Oracle客户端版本是10.2.0,而程序开发是用的10.1.0,不知这有没有影响
      

  2.   

    问题解决了,是由于Oracle客户端版本的问题,都使用10.1的版本就好了。
    谢谢各位。
      

  3.   

    ORA-06502 PL/SQL: numeric or value error stringCause: An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).Action: Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.
    -------------------------
    ORA-06512 at string line stringCause: Backtrace message as the stack is unwound by unhandled exceptions.Action: Fix the problem causing the exception or write an exception handler for this condition. Or you may need to contact your application administrator or database administrator