设为首页 收藏本站
查看: 449|回复: 0

[经验分享] linux oracle10.2.0.1 lsnrctl无法启动

[复制链接]

尚未签到

发表于 2018-9-22 10:03:24 | 显示全部楼层 |阅读模式
  故障现象:lsnrctl stat后即无任何反应,而SQLPLUS正常:
  [oracle@wlserver3 ~]$ lsnrctl stat
  LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 13-SEP-2011 23:16:11
  Copyright (c) 1991, 2005, Oracle.  All rights reserved.
  Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
  尝试ps -ef|grep lsnrctl后kill -9 杀进程,但杀后重启时也碰到同样问题
  尝试ps -ef|grep lsnr(注意和上述命令的区别少了ctl)后kill -9 杀进程,后重启成功
  [root@wlserver3 admin]# ps -ef|grep lsnr
  oracle    3067 16807  0 Sep10 ?        00:00:01 /oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inherit
  oracle   16807     1  0 Jul08 ?        00:02:07 /oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inherit
  oracle   18378 18350  0 Sep13 pts/1    00:00:00 lsnrctl stat
  oracle   18386 18350  0 Sep13 pts/1    00:00:00 lsnrctl stat
  oracle   18423 18350  0 Sep13 pts/1    00:00:00 lsnrctl stat
  root     19686 18480  0 01:18 pts/3    00:00:00 grep lsnr
  [root@wlserver3 admin]# kill -9 3067
  [root@wlserver3 admin]# kill -9 16807
  重启成功:
  oracle@wlserver3 bdump]$ lsnrctl start
  LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 14-SEP-2011 01:21:35
  Copyright (c) 1991, 2005, Oracle.  All rights reserved.
  Starting /oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
  TNSLSNR for Linux: Version 10.2.0.1.0 - Production
  System parameter file is /oracle/product/10.2.0/db_1/network/admin/listener.ora
  Log messages written to /oracle/product/10.2.0/db_1/network/log/listener.log
  Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
  Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
  Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
  STATUS of the LISTENER
  ------------------------
  Alias                     LISTENER
  Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
  Start Date                14-SEP-2011 01:21:37
  Uptime                    0 days 0 hr. 0 min. 0 sec
  Trace Level               off
  Security                  ON: Local OS Authentication
  SNMP                      OFF
  Listener Parameter File   /oracle/product/10.2.0/db_1/network/admin/listener.ora
  Listener Log File         /oracle/product/10.2.0/db_1/network/log/listener.log
  Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
  Services Summary...
  Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
  The command completed successfully
  [oracle@wlserver3 bdump]$
  补充:处理过程中看到过一个10.2.0.1环境下的BUG,也一并修复掉了
  10g Listener: High CPU Utilization - Listener May Hang [ID 284602.1]
  Symptoms
  1) If the listener is hanging, a sqlnet trace (level 16) will show that the last operation was a fork.
  [000068 28-SEP-2004 14:16:17:398] sntpcall: entry
  [000068 28-SEP-2004 14:16:17:401] sntpcall: detaching from parent with additional fork 68 bytes to NS buffer
  2) netstat -na reports numerous (maybe thousands) of sockets associated with port 6100 in a TIME_WAIT status
  127.0.0.1.6100 127.0.0.1.55228 49152 0 49152 0 TIME_WAIT
  127.0.0.1.6100 127.0.0.1.55229 49152 0 49152 0 TIME_WAIT
  127.0.0.1.6100 127.0.0.1.55230 49152 0 49152 0 TIME_WAIT
  127.0.0.1.6100 127.0.0.1.55231 49152 0 49152 0 TIME_WAIT
  127.0.0.1.6100 127.0.0.1.55232 49152 0 49152 0 TIME_WAIT
  3) "sdtprocess" (Solaris), or "top" show that the listener process (tnslsnr) is using a large amount of cpu.

  ID Name Owner CPU% RAM>  -----------------------------------------------------------------------------------------------
  21145 tnslsnr mseibt 44 9440 22368 13:36:03 1 /u01/app/oracle/product/10.1.0/bin/tnslsnr LISTENER -inherit
  4) The 10g(iAS) $ORACLE_HOME/opmn/log on the same system shows the following repeating error in the ons logs:
  04/10/01 13:30:43 [4] Local connection 0,127.0.0.1,6100 missing form factor
  04/10/01 13:30:43 [4] Local connection 0,127.0.0.1,6100 missing form factor
  04/10/01 13:30:43 [4] Local connection 0,127.0.0.1,6100 missing form factor
  04/10/01 13:30:43 [4] Local connection 0,127.0.0.1,6100 missing form factor
  04/10/01 13:30:43 [4] Local connection 0,127.0.0.1,6100 missing form factor
  Changes
  - Both 10g(iAS) and Oracle 10g(rdbms) are installed on the same system.
  - Oracle 10g (non-RAC) is installed on a system with or without other Oracle installations.
  Cause

  The Oracle Notification Server (ONS) running in the 10g(iAS) home uses the ports defined in $ORACLE_HOME/opmn/conf/ons.config. The database listener, which is an ONS client, also utilizes the ONS ports>  In non-RAC environments where Oracle 10g is the only Oracle product on the system, the existence of the ons.config may still cause a hang condition in the listener.
  Solution
  This issue is corrected in versions 10.2.0.3 and higher.
  (or apply backport patch )
  You may also use either of the following 2 workarounds to address this problem:
  1)  In the 10g(rdbms) home, rename the $ORACLE_HOME/opmn/conf/ons.config file (so that the listener does not find or use it).
  For example:
  cd $ORACLE_HOME/opmn/conf
  mv ons.config ons.config.orig
  (then restart the listener)
  - or -
  2)  Explicitly disable the 10g TNS Listener from subscribing to the ONS.
  Edit the active 10g  listener.ora file and add the parameter below:
  SUBSCRIBE_FOR_NODE_DOWN_EVENT_=OFF
  where  would be replaced with the actual listener name configured in the listener.ora file.
  For example, if the listener name is LISTENER (default), the parameter would be:
  SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
  (then restart the listener)
  References
  BUG:3881276 - LISTENER HANGS INTERMITTANTLY AFTER APPLYING 10.1.0.3 PATCHSET
  BUG:6017068 - PMON SPINNING IN NETWORKING CODE


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-599802-1-1.html 上篇帖子: Oracle 11g删除 下篇帖子: EXP-00008: 遇到 ORACLE 错误 904 ORA-01003
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表