码迷,mamicode.com
首页 > 数据库 > 详细

在oracle RAC 环境下用 PL/SQL Developer debug procedure 出现 hang 的情况

时间:2018-03-16 20:45:51      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:com   mmu   develop   plsql   lov   use   tns   pos   结果   

现象描述:

  用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 procedure 出现 hang 的情况

标签:com   mmu   develop   plsql   lov   use   tns   pos   结果   

原文地址:https://www.cnblogs.com/Alex-Zeng/p/8584951.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!