SRDC - Data Collection for Listener Hang (Doc ID 1677251.1)

 1. Does the server where the listener runs respond to operating system commands?

 

2. Collect the listener log in text format covering the time of the error:

  •         Pre-11g:


Default location of the listener log is $ORACLE_HOME/network/log on UNIX and $ORACLE_HOME\network\log on Windows.  Default file name is listener.log.

  •         11g Onwards:
    • If ADR is enabled, default location of the listener log in text format is $ORACLE_BASE/diag/tnslsnr/<hostname>/listener/trace on UNIX and $ORACLE_BASE\diag\tnslsnr\<hostname>\listener\trace on Windows. Default file name is listener.log.

Default location of the listener log in xml format is $ORACLE_BASE/diag/tnslsnr/<hostname>/listener/alert on UNIX and $ORACLE_BASE\diag\tnslsnr\<hostname>\listener\alert on Windows. Default file name is log.xml.

If the listener log is not available as text format, collect the listener log in xml format.

    • If ADR is disabled, the listener log is default located under $ORACLE_HOME/network/log on Unix and $ORACLE_HOME\network\log on Windows. Default file name is listener.log.


The location of the listener log can also be also determined by checking the section 'Listener Log File' from 'lsnrctl status' output.

 

3. Which is the size of the listener log?

 

4. Log on the machine where the listener runs and collect the output from the command below. Does the command hang?

  lsnrctl status

 


If the underlying platform is Unix, see additional steps below:

 

5. Log on the machine where the listener runs and collect the output from the following command:

ps –ef | grep tnslsnr

 

6. Log on the machine where the listener runs and collect stack traces of the hung listener process by using the commands below.  Provide 3 stack traces - one about every 30 seconds:

-- Get listener pid:

ps -ef | grep tnslsnr

 

-- Collect stack trace. The command may vary based on Operating System:

Linux: pstack <listener_pid>

Solaris: pstack <listener_pid>

AIX (pre 5.2): Type dbx -a <listener_pid> . At the next prompt, type 'where'.

AIX (5.2 and higher): procstack <listener_pid>

HP-UX, Linux: Type gdb $ORACLE_HOME/bin/tnslsnr <listener_pid>. At the next prompt, type 'where'.

 

7. Log on the machine where the listener runs and collect OS tracing for the listener process:

-- Get listener pid:

ps -ef | grep tnslsnr

 

-- Enable OS trace:

Solaris,AIX: truss -aefdDo /tmp/truss-lsnr.log -p <PID_of_listener>
Linux: strace -frT -o /tmp/strace-lsnr.log -p <PID_of_listener> 
HP: tusc -aef -o /tmp/tusc-lsnr.log -T "%H%M%S" -p <PID_of_listener>

 

8. Log on the machine where the listener runs and collect the output from 'top' command at the time of the listener hang.

 

9. Copy the answers from questions and the output from commands into a text file.

 

10. Compress (in .zip or .tar.gz format) and upload all the data.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值