[SQL学习]ORA-03114解决办法

January 28, 2010 | tags SQL   | views
Comments 0

最近在使用PL/SQL时经常遇到ORA-03114报错,然后程序就变得不可调试了,不能停止,只能重启PL/SQL才能继续使用,比较繁琐,在网上搜了下,找到两个解决办法:

方法一:

在使用pl/sql developer的时候老是报错,让dba给看了一下,dba给搞定了,现在分享给大家。
解决方法;

  这是我们使用的客户工具 Pl/Sql developer 和数据库的cdc产生冲突,如果使用TOAD等其他客户端工具则不会有这种情况。
   还需要大家在开发中留意:
   1,用Pl/Sql developer是否还会发生编译不过的情况。
   2,是否会导致其他问题。
   谢谢!
   
解决方法为:去掉cdc功能
操作为:
DROP TRIGGER sys.cdc_alter_ctable_before;
DROP TRIGGER sys.cdc_create_ctable_after;
DROP TRIGGER sys.cdc_create_ctable_before ;
DROP TRIGGER sys.cdc_drop_ctable_before;
CALL sys.dbms_java.dropjava('-s rdbms/jlib/CDC.jar');


这是oracle的信息:
ORA-03114 not connected to ORACLE

Cause: A call to Oracle was attempted when no connection was established. Usually this happens because a user-written program has not logged on. It may happen if communication trouble causes a disconnection. In addition, this message could occur when ALTER SYSTEM KILL SESSION or ALTER SYSTEM DISCONNECT SESSION were issued with the IMMEDIATE qualifier because, in those cases, the client's connection to the database is terminated without waiting for the client to issue a request.

Action: Try again. If the message recurs and the program is user written, check the program.

 

方法二:
在PL/SQL中改一个设置:

 




发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。