Fatal NI connect error 12170 TNS-12535 TNS-00505
Fatal NI connect error 12170 TNS-12535 TNS-00505
今天一位朋友遇到這個錯誤,每2個小時長時間執行的儲存過程就斷開,一開始懷疑PROFILE或者RESOURCE PLAN限制。
但是大家都明白,一般很少用這些,特別是資源計劃,拿到報錯後如下:
Fatal NI connect error 12170.
VERSION INFORMATION:
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 11.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 11.2.0.1.0 - Production
Time: 27-1月 -2015 15:43:45
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS: 操作超時
ns secondary err code: 12560
nt main err code: 505
TNS-00505: 操作超時
nt secondary err code: 60
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.47.98.172)(PORT=60611))
這裡的
nt secondary err code: 60 可能隨著系統的不同而不同
Linux x86 or Linux x86-64: "nt secondary err code: 110"
HP-UX : "nt secondary err code: 238"
AIX: "nt secondary err code: 78"
Solaris: "nt secondary err code: 145"
對於這樣的錯誤在11G以前是不計入alert日誌的,但是11G後 Automatic Diagnostic Repository (ADR)記錄,其實可以透過如下方法進行遮蔽掉:
To revert to Oracle Net Server tracing/logging, set following parameter in the server's sqlnet.ora :
DIAG_ADR_ENABLED = OFF
Also, to back out the ADR diag for the Listener component, set following parameter in the server's listener.ora:
DIAG_ADR_ENABLED_ = OFF
- Where the would be replaced with the actual name of the configured listener(s) in the listener.ora configuration file. For example, if the listener name is 'LISTENER', the parameter would read:
DIAG_ADR_ENABLED_LISTENER = OFF
上述報錯原因如下:
This issue can arise during a long running query or when using JDBC Thin connection pooling.
If there is no data 'on the wire' for lengthy,This would indicate an issue with a firewall
here a maximum idle time setting is in place.
The alert.log message indicates that a connection was terminated AFTER it was established to the instance.
In this case, it was terminated 2 hours and 3 minutes after the listener handed the connection to the database.
也就是他出現在長期的操作或者使用連線池的時候,並且設定了防火牆,並且2小時會進行中斷一次。
解決辦法如下:
The non-Oracle solution would be to remove or increase the firewall setting for maximum idle time.
In cases where this is not feasible, Oracle offers the following suggestion:
The following parameter, set at the **RDBMS_HOME/network/admin/sqlnet.ora, can resolve this kind of problem.
DCD or SQLNET.EXPIRE_TIME can mimic data transmission between the server and the client during long periods of idle time.
SQLNET.EXPIRE_TIME=n Where is a non-zero value set in minutes.
在ORACLE級別可以設定SQLNET.EXPIRE_TIME引數,如果設定為2,可以2分鐘發起一次探測,傳送最小的探測包來保證連線之間有流量,
而不至於被防火牆中斷。當然也可以設定防火牆的最大IDLE TIME。
參考:
Fatal NI Connect Error 12170, 'TNS-12535: TNS:operation timed out' Reported in 11g Alert Log (文件 ID 1286376.1)
Alert Log Errors: 12170 TNS-12535/TNS-00505: Operation Timed Out (文件 ID 1628949.1)
今天一位朋友遇到這個錯誤,每2個小時長時間執行的儲存過程就斷開,一開始懷疑PROFILE或者RESOURCE PLAN限制。
但是大家都明白,一般很少用這些,特別是資源計劃,拿到報錯後如下:
Fatal NI connect error 12170.
VERSION INFORMATION:
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 11.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 11.2.0.1.0 - Production
Time: 27-1月 -2015 15:43:45
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS: 操作超時
ns secondary err code: 12560
nt main err code: 505
TNS-00505: 操作超時
nt secondary err code: 60
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.47.98.172)(PORT=60611))
這裡的
nt secondary err code: 60 可能隨著系統的不同而不同
Linux x86 or Linux x86-64: "nt secondary err code: 110"
HP-UX : "nt secondary err code: 238"
AIX: "nt secondary err code: 78"
Solaris: "nt secondary err code: 145"
對於這樣的錯誤在11G以前是不計入alert日誌的,但是11G後 Automatic Diagnostic Repository (ADR)記錄,其實可以透過如下方法進行遮蔽掉:
To revert to Oracle Net Server tracing/logging, set following parameter in the server's sqlnet.ora :
DIAG_ADR_ENABLED = OFF
Also, to back out the ADR diag for the Listener component, set following parameter in the server's listener.ora:
DIAG_ADR_ENABLED_
- Where the
DIAG_ADR_ENABLED_LISTENER = OFF
上述報錯原因如下:
This issue can arise during a long running query or when using JDBC Thin connection pooling.
If there is no data 'on the wire' for lengthy,This would indicate an issue with a firewall
here a maximum idle time setting is in place.
The alert.log message indicates that a connection was terminated AFTER it was established to the instance.
In this case, it was terminated 2 hours and 3 minutes after the listener handed the connection to the database.
也就是他出現在長期的操作或者使用連線池的時候,並且設定了防火牆,並且2小時會進行中斷一次。
解決辦法如下:
The non-Oracle solution would be to remove or increase the firewall setting for maximum idle time.
In cases where this is not feasible, Oracle offers the following suggestion:
The following parameter, set at the **RDBMS_HOME/network/admin/sqlnet.ora, can resolve this kind of problem.
DCD or SQLNET.EXPIRE_TIME can mimic data transmission between the server and the client during long periods of idle time.
SQLNET.EXPIRE_TIME=n Where
在ORACLE級別可以設定SQLNET.EXPIRE_TIME引數,如果設定為2,可以2分鐘發起一次探測,傳送最小的探測包來保證連線之間有流量,
而不至於被防火牆中斷。當然也可以設定防火牆的最大IDLE TIME。
參考:
Fatal NI Connect Error 12170, 'TNS-12535: TNS:operation timed out' Reported in 11g Alert Log (文件 ID 1286376.1)
Alert Log Errors: 12170 TNS-12535/TNS-00505: Operation Timed Out (文件 ID 1628949.1)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7728585/viewspace-1417198/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Fatal NI connect error 12170 錯誤Error
- [重慶思莊每日技術分享]-alert頻繁出現12170. Fatal NI connect errorError
- 11gr2 alert日誌中報TNS-12535 TNS-00505原因及解決方法
- FATAL - Fatal error: Target Interaction Manager failed at StartupErrorAI
- Last_IO_Error: Got fatal error 1236ASTErrorGo
- [Code Composer Studio] fatal error #6001Error
- Fatal error in launcher: Unable to create process using '"'Error
- Fatal error: Uncaught PDOException: could not find driverErrorException
- Fatal error: Cannot redeclare printerror() (previously declared in …Error
- fatal error: libmemcached/memcached.h: No such file or directoryErrorIBM
- fatal error: openssl/sha.h: No such file or directoryError
- fatal error: sys/cdefs.h: No such file or directoryError
- PHP Fatal error: Allowed memory size of 1610612736 bytesPHPError
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- Thread 1: Fatal error: init(coder:) has not been implementedthreadError
- 如何修復 “fatal error: security/pam_modError
- 解決方案 | MiKTex SSL connect error code 35Error
- 執行flutter run命令報錯::ERROR: Could not connect to lockdownd, error code -17FlutterError
- Fatal error: can't check configuration file '/home/watt/proxy/dError
- fatal: [192.168.65.128]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be senFalseError
- git push fatal: HttpRequestException encountered. An error occurred while sending the requestGitHTTPExceptionErrorWhile
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- 【Linux】curl: (35) SSL connect error問題處理LinuxError
- Ubuntu下 fatal error: Python.h: No such file or directory 解決方法UbuntuErrorPython
- [ERROR] [MY-012872] [InnoDB] [FATAL] Semaphore wait has lasted > 600 secondsErrorAIAST
- SSL錯誤ssl connect error 35的解決方案Error
- golang原始碼安裝時fatal error: MSpanList_Insert錯誤Golang原始碼Error
- Composer 記憶體不足解決方案 PHP Fatal error: Out of memory記憶體PHPError
- windows終端輸入pip install requests報錯:Fatal error in launcherWindowsError
- MySQL案例09:Last_IO_Error: Got fatal error 1236 from master when reading data from binary logMySqlASTErrorGo
- ORA-00257:archiver error. Connect internal only,until freed.HiveError
- PING[ARC5]: Heartbeat failed to connect to standby 'dghq'. Error is 12154.AIError
- fatal error LNK1104: 無法開啟檔案“libExtensions.obj”ErrorOBJ
- 帝國CMSr的Fatal error:Allowed memory size of的解決辦法Error
- 帝國cms網站Fatal error: Allowed memory size of … bytes exhausted怎麼辦?網站Error
- 帝國CMS更新時提示Fatal error: Allowed memory size of的解決方法Error
- Labview 安裝 NI 軟體時出現 ni-systemlink-message-broker 錯誤View
- 11g ADG 出現FAL[client,USER]:error 12154 connect to orcl for fetching gapclientError
- Flutter在iOS裝置執行報錯fatal error: 'Flutter/Flutter.h' file not foundFlutteriOSError