【Oracle 10201 lsnrctl status卡住问题解决】

Linux + Oracle 10201

下午发现数据库连不上,查看情况,都没报错,

查看lsnrctl status 如下卡住了

[oracle@thdb oracle]$ lsnrctl status

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 12-12月-2011 16:00:47

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))

alter日志和listener日志都正在,唯独sqlnet.log有如下报错

***********************************************************************

Fatal NI connect error 12170.

VERSION INFORMATION:

TNS for Linux: Version 10.2.0.1.0 - Production

Oracle Bequeath NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production

TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production

Time: 12-12月-2011 15:14:50

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: 110

nt OS err code: 0

Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.4.68)(PORT=54729))

解决如下:

ps -ef|grep ora 发现有两个监听程序在跑;

ps -ef|grep tns 查出进程号

kill -9 杀掉一个监听进程

lsnrctl start 显示启动成功,plsql连接正常,解决……

查了些资料,如下,要详细读读 好像是10G的bug

这个问题暂时定为oracle的bug,bug号 4518443
处理方法: listener.ora加入SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF

Intermittent TNS Listener Hang, New Child Listener Process Forked [ID 340091.1]

--------------------------------------------------------------------------------
 
  Modified 30-JUL-2010     Type ALERT     Status PUBLISHED

In this Document
  Description
  Likelihood of Occurrence
  Possible Symptoms
  Workaround or Resolution
  Patches
  Modification History
  References

--------------------------------------------------------------------------------

Applies to:
Oracle Net Services - Version: 10.1.0.3.0 to 10.2.0.2.0 - Release: 10.1 to 10.2
Information in this document applies to any platform.
All new connections via TNS listener hang, no errors reported

Checked for relevance on 05-FEB-2010.
Description
Intermittently the TNS listener hangs and new connections to the database are not possible.

Likelihood of Occurrence
The issue is that the TNS listener can hang under load if a second spawned listener process is not closed (remains persistent). Secondary listener processes are not unusual, depending on traffic as well as when the OS grep snapshot is taken. However, a persistent secondary process (longer than say 5 second) is not normal and may be a result of this referenced problem.

TNS listener can hang at any time and effect standalone or RAC systems

Possible Symptoms
Listener process can also consume high amount of CPU

Child TNS listener process is seen when doing a ps on the listener process, eg.:

$ ps -ef | grep tnslsnr

ora10g 8909 1 0 Sep 15 ? 902:44 /u05/10GHOME/DBHOME/bin/tnslsnr sales -inherit 
ora10g 22685 8909 0 14:19:23 ? 0:00 /u05/10GHOME/DBHOME/bin/tnslsnr sales -inherit

Killing the child process allows new connections to work until the problem reoccurs

Workaround or Resolution

Issue is fixed in 10.2.0.3 Patch Set
Oracle Support recommends patching to 10.2.0.4 as this the lastest release

- OR -

Apply Patch 4518443 for the problem (if a patch is available)

- OR -

As a workaround, two steps should be done:

1. The following parameter can be added to listener.ora

SUBSCRIBE_FOR_NODE_DOWN_EVENT_<listener_name>=OFF
Where <listener_name> should be replaced with the actual listener name configured in the LISTENER.ORA file. This parameter is to be placed by itself on an empty line / at the end of file.

For example, if the listener name is LISTENER (default), the parameter would be:

SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF

2. Locate the ons.config file in the 10g(rdbms) home and rename it to something else.
For example:
cd $ORACLE_HOME/opmn/conf
mv ons.config ons.config.orig

The listener needs to be restarted after these changes.

This will both prevent the listener from registering against ONS (Oracle Notification Services), which is the area affected by bug:4518443, as well as disable ONS itself. For more information on ONS, please refer to the specific Oracle documentation, for example, for 10.2, see the Oracle10g Release 2 Oracle Clusterware and Oracle Real Application Clusters Administration and Deployment Guide.

Please note, that adding the SUBSCRIBE_FOR_NODE_DOWN_EVENT_<listener_name> to listener.ora file on RAC and disabling the ONS file, will mean that FAN (fast application notification) will not be possible. See Note 220970.1 RAC: Frequently Asked Questions for further information on FAN. Therefore, if you have a RAC configuration, then apply the patch and do not disable ONS or FAN.

Also, please note that this might happen with ANY 10g installation, whether it is RAC related or not, and whether there is an Oracle Application installation or not.

Patches
Apply Patch 4518443 for the problem (if a patch is available)

Modification History

References

Related

--------------------------------------------------------------------------------
Products
--------------------------------------------------------------------------------

Oracle Database Products > Oracle Database > Net Services > Oracle Net Services
Keywords
--------------------------------------------------------------------------------
INTERMITTENT; TNSLSNR; HIGH CPU USAGE; LISTENER HANGS; NOTIFICATION SERVICES

Back to top

Rate this document
   Article Rating
Rate this document
Excellent
Good
Poor
 
Did this document help you?
Yes
No
Just browsing
 
