TNS-12518: TNS:listener could not hand off client connection
幾日前生產環境遇到一問題,經查證,問題解決,大體過程如下:
現場反饋程式無法正常連線資料庫,但登入系統後,監聽正常。
1.alert告警日誌無報錯資訊
2.監聽日誌資訊錯誤資訊如下:
(CONNECT_DATA=(SID=uflowcb1)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))) * (ADDRESS=(PROTOCOL=tcp)(HOST=**)(PORT=42961)) * establish * udc * 12518
TNS-12518: TNS:listener could not hand off client connection
TNS-12536: TNS:operation would block
TNS-12560: TNS:protocol adapter error
TNS-00506: Operation would block
Linux Error: 11: Resource temporarily unavailable
3.錯誤核對官方文件顯示:
ORA-12536: TNS:operation would block Cause: An internal operation did not commence because to do so would block the current process and the user has requested that operations be non-blocking. Action: None needed; this is an information message
TNS-12560: TNS:protocol adapter error Cause: A generic protocol adapter error occurred. Action: Check addresses used for proper protocol specification. Before reporting this error, look at the error stack and check for lower level transport errors. For further details, turn on tracing
TNS-00506: Operation would block Cause: An internal operation did not commence because to do so would block the current process and the user has requested that operations be non-blocking. Action: None needed; this is an information message.
前三個錯誤的action均什麼也不需要,那麼我們就看最後一個linux error:
Linux Error: 11: Resource temporarily unavailable
經查詢,是系統連線程式的顯示:
[oracle@* ~]$ grep nproc /etc/security/limits.conf
# - nproc - max number of processes
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
grid soft nproc 2048
grid hard nproc 16384
oracle soft nproc 2048
oracle hard nproc 16384
[oracle@itsm-uflow-db2 ~]$
而資料庫內部的process是5000,這裡的2048明顯小於5000,這也是系統限制而不是資料庫內部限制報錯的一個原因
資料庫內部的process是5000,這裡的2048明顯小於5000,這也是系統限制而不是資料庫內部限制報錯的一個原因,(如果是資料庫內部程式限制,那麼告警日誌將直接報,程式引數不足類似告警)。目前常規使用者在2000-2500之間,高峰在4000左右,因此目前資料庫5000*2=10000,系統8192*2=16384
能滿足近期的需要。
vi /etc/security/limits.conf
grid soft nproc 8092
grid hard nproc 16384
oracle soft nproc 8092
oracle hard nproc 16384
儲存即可,該限制檔案修改後就生效,不需要系統重啟。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24179204/viewspace-2125372/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- TNS-12518 TNS listener could not hand off client connectionclient
- 記一次解決:TNS-12518: TNS:listener could not hand off client connectionclient
- TNS-12518: TNS:listener could not hand off client connection For ORACLE 10G (AIX6.1)clientOracle 10gAI
- ORA-12518: TNS:listener could not hand off client connectionclient
- ORA-12518, TNS:listener could not hand off client connectionclient
- Listener refused the connection with the following error:ORA-12514, TNS:listenerError
- Connecting to ASM through the TNS Listener from a Client DesktopASMclient
- ORA - 12502 TNS:listener received no CONNECT_DATA from clientclient
- TNS Listener Hang, New Child Listener Process Forked
- 狀態: 失敗 -測試失敗: Listener refused the connection with the following error: ORA-12505, TNS:listener doesError
- TNS-12541: TNS:no listener錯誤處理
- Connection could not be established with host 求救
- 【故障|監聽】TNS-12518、TNS-00517和 Linux Error:32:Broken pipeLinuxError
- TNS-12518: TNS: 監聽程式無法分發客戶機連線
- TNS問題排查 The listener supports no services
- Intermittent TNS Listener Hang, New Child Listener Process Forked [ID 340091.1]MIT
- EF:Oracle.DataAccess.Client.OracleException: ORA-12154: TNS:could not resolve the connect identifier specifiedOracleclientExceptionIDE
- 【DataGuard】 TNS:could not resolve the connect identifier specifiedIDE
- TNS-12547TNS-12560 TNS-00517 Linux Error: 104: Connection reset by peerLinuxError
- 關於The Network Adapter could not establish connection。APT
- 請高手指點A connection to the database could not be madeDatabase
- Oracle Database Server 'TNS Listener'遠端資料投毒漏洞OracleDatabaseServer
- ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach) (轉)ErrorServer
- How to Setup SCAN Listener and Client for TAF and Load Balancingclient
- ORA-12500: TNS:listener failed to start a dedicated server processAIServer
- ORA-12500 TNS : listener failed to start a dedicated server processAIServer
- SQLDeloper IO 錯誤: The Network Adapter could not establish the connectionSQLAPT
- ORA-12154: TNS:could not resolve service name / TNS-03505: Failed to resolve nameAI
- listener start fail TNS-12555 利用trace找到問題AI
- TNS-12537, TNS-12560, TNS-00507 Linux Error: 29: Illegal seek error When Starting the ListenerLinuxError
- 【LISTENER】Oracle監聽TNS-12545及TNS-00515錯誤處理一例Oracle
- oracle listener錯誤Linux Error: 111: Connection refusedOracleLinuxError
- IO Exception: The Network Adapter Could Not Establish a Connection_604155.1ExceptionAPT
- lightdb WARNING: could not establish connection after 30000 ms
- SAP ABAP Gateway Client 的 ABAP 實現,重用 HTTP ConnectionGatewayclientHTTP
- iOS-拉outlet到程式碼區錯誤:Could not insert new outlet connection: Could not find any...iOS
- ORA-12537: TNS:connection closed問題解決
- TNS-12547,Linux Error: 104: Connection reset by peerLinuxError