大量"library cache lock"事件導致資料庫無法連線
問題出現:
27日下午,客戶抱怨無法連上Oracle資料庫O02ESG1(版本11.2.0.2),錯誤如下:
此時即使用sysdba也無法登陸資料庫,估計session數已經到達上限了。為了能讓sysdba能登陸資料庫,我在作業系統層面kill掉一些使用者程式。
登陸到資料庫之後,在v$session中查詢結果到類似下面的大量session:
和客戶溝通了一下,得出以下幾個資訊:
1. OPGCEP1正是應用程式連線資料庫的使用者名稱;
2. 應用程式採用多執行緒的JDBC連線資料庫,且當前連線時的密碼是錯誤的。
問題解決:
Oracle認為這是個Bug:
LIBRARY CACHE LOCKS DUE TO INVALID LOGIN ATTEMPTS (Doc ID 1309738.1)
Bug 12990384: HIGH LIBRARY CACHE LOCK IN 11.2.0.2.0
並給出瞭解決方法:
根據Oracle給出的解決方法,我在引數檔案中加入一行EVENT="28401 TRACE NAME CONTEXT FOREVER, LEVEL 1",重啟資料庫後,問題解決。
27日下午,客戶抱怨無法連上Oracle資料庫O02ESG1(版本11.2.0.2),錯誤如下:
ERROR: ORA-00018: maximum number of sessions exceeded |
登陸到資料庫之後,在v$session中查詢結果到類似下面的大量session:
SID USERNAME EVENT PROGRAM BLOCKING_SESSION ---------- ------------------------------ ---------------------------------------- -----------------------------------------------------------1002 OPGCEP1 library cache lock JDBC Thin Client 576 1003 OPGCEP1 library cache lock JDBC Thin Client 576 1004 OPGCEP1 library cache lock JDBC Thin Client 576 1005 SQL*Net message from client JDBC Thin Client 576 1006 library cache lock JDBC Thin Client 576 |
1. OPGCEP1正是應用程式連線資料庫的使用者名稱;
2. 應用程式採用多執行緒的JDBC連線資料庫,且當前連線時的密碼是錯誤的。
問題解決:
Oracle認為這是個Bug:
LIBRARY CACHE LOCKS DUE TO INVALID LOGIN ATTEMPTS (Doc ID 1309738.1)
Bug 12990384: HIGH LIBRARY CACHE LOCK IN 11.2.0.2.0
並給出瞭解決方法:
Dear Customer, There was new SLEEP () code introduced which will get activated after Failed Login Attempts exceeds 3 and not the threshold setting set for the FAILED_LOGIN_ATTEMPTS parameter value. Please set the below event in your init.ora file and restart the database. EVENT="28401 TRACE NAME CONTEXT FOREVER, LEVEL 1" After setting the above event, you will not be observing the "Library Cache Lock" issue during login with wrong password. This event was introduced from 11gR2 release onwards to allow customer to turn off the "sleep" after three failed logon attempts, by adding the event to their instance initialization file. Best Regards, Tracy Li (李秀文) Oracle Global Software Support |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26277071/viewspace-708516/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rac資料庫預設sql tuning advisor,導致大量library cache lock資料庫SQL
- 短連線 引起的 library cache lock
- LIBRARY CACHE LOCK 等待事件事件
- OS臨時埠耗盡導致無法建立資料庫連線資料庫
- latch:library cache lock等待事件事件
- enq:Library cache lock/pin等待事件ENQ事件
- 應用使用JNDI,資料庫無法連線,導致的程序無法啟動問題處理資料庫
- iptables導致無法遠端連線oracleOracle
- 密碼延遲驗出現大量library cache lock密碼
- 【TUNE_ORACLE】等待事件之“library cache lock”Oracle事件
- 尋找 library cache lock 等待事件的session事件Session
- 'library cache lock'等待事件的處理方法事件
- 俺也談談 library cache lock 等待事件事件
- WAMP無法連線mysql資料庫MySql資料庫
- MMNL absent ,資料庫無法連線資料庫
- Library Cache Pin 及 Library Cache Lock分析
- library cache lock和library cache pin理解
- 11.2資料庫登入出現library cache lock等待(二)資料庫
- 11.2資料庫登入出現library cache lock等待(一)資料庫
- library cache pin/lock的解決辦法
- 11G資料庫之library cache lock及library cache pin模擬結合hanganalyze定位資料庫
- PLSQL連線不了資料庫(防火牆,埠原因導致)SQL資料庫防火牆
- HA異常導致oracle資料庫無法啟動Oracle資料庫
- MMMNL absent錯誤 ,資料庫無法連線資料庫
- library cache pin和library cache lock的診斷分析
- library cache lock和library cache pin區別總結
- 磁碟IO故障導致的SQLServer資料庫無法寫入SQLServer資料庫
- 誤修改ORACLE_HOME導致無法登陸資料庫Oracle資料庫
- UNDO表空間損壞導致資料庫無法OPEN資料庫
- 歸檔問題導致的資料庫無法啟動資料庫
- 修改SQLNET.ORA導致資料庫無法啟動SQL資料庫
- NAMES.DIRECTORY_PATH配置不當導致無法連線oracleOracle
- oracle library cache之library cache lock_library cache pin wait event釋義OracleAI
- oracle異常:library cache lockOracle
- 【MySql】許可權不足導致的無法連線到資料庫以及許可權的授予和撤銷MySql資料庫
- 故障:核心表業務高峰期授權導致library cache lock和mutex x競爭Mutex
- Oracle11g 密碼延遲認證導致library cache lock的情況分析Oracle密碼
- 定位Library Cache pin,Library Cache lock等待的解決方法