11g告警日誌中大量ORA-12170錯誤
在11g資料庫的告警日誌中,經常可以看到ORA-12170錯誤資訊。
如果這個錯誤是偶然出現,問題可能是網路問題所致,但是如果這個錯誤短時間內頻繁出現,那麼問題就不一定是網路不暢那麼簡單了。
客戶的資料庫出現了應用無法連線的錯誤,而應用程式日誌出現下面的錯誤資訊:
ORA-12519, TNS:no appropriate service handler found
在告警日誌中比較頻繁的出現了下面的錯誤:
Fatal NI connect error 12170.
Sat Sep 03 12:43:43 2011
VERSION INFORMATION:
TNS for Linux: Version 11.2.0.2.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
Time: 03-SEP-2011 12:43:43
Time: 03-SEP-2011 12:43:43
Tns error struct:
Tns error struct:
Tracing not turned on.
Tracing not turned on.
ns main err code: 12535
ns main err code: 12535
ns main err code: 12535
Time: 03-SEP-2011 12:43:43
Tns error struct:
Tns error struct:
ns main err code: 12535
Tracing not turned on.
ns main err code: 12535
TNS-12535: TNS:operation timed out
TNS-12535: TNS:operation timed out
Tns error struct:
TNS-12535: TNS:operation timed out
ns secondary err code: 12606
ns secondary err code: 12606
TNS-12535: TNS:operation timed out
TNS-12535: TNS:operation timed out
nt main err code: 0
nt main err code: 0
ns secondary err code: 12606
ns secondary err code: 12606
ns main err code: 12535
ns secondary err code: 12606
nt secondary err code: 0
nt secondary err code: 0
nt main err code: 0
nt main err code: 0
nt main err code: 0
nt OS err code: 0
nt OS err code: 0
nt secondary err code: 0
nt secondary err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.90.102)(PORT=33196))
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.90.102)(PORT=33191))
nt OS err code: 0
nt secondary err code: 0
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.90.102)(PORT=33201))
TNS-12535: TNS:operation timed out
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.90.102)(PORT=33195))
nt OS err code: 0
ns secondary err code: 12606
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.90.102)(PORT=33174))
nt main err code: 0
WARNING: inbound connection timed
out (ORA-3136)
Sat Sep 03 12:48:28 2011
WARNING: inbound connection timed out (ORA-3136)
Sat Sep 03 12:48:28 2011
WARNING: inbound connection timed out (ORA-3136)
Sat Sep 03 12:48:28 2011
WARNING: inbound connection timed out (ORA-3136)
Sat Sep 03 12:48:30 2011
Active Session History (ASH) performed an emergency flush. This may mean that
ASH is undersized. If emergency flushes are a recurring issue, you may consider
increasing ASH size by setting the value of _ASH_SIZE to a sufficiently large
value. Currently, ASH size is 33554432 bytes. Both ASH size and the total
number of emergency flushes since instance startup can be monitored by running
the following query:
select total_size,awr_flush_emergency_count from v$ash_info;
Sat Sep 03 12:48:32 2011
Sweep [inc][48817]: completed
Sweep [inc2][48817]: completed
檢查了監聽日誌,在12:43的時刻出現了大量的ORA-12518錯誤,這個錯誤資訊是:TNS:listener could not hand off client connection,隨後不到1秒的時間,大量的連線錯誤導致了ORA-12519 TNS:no appropriate service handler found錯誤,這說明資料庫的對連線的響應能力已經跟不上了。
而導致這兩個問題出現的原因是大量的會話在短時間內連線到資料庫,根據監聽日誌,僅12:42分這一分鐘,連線資料庫的會話就建立了超過2000個連線。而正常情況下,這個資料庫一天的總連線數量也不過13000個左右。
Oracle在metalink文件ID 12535.1中,描述了11g告警日誌中出現ORA-12170以及ORA-12535錯誤的原因,由於大量的客戶端連線到伺服器,導致資料庫無法在短時間內處理連線風暴,從而引發了連線超時的錯誤。
最終發現,可能的中介軟體的連線重試策略配置存在一定的問題,導致當通訊或其他問題引發連線中斷後,會短時間內產生大量的連線重試,並不斷的增加連線數量,最終引發了籤的ORA-12519錯誤。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29119536/viewspace-1318833/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 11g 中告警日誌的位置Oracle
- messages 日誌裡面大量的fcoemon錯誤
- 告警日誌出現skgpspawn failed category 27142錯誤AIGo
- mysql 日誌之錯誤日誌MySql
- 排查錯誤日誌
- 方便檢視11g錯誤日誌的指令碼指令碼
- Apche日誌系列(2):錯誤日誌(轉)
- MySQL資料庫中的日誌檔案---(1)錯誤日誌MySql資料庫
- Mabatis配置錯誤日誌BAT
- net 日誌分析錯誤
- 日誌查詢錯誤
- 錯誤日誌檢視
- SQL Server 錯誤日誌SQLServer
- 【ELK】elastalert 日誌告警AST
- 告警日誌介紹
- 方便檢視11g錯誤日誌的指令碼(新)指令碼
- mysql之 日誌體系(錯誤日誌、查詢日誌、二進位制日誌、事務日誌、中繼日誌)MySql中繼
- alert日誌中的兩種ORA錯誤分析
- 關閉Druid中某些錯誤日誌列印UI
- MySQL 狂寫錯誤日誌MySql
- jdon框架日誌資訊錯誤框架
- SAP 錯誤日誌的調查
- node錯誤處理與日誌
- 上一個日誌的錯誤
- Sqlserver:代理錯誤日誌,知多少?SQLServer
- SQL Server ErrorLog 錯誤日誌SQLServerError
- aix ip 衝突錯誤日誌AI
- oracle日誌錯誤恢復(轉)Oracle
- RAC的告警日誌檔案
- 告警日誌出現kewastUnPackStats資訊AST
- ELK日誌告警elastalert2AST
- 11G flashback data archive 導致產生大量歸檔日誌Hive
- ORA-12170錯誤的解決辦法
- Mysql 錯誤日誌出現大量[Warning] Aborted connection to db user host的解決思路MySql
- 開啟PHP的錯誤log日誌PHP
- 常見的錯誤日誌型別型別
- Mysql5.7 的錯誤日誌中最常見的note日誌MySql
- Oracle告警日誌ora-04030Oracle