1. 程式人生 > >在oracle RAC 環境下用 PL/SQL Developer debug procedure 出現 hang 的情況

在oracle RAC 環境下用 PL/SQL Developer debug procedure 出現 hang 的情況

版本 work 一個 嘗試 comm div IT 實例 HA

現象描述:

  用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 的情況