How easy was it to find this document?
Very easy
Somewhat easy
Not easy
  Comments
Provide feedback for this article. Please use 'Contact Us' for other feedback.
Important Note: this feedback is anonymously visible to other customers until processed by Oracle Support.
 
 
Cancel

转载于:https://blog.51cto.com/fjxsunmit/739977

【Oracle 10201 lsnrctl status卡住问题解决】相关推荐

  1. oracle监听显示未成功_理解 oracle 的 lsnrctl status

    理解 oracle 的 "lsnrctl status" 先看看 lsnrctl status 的输出信息: Services Summary... Service "P ...

  2. Oracle:lsnrctl status无监听

    lsnrctl status 无监听 Problem 一. 二. 三. Problem 这里的问题就是:每次重启电脑之后,oracle没有设置开机自启,lsnrctl status 也没有启动监听,就 ...

  3. show status. oracle,oracle命令lsnrctl status详细介绍

    在启动.关闭或者重启oracle监听器之前确保使用lsnrctl status命令检查oracle监听器的状态: 1.$lsnrctl status:检查当前监听器的状态 2.$lsnrctl sta ...

  4. oracle Instance status: READY–lsnrctl status|start|stop

    监听器启动,并不一定会认识数据库实例,启动监听器,请判别相关实例是否 READY [oracle@redhat4 ~]$ lsnrctl status LSNRCTL for Linux: Versi ...

  5. oracle lsnrctl status unknown,数据库监听卡住 Oracle lsnrctl status 卡在connecting ......

    客户端显示 "TNS 连接超时" 运行lsnrctl status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST= ...

  6. oracle卡在started状态,Lsnrctl status/start 卡住问题及解决办法

    Lsnrctl status/start hangs 转载请注明出处:http://blog.csdn.net/xiaofan23z Environment: HPUX B11.31 + oracle ...

  7. ubuntu oracle 10g 安装,Ubuntu 12.04 安装Oracle 10g 全过程(完美)及问题解决办法

    PS:Ubuntu 12.04 安装Oracle 10g 全过程(完美)及问题解决办法正常情况下,完美无错..如果遇到问题,也有解决办法 1.安装前准备工作 1.1 到oracle官网下载适合自己电脑 ...

  8. Oracle listener lsnrctl

    lsnrctl(Listener Control)是一家SQL*Net具,用于控制数据库listener,此工具提供了控制命令listener开端.停止,查看listener状态,更改listener ...

  9. oracle 修改lsnrctl,ORACLE LSNRCTL密码及忘记密码处理

    Oracle lsnrctl设置密码 如何给监听器设置密码,提防被其他用户关掉监听器?以下是给监听器设置密码的步骤: 进入LSNRCTL: 1.设置监听器的口令.默认口令为空. LSNRCTL> ...

最新文章

  1. NBT:宏基因组二、三代混合组装软件OPERA-MS
  2. 作图像处理时常用的C/C++语句积累!
  3. 题库练习5(句子逆序、字符串排序、int型二进制表示中1的个数、购物单)
  4. 二分查找(划分时左右元素个数不相等)解析+代码
  5. 莫烦Pytorch神经网络第三章代码修改
  6. 解决安装phpstudy之后启动Apache失败的问题
  7. C#中winform使用相对路径读取文件的方法
  8. css实现动态阴影、蚀刻文本、渐变文本
  9. 【代码优化】构造器参数繁多时候,考虑使用builder模式
  10. 平面一般力系最多可以求解_利用平面一般力系的平衡方程最多可求解几个未知量。( )...
  11. 会员管理系统单机版哪里有?
  12. 防止多次快速点击打开多个activity的问题
  13. 当当卓越京东商城货物配送流程揭秘
  14. c语言vc是什么意思,这个VC语句是什么意思
  15. 一步一步教你安装MySQL
  16. 前端中DOM是什么,怎样理解dom
  17. python编程处理excel数据_python实现对excel进行数据剔除操作实例
  18. 麦肯锡问题分析与解决技巧 - 高杉尚孝
  19. html 创建一个正方形,css 如何设置带有正方形项目的列表
  20. 高品质回音消除,噪音抑制语音处理芯片—ATH8806

热门文章

  1. 蓝绿部署、滚动部署、灰度发布、金丝雀发布-概念介绍---应用部署001
  2. Elasticsearch--进阶-match全文检索---全文检索引擎ElasticSearch工作笔记011
  3. Netty工作笔记0062---WebSocket长连接开发
  4. Netty工作笔记0033---Netty概述
  5. SpringCloud工作笔记080---了解一下CXF
  6. 微信公众开放平台开发05---jetty部署异常:rg.apache.jasper.JasperException: PWC6345: There is an error in invoking ja
  7. 2015年 4月2号的日志
  8. 面试题(用栈代替队列的操作和原生map实现)
  9. 随想录(嵌入式工程师的出路)
  10. 机器学习与计算机视觉(开篇)