Oracle ORA-02020 : 過多的資料庫連結在使用中 解決步驟

maohaiqing0304發表於2014-12-21


標題:  Oracle ORA-02020 : 過多的資料庫連結在使用中 解決步驟

作者:lōττéry©版權所有[文章允許轉載,但必須以連結方式註明源地址,否則追究法律責任.]


註釋:
  前不久開發人員編譯儲存時報ORA -02020 錯,如下是解決方案步驟.
 
報錯全資訊:
Error:OR A -04052在查: 找遠端物件 NIP.PB_PERADDRESSLIST@DB_NIP 時出錯
       ORA-00604 : 遞迴 SQL 級別 1 出現錯誤
        ORA-02020 : 過多的資料庫連結在使用中

檢視一下有關link的引數
SQL>  show parameter open_links
 
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
open_links                           integer     4
open_links_per_instance              integer     4
 
SQL>

引數的解釋:
***open_links :每個session最多允許的dblink數量;
***open_links_per_instance:指每個例項最多允許的dblink個數

擴大允許使用dblink 量;

SQL> alter system set open_links=50 scope=spfile;
 
System altered
SQL> alter system set open_links_per_instance=50 scope=spfile;
 
System altered
 
SQL> show parameter open_links
 
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
open_links                                                  integer     4
open_links_per_instance              integer     4
 
SQL> 

重啟後生效...

SQL> shutdown immediate
資料庫已經關閉。
已經解除安裝資料庫。
ORACLE 例程已經關閉。
SQL> 
SQL> startup
ORACLE 例程已經啟動。

Total System Global Area  293601280 bytes
Fixed Size                  1248600 bytes
Variable Size              96469672 bytes
Database Buffers          188743680 bytes
Redo Buffers                7139328 bytes
資料庫裝載完畢。
資料庫已經開啟。
SQL> 

引數檢查:
SQL show parameter open_links

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
open_links                           integer     50
open_links_per_instance              integer     50
SQL>

在編譯就OK咧.


  【源於本人筆記】 若有書寫錯誤,表達錯誤,請指正...


此條目發表在 Oracle  分類目錄。將固定連線加入收藏夾。



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28602568/viewspace-1375253/,如需轉載,請註明出處,否則將追究法律責任。

相關文章