Oracle DBLink連線數過多的問題(Ora-02020)
資料庫已經關閉。
已經解除安裝資料庫。
ORACLE 例程已經關閉。
SQL>
ORACLE 例程已經啟動。
Total System Global Area 293601280 bytes
Fixed Size 1248600 bytes
Variable Size 96469672 bytes
Database Buffers 188743680 bytes
Redo Buffers 7139328 bytes
資料庫裝載完畢。
資料庫已經開啟。
SQL>
GOAL
To find out the number of database links opened.
SOLUTION
OPEN_LINKS
Default: 4 Range: 0 to 255
Specifies the maximum number of concurrent open connections to remote databases in one session.
These connections include database links plus external procedures and cartridges each of which
uses a separate process.
The following view shows the database link connections that are currently open in your current session:
V$DBLINK - Lists all open database links in your session, that is, all database links with the IN_TRANSACTION column set to YES.
NOTE: It is important to state that the section above "Lists all open database links in your session" is important, as this is only YOUR open dblinks that can be seen.
For example, you can create and execute the script below to determine which links are open (sample output included):
COL OWNER_ID FORMAT 99999 HEADING "OWNID"
COL LOGGED_ON FORMAT A5 HEADING "LOGON"
COL HETEROGENEOUS FORMAT A5 HEADING "HETER"
COL PROTOCOL FORMAT A8
COL OPEN_CURSORS FORMAT 999 HEADING "OPN_CUR"
COL IN_TRANSACTION FORMAT A3 HEADING "TXN"
COL UPDATE_SENT FORMAT A6 HEADING "UPDATE"
COL COMMIT_POINT_STRENGTH FORMAT 99999 HEADING "C_P_S"
SELECT * FROM V$DBLINK
/
SQL> @dblink
DB_LINK OWNID LOGON HETER PROTOCOL OPN_CUR TXN UPDATE C_P_S
------------------------- ------ ----- ----- -------- ------- --- ------ ------
INST2.ACME.COM 0 YES YES UNKN 0 YES YES 255
Note that above displays ONLY details about database links open in the session within which you are working.
If looking for details about database links open by different sessions, might use below:
sqlplus /nolog
connect / as sysdba
select username, osuser, status, sid, serial#, machine,
process, terminal, program from v$session
where saddr in (select k2gtdses from sys.x$k2gte );
USERNAME OSUSER STATUS
------------------------------ ------------------------------ --------
SID SERIAL#
---------- ----------
MACHINE
----------------------------------------------------------------
PROCESS TERMINAL
------------------------ ------------------------------
PROGRAM
------------------------------------------------
SCOTT bugmnt INACTIVE
68 11
celclnx1.us.oracle.com
29318 pts/15
sqlplus@celclnx1.us.oracle.com (TNS V1-V3)
REPADMIN bugmnt INACTIVE
232 5
celclnx1.us.oracle.com
28081 pts/14
sqlplus@celclnx1.us.oracle.com (TNS V1-V3)
SQL>
SQL> alter system set open_links=255 scope=spfile;
alter system set open_links=255 scope=spfile
*
ERROR at line 1:
ORA-32001: write to SPFILE requested but no SPFILE specified at startup
SQL> alter system set open_links=255 scope=both;
alter system set open_links=255 scope=both
*
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified
SQL> alter system set open_links_per_instance=255 scope=spfile;
alter system set open_links_per_instance=255 scope=spfile
*
ERROR at line 1:
ORA-32001: write to SPFILE requested but no SPFILE specified at startup
SQL> alter system set open_links_per_instance=255 scope=both;
alter system set open_links_per_instance=255 scope=both
*
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25469263/viewspace-2640138/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE通過透明閘道器建dblink連線Postgresql的幾個問題OracleSQL
- 解決Oracle 11gR2 空閒連線過多,導致連線數滿的問題Oracle
- oracle dblink問題Oracle
- [Oracle-> MySQL] Oracle通過dblink連線MySQL--Oracle 19c連線到MySQL 5.7OracleMySql
- 配置Oracle DBlink連線MySQL庫OracleMySql
- JDBC連線ORACLE問題JDBCOracle
- 記一次oracle透過dblink連線mysql實施OracleMySql
- Oracle ORA-02020 : 過多的資料庫連結在使用中Oracle資料庫
- [Oracle] ORA-02020 過多的資料庫連結在使用中Oracle資料庫
- windows中socket 連結繫結數過多問題Windows
- 連線oracle中出現的問題Oracle
- Oracle dblink監聽問題Oracle
- IIS連線ORACLE的一個問題Oracle
- 物件的數量 與 連線池連線數量的問題,困擾已久。物件
- Tomcat最大連線數問題Tomcat
- navicate oracle 連線報錯問題Oracle
- Oracle 11g RAC通過SCAN IP連線資料庫 - JDBC連線串問題Oracle資料庫JDBC
- 【Mysql】連線數過多,應急處理方法MySql
- Oracle ORA-02020 : 過多的資料庫連結在使用中 解決步驟Oracle資料庫
- update-alternatives符號連線的層數過多符號
- 資料庫連線池的問題,連線池物件為靜態變數有問題麼資料庫物件變數
- 解決oracle網路連線問題Oracle
- 一個看似詭異的Oracle連線問題Oracle
- 解決線上Oracle連線耗時過長的問題現象RPYBOracle
- win下oracle監聽日誌過大造成的連線超時問題Oracle
- weblogic8.1連線多使用者的問題Web
- oracle 9i 刪除dblink問題Oracle
- SQL Server通過dblink訪問Oracle資料SQLServerOracle
- ORACLE未繫結變數和硬解析過多問題處理Oracle變數
- pl/sql dev連線oracle相關問題SQLdevOracle
- Github ssh的連線問題Github
- WTC連線阻塞的問題
- 求助: 用Hibernate連線多個資料庫的問題?資料庫
- PHP-fpm MongoDB 連線數爆了問題PHPMongoDB
- Oracle備庫無法連線主庫的問題分析Oracle
- 獲取oracle資料庫連線出現的問題Oracle資料庫
- 由於內部連線引起的Oracle RAC效能問題Oracle
- Oracle12c連線問題[ORA-28040]Oracle