溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

ALERT日志中常見監(jiān)聽錯誤:ORA-3136錯誤的排查

發(fā)布時間:2020-06-24 19:19:52 來源:網(wǎng)絡(luò) 閱讀:2698 作者:PengChonggui 欄目:關(guān)系型數(shù)據(jù)庫

【現(xiàn)象】

***********************************************************************
 
Fatal NI connect error 12170.
 
  VERSION INFORMATION:
        TNS for Linux: Version 12.1.0.2.0 - Production
        Oracle Bequeath NT Protocol Adapter for Linux: Version 12.1.0.2.0 - Production
        TCP/IP NT Protocol Adapter for Linux: Version 12.1.0.2.0 - Production
  Time: 21-MAR-2018 14:01:26
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12535
   
TNS-12535: TNS:operation timed out
    ns secondary err code: 12606
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
  Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.81)(PORT=52933))
Wed Mar 21 14:01:26 2018
WARNING: inbound connection timed out (ORA-3136)
Wed Mar 21 14:01:26 2018
 
 
***********************************************************************

 

【原因】

1.DoS***,大量惡意連接,此時報錯并終止客戶端連接是正確的。

2.正常連接,但是未在SQLNET.INBOUND_CONNECT_TIMEOUT值=60秒內(nèi)完成登陸驗證。

3.數(shù)據(jù)庫服務(wù)器負載高,類似HANG住。

【解決方法】

 

1)查看當(dāng)前sqlnet.ora

[oraprod@erpdb PROD_erpdb]$ cat sqlnet.ora
###############################################################
#
# Do not edit settings in this file manually. They are managed
# automatically and will be overwritten when AutoConfig runs.
# For more information about AutoConfig, refer to the Oracle
# E-Business Suite Setup Guide.
#
#$Header: NetServiceHandler.java 120.28.12020000.8 2016/03/30 11:22:32 kmandal ship $
#
###############################################################
 
NAMES.DIRECTORY_PATH=(TNSNAMES, ONAMES, HOSTNAME)
SQLNET.EXPIRE_TIME= 10
SQLNET.INBOUND_CONNECT_TIMEOUT =60
SQLNET.ALLOWED_LOGON_VERSION_SERVER=8

2)查看當(dāng)前listenerINBOUND_CONNECT_TIMEOUT_PROD

LSNRCTL> show inbound_connect_timeout
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
LISTENER parameter "inbound_connect_timeout" set to 60
The command completed successfully

 

 

3Oracle建議是sqlnet.ora INBOUND_CONNECT_TIMEOUT的值大于listener.ora--中的INBOUND_CONNECT_TIMEOUT_PROD的值。

例如:

sqlnet.ora
SQLNET.INBOUND_CONNECT_TIMEOUT = 120

 


listener.ora
INBOUND_CONNECT_TIMEOUT_PROD = 119


 

驗證:

LSNRCTL>show inbound_connect_timeout


向AI問一下細節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI