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

时间:2023-03-09 16:31:14
在oracle RAC 环境下用 PL/SQL Developer debug procedure 出现 hang 的情况

现象描述:

  用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,好使了!