大量"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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- latch:library cache lock等待事件事件
- library cache pin和library cache lock(一)
- library cache pin和library cache lock (zt)
- library cache pin和library cache lock(二)
- 【TUNE_ORACLE】等待事件之“library cache lock”Oracle事件
- library cache lock和library cache bin實驗_2.0
- 應用使用JNDI,資料庫無法連線,導致的程序無法啟動問題處理資料庫
- Library Cache最佳化篇(一)降低library cache lock和library cache pin的方法
- [20240920]跟蹤library cache lock library cache pin使用gdb.txt
- [20240824]跟蹤library cache lock library cache pin使用gdb.txt
- iis網站資料庫無法連線資料庫網站資料庫
- 【ASM_ORACLE】Library Cache最佳化篇(二)Library cache load lock的概念和解決辦法ASMOracle
- Oracle11g 密碼延遲認證導致library cache lock的情況分析Oracle密碼
- 【等待事件】library cache pin事件
- 故障:核心表業務高峰期授權導致library cache lock和mutex x競爭Mutex
- 網站顯示無法連線資料庫網站資料庫
- 當刪除oracle資料庫user時發生row cache lock 等待事件Oracle資料庫事件
- [20240827]分析為什麼出現library cache lock等待事件2.txt事件
- [20240828]分析為什麼出現library cache lock等待事件5.txt事件
- 磁碟IO故障導致的SQLServer資料庫無法寫入SQLServer資料庫
- Library Cache 診斷:Lock, Pin 以及 Load Lock (文件 ID 1548524.1)
- 【YashanDB資料庫】PHP無法透過ODBC連線到資料庫資料庫PHP
- 一次library cache lock 問題分析
- [20241105]跟蹤library cache lock library cache pin使用gdb(11g)2.txt
- [20241108]跟蹤library cache lock library cache pin使用gdb(11g)4.txt
- [20241108]跟蹤library cache lock library cache pin使用gdb(11g)3.txt
- 織夢dedecms網站資料庫無法連線網站資料庫
- 網站無法連線資料庫怎麼辦?網站資料庫
- HGAdmin無法連線本地資料庫解決方式資料庫
- 重置資料庫密碼後導致網站無法訪問資料庫密碼網站
- ORACLE DSG資料同步軟體程式導致資料庫無法正常關閉Oracle資料庫
- 域名解析導致資料庫連線緩慢(hosts :files dns)資料庫DNS
- wait_type SOS_WORKER導致資料庫連線失敗AI資料庫
- 批次錯誤使用者名稱與密碼導致業務使用者HANG住(library cache lock)密碼
- 網站域名無法連線資料庫怎麼回事網站資料庫
- 上網站無法連線資料庫怎麼辦?網站資料庫
- MySQL連線數過多導致服務無法正常執行MySql
- 【伺服器資料恢復】異常斷電導致ESXI無法連線儲存的資料恢復案例伺服器資料恢復
- 關於 重新安裝 Homestead 後無法連線資料庫資料庫