TNS-12535 TNS-00505的處理方法
硬體說明:
作業系統版本:ORACLE LINUX 6.3 64位
資料庫版本:11.2.0.3 64位
問題說明:
在檢查資料庫的alert日誌的時候,發現大量的12170和TNS-12535的錯誤;
Fatal NI connect error 12170.
VERSION INFORMATION:
TNS for Linux: Version 11.2.0.3.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
Time: 06-APR-2014 10:46:14
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 110
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=110.80.1.83)(PORT=50226))
Sun Apr 06 10:46:24 2014
問題解決:
在metalink平臺上面查詢,該症狀和文件 ID (1628949.1)描述的症狀完全一樣,根據文件的內容整理如下:
1、出現問題的版本
Oracle Net Services - Version 11.2.0.3 to 12.1.0.1 [Release 11.2 to 12.1]Information in this document applies to any platform.
2、出現錯誤的症狀或報錯格式如下:
Fatal NI connect error 12170.VERSION INFORMATION:TNS for 64-bit Windows: Version 11.2.0.3.0 - ProductionOracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 11.2.0.3.0 - ProductionWindows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 11.2.0.3.0 - ProductionTime: 22-FEB-2014 12:45:09Tracing not turned on.Tns error struct:ns main err code: 12535TNS-12535: TNS:operation timed outns secondary err code: 12560nt main err code: 505TNS-00505: Operation timed outnt secondary err code: 60nt OS err code: 0***Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=121.23.142.141)(PORT=45679))
The PORT field here is the ephemeral port assigned to the client for this connection. This does not correspond to the listener port.
3、問題的原因
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.
This would indicate an issue with a firewall where a maximum idle time setting is in place.
The connection would not necessarily be "idle". 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
periods of time for any reason, the firewall might terminate the connection.
4、解決方法:
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 <n> is a non-zero value set in minutes.
進入ORACLE_HOME/network/admin目錄下,新增sqlnet.ora檔案,增加一行SQLNET.EXPIRE_TIME=10
5、補充說明SQLNET.EXPIRE_TIME
To specify a time interval, in minutes, to send a check to verify that client/server connections are active. The following usage notes apply to this parameter:
- Setting a value greater than 0 ensures that connections are not left open indefinitely, due to an abnormal client termination.
- If the probe finds a terminated connection, or a connection that is no longer in use, then it returns an error, causing the server process to exit.
- This parameter is primarily intended for the database server, which typically handles multiple connections at any one time.
- It is not allowed on bequeathed connections.
- Though very small, a probe packet generates additional traffic that may downgrade network performance.
- Depending on which operating system is in use, the server may need to perform additional processing to distinguish the connection probing event from other events that occur. This can also result in degraded network performanc
6、做完以上操作後,重啟資料庫的監聽;
詳細的metalink連結 :https://support.oracle.com/epmos/faces/DocumentDisplay?id=1628949.1
-----------------------------------------------------------------------------------------------------
ORACLE 資料庫運維群 367875324
------------------------------------------------------------------------------------------------------
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31397003/viewspace-2152889/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 11gr2 alert日誌中報TNS-12535 TNS-00505原因及解決方法
- JavaScript常用的字串處理方法JavaScript字串
- 非同步處理方法非同步
- 影像預處理方法
- APM RUEI processor處理程式hang死處理方法
- 大量time-wait的處理方法AI
- 處理字串的方法都在這裡字串
- JVM如何處理方法呼叫JVM
- 影像資料不足時的處理方法
- 爬蟲 | 處理cookie的基本方法——session爬蟲CookieSession
- Linux記憶體不足的處理方法Linux記憶體
- ZooKeeper的系統列印Log的處理方法
- 處理恢復資料方法
- 多行文字加省略號的處理方法
- AndroidKiller反編譯失敗的處理方法Android編譯
- async/await 優雅的錯誤處理方法AI
- 小程式處理大量資料列表的方法
- 探討遊戲反饋的處理方法遊戲
- TS - 處理故障的一些通用方法
- Java--- 關於null的處理若干方法JavaNull
- 【C#】-對於Null值的處理方法C#Null
- c# 一些警告的處理方法C#
- 處理VM的一種特殊方法和思路
- Python處理CSV檔案的幾個方法Python
- 包含(處理)HTML的最簡單方法包括HTML
- Python 中 Panda 庫 處理表格方法Python
- 資料預處理方法彙總
- create index ORA-00376 處理方法Index
- nodejs程式異常退出處理方法NodeJS
- 自然語言處理:分詞方法自然語言處理分詞
- React TSLint中常見的問題及處理方法React
- Postgresql在ubuntu 22.04上遭遇OOM的處理方法SQLUbuntuOOM
- Windows 批處理之DATE命令的使用方法Windows
- 三層switch轉一層switch的處理方法
- Java中處理SocketException: Connection reset”異常的方法JavaException
- xshell終端顯示亂碼的處理方法
- MySQL儲存過程的異常處理方法MySql儲存過程
- 大資料常見的處理方法有哪些大資料
- 多對一處理 和一對多處理的處理