现象描述:
用plsql developer 连接编译procedure 的时候都很正常。一旦开始Test进入Debug模式的时候就Hang住了。
初步猜测是没有权限,可是是DBA角色呀,如果没有权限会直接报没有权限的错误吧。
后面猜测是Oracle 或者PL SQL Developer的版本问题,用同一个PLSQL 在相同版本的不同机器上测试,结果另外一台机器可以Debug。
开始猜测是不是RAC的原因。
搜索到这个解释:http://forums.allroundautomations.com/ubb/ubbthreads.php?ubb=showflat&Number=47544
The Oracle Debug API (sys.dbms_debug) internally uses dbms_pipe messages to communicate between the controlling session and the debug session, which apparently can fail on RAC systems.
The only workaround is to modify the tnsnames.ora file to connect to only 1 node of the cluster without load balancing and failover.
解释很靠谱,尝试连接到单个的实例上。
测试Debug,好使了!
本文描述了在Oracle RAC环境下使用PL/SQL Developer进行Debug时遇到的挂起问题,通过修改tnsnames.ora文件指定连接单一节点而非集群,成功解决了Debug模式下程序挂起的问题。
2339

被折叠的 条评论
为什么被折叠?



