Listener Hanging -Get For Resolving or Troubleshooting [ID 230156.1]
Listener Hanging - Information to Get For Resolving or Troubleshooting [ID 230156.1]
In this Document
Purpose
Scope and Application
Listener Hanging - Information to Get For Resolving or Troubleshooting
Applies to:
Oracle Net Services - Version: 8.1.5.0.0 to 11.2.0.1 - Release: 8.1.5 to 11.2Information in this document applies to any platform.
Purpose
This note is to assist and gather relevant information in troubleshooting issues concerning the TNS Listener hanging. This note only applies to listeners hanging while running; it does not apply to listeners not starting.The note is divided into three sections:
- Questions to be Addressed
- Technical Data to Obtain
- Recommendations to Immediately Provide Relief of a Hanging Listener
Scope and Application
It is crucial that all questions and information be answered and supplied.Listener Hanging - Information to Get For Resolving or Troubleshooting
Questions to be AddressedExample answers are given in the yellow blocks to demonstrate what type of information is expected.
1. What is the version and bit of the OS and of the Oracle software?
Example Answer: Linux Redhat AS4 64bit. Oracle 10.2.0.3 64 bit
2. Can you predict when the hang will occur?
Example Answer: The listener seems to hang after it has been running for a few days
3. What is the system load at the time of the hang?
Example Answer: I have not noticed any heavy load at the time the listener hangs. Just normal usage.
4. Can a bequeath connection be made to Oracle when the listener hangs?
Example Answer: Yes, "sqlplus system/manager" works while the listener is hung.
5. Is Shared Server being used
Example Answer: Yes, shared server is configured
6. Is this listener a part of a RAC environment.
Example Answer: No, this is a standalone listener.
Technical Data to Obtain
1. Level 16 trace file of the listener.
- If this is an 11g listener, add this parameter to the listener.ora file before adding any other tracing parameters.
DIAG_ADR_ENABLED_listenername = OFF
- If the listener hangs relatively quickly, add this parameter to the listener.ora file and restart the listener
TRACE_LEVEL_listenername = 16
- If the listener hangs after a long amount of time (more than 24 hrs), use cyclic tracing and add these parameters to the listener.ora file. These parameters cycle between two 500MB trace files.
TRACE_LEVEL_listenername = 16
TRACE_FILELEN_listenername = 512000
TRACE_FILENO_listenername = 2
TRACE_FILELEN_listenername = 512000
TRACE_FILENO_listenername = 2
2. An RDA. Follow these notes
Note:314422.1 "Remote Diagnostic Agent (RDA) 4 - Overview"
Optional Notes:
Note:330363.1 "Remote Diagnostic Agent (RDA) 4 - FAQ"
Note:330344.1 "Remote Diagnostic Agent (RDA) 4 - Training"
Note:330362.1 "Remote Diagnostic Agent (RDA) 4 - Troubleshooting Guide"
Optional Notes:
Note:330363.1 "Remote Diagnostic Agent (RDA) 4 - FAQ"
Note:330344.1 "Remote Diagnostic Agent (RDA) 4 - Training"
Note:330362.1 "Remote Diagnostic Agent (RDA) 4 - Troubleshooting Guide"
3. The listener.log file
4. Stack traces of the hung listener process. Provide 3 stack traces - one about every 30 seconds.
Solaris |
pstack |
AIX (pre 5.2) |
Type: dbx -a At the next prompt, type: where |
AIX (5.2 and higher) |
procstack |
HPUX |
Type: gdb $ORACLE_HOME/bin/tnslsnr At the next prompt, type: where |
Linux |
Type: gdb $ORACLE_HOME/bin/tnslsnr At the next prompt, type: where |
5. Memory usage of the listener. These samples should be taken when the listener is started, after the listener is started during normal usage, and at the time of the hang. The idea is to test for large growths of memory consumption.
Solaris |
pmap -x |
AIX (5.2 +) |
procmap |
HPUX |
export UNIX95=1 ps -e -o pid, ruser, vsz, args | grep tnslsnr |
Linux |
cat /proc/ |
6. CPU usage of the listener at the time the listener hangs:
Providing a "top" output showing the tnslsnr processes is the easiest way to provide this information
Recommendations to Immediately Provide Relief of a Hanging Listener
1. The listener should always be patched to the latest release of the current version being used. Ideally, the listener should be patched to the newest and latest production release of Oracle itself. There is no need to upgrade the database. Example upgrade paths (at the time of this writing):
- A 10.1.0.2 listener should be upgraded to 10.1.0.5
- A 11.1.0.6 listener should be upgraded to 11.1.0.7
3. (Pre 11g) Keep the listener.log file small in size. It is mandatory the listener.log file be less than 2GB in size in releases prior to 11g. Not doing so results in process instability, random crashes, and random hangs
4. If listener load is high, try starting a second listener and configure load balancing to assist with connection load.
5. Add the parameter DIRECT_HANDOFF_TTC_listenername=OFF to the listener.ora file and restart the listener.
6. In a non-RAC environment, add the parameter SUBSCRIBE_FOR_NODE_DOWN_EVENT_
7. Verify the operating system is running at its most current level.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-745244/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Troubleshooting ServeRAIDServerAI
- Checkpoint Tuning and Troubleshooting GuideGUIIDE
- Rust Reference Cycles: Resolving and Avoiding themRust
- How to Collect Diagnostics for Database Hanging Issues (Doc ID 452358.1)Database
- 【MOS】Index Rebuild Is Hanging Or Taking Too Long (文件 ID 272762.1)IndexRebuild
- How to Collect Diagnostics for Database Hanging Issues (文件 ID 452358.1)Database
- Troubleshooting Session Administration [ID 805586.1]Session
- Checkpoint Tuning and Troubleshooting Guide (文件 ID 147468.1)GUIIDE
- Troubleshooting Database Hang Issues (Doc ID 1378583.1)Database
- Intermittent TNS Listener Hang, New Child Listener Process Forked [ID 340091.1]MIT
- Master Note - Troubleshooting DBCA Issues (文件 ID 1269459.1)AST
- Checkpoint Tuning and Troubleshooting Guide(Metalink:147468.1)GUIIDE
- get_plan_by_sqlidSQL
- Unable to preventDefault inside passive event listenerIDE
- android get uuid獲取uuidAndroidUI
- oracle_sid與netmgr listener的sidOracle
- Troubleshooting "Global Enqueue Services Deadlock detected" (Doc ID 1443482.1)ENQ
- Troubleshooting tips
- Oracle HANGANALYZE 功能診斷 DB hanging .Oracle
- How to Run and View a Listener Trace. [ID 147446.1]View
- 關於local_listener、remote_listener、current_listenerREM
- 【MOS】Troubleshooting 'enq: TX - index contention' Waits (文件 ID 873243.1)ENQIndexAI
- remote_listener和listener passwordREM
- Listener
- 診斷Oracle資料庫Hanging問題Oracle資料庫
- postgreSQL troubleshooting 故障分析SQL
- SERVICE_NAME Parameter - Resolving The ORA-12514 Error [ID 77640.1]Error
- remote_listener和local_listenerREM
- How To modify listener port in oracle 11g GridOracle
- Troubleshooting I/O-related waits [ID 223117.1]AI
- Master Note: Troubleshooting Oracle Tablespace Management (文件 ID 1522807.1)ASTOracle
- Temporary failure resolving ‘archive.ubuntu.com‘AIHiveUbuntu
- get CPU id (很全的) (轉)
- kb get pod -o wide命令IDE
- Step by Step Troubleshooting Guide for TDE Error ORA-28374 (Doc ID 1541818.1)GUIIDEError
- Resolving ORA-600[3020] Raised During Recovery (Doc ID 361172.1)AI
- How to Collect Diagnostics for Database Hanging Issues_452358.1Database
- local_listener ,remote_listener 的配置REM