linux oracle10.2.0.1 lsnrctl无法启动

故障现象: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 Size Started Parent
-----------------------------------------------------------------------------------------------
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 identified in its own $ORACLE_HOME/opmn/conf/ons.config. When 10g(iAS) and 10g(rdbms) are installed on the same box, the installer will mistakenly configure identical ONS ports in both homes which creates an operational conflict when both the 10g(iAS) ONS and 10g(rdbms) listener services are running.

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 <<4518443>>)

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_<listener_name>=OFF

where <listener_name> 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

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/548793.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Xshell使用root用户连接Linux

遇到问题&#xff1a; 我在本地使用 Xftp 向远程 Linux 服务器上传文件时&#xff0c;显示状态 “错误”&#xff0c;经过上网查询说&#xff0c;需要 Xshell 使用 root 用户远程登录才可以传输文件。我的 Linux 服务器系统为 Ubuntu 的系统&#xff0c;本地 Xshell 用 root 用…

检测Java对象所占内存大小 (转载)

2019独角兽企业重金招聘Python工程师标准>>> Dont pay the price for hidden class fields By Vladimir Roubtsov, JavaWorld.com, 08/16/02 Recently, I helped design a Java server application that resembled an in-memory database. That is, we biased the d…

股价涨跌分析程序

http://www.iteye.com/topic/1114623

Xftp上传文件显示状态错误

遇到问题&#xff1a; 我在本地使用 Xftp 向远程 Linux 服务器上传文件时&#xff0c;显示状态 “错误”&#xff0c;经过上网查询说&#xff0c;需要 Xshell 使用 root 用户远程登录才可以传输文件。 问题产生原因&#xff1a; sshd 默认设置不允许 root 用户远程登录&…

田老的语录

1.年轻人&#xff0c;应该充满活力&#xff0c;不应该是对世界充满仇恨和黑暗的&#xff0c;我们始终要相信世界是美好的&#xff0c;生活是美好的&#xff01; 2.技术是很容易学会的&#xff0c;只要你真的用心去学&#xff0c;没什么技术是学不会的&#xff01; 3.我们学一样…

图形处理工具:Photoshop Elements 2020 mac介绍说明

Photoshop Elements 2020 mac简称ps elements 2020&#xff0c;是一款图形处理工具。ps elements 2020 mac可以帮助您自动生成照片和视频作品的功能&#xff0c;采用Sensei AI技术可进行图像组织、编辑和创建等。Photoshop Elements 2020 可以帮助您轻松整理照片和视频&#xf…

Linux版本tomcat下载及安装

下载&#xff1a; ssm war 就需要放在tomcat中运行。 下载地址&#xff1a;http://www.apache.org/ 打开之后进入了Apache官网界面&#xff1a; 一直往下拉&#xff0c;找到我们要的Tomcat 点击tomcat进入其主页面&#xff1a; http://tomcat.apache.org/ 找到我们要下载的版…

Linux版本JDK1.8下载与安装

下载&#xff1a; 网上有很多网盘版的&#xff0c;我为了便于以后看更新&#xff0c;这里上官网下。 地址&#xff1a; https://www.oracle.com/java/technologies/javase-downloads.html 进入这个页面可以看见各个版本的&#xff0c;往下划找到我要的JDK1.8的 点击JDK Downl…

关于多线程编程您不知道的 5 件事 有关高性能线程处理的微妙之处

虽然很少有 Java™ 开发人员能够忽视多线程编程和支持它的 Java 平台库&#xff0c;更少有人有时间深入研究线程。相反地&#xff0c;我们临时学习线程&#xff0c;在需要时向我们的工具箱添加新的技巧和技术。以这种方式构建和运行适当的应用程序是可行的&#xff0c;但是您可…

Ubuntu作为服务器其tomcat被远程访问问题

根据我的Linux版本tomcat下载及安装安装好tomcat之后&#xff0c;但是还不能直接访问我 ubuntu 服务器的公网 ip&#xff0c; 即http://xxx.xxx.xxx.xxx:8080访问不到 Apache tomcat主页&#xff0c;还需要进行配置。 一、在路由器管理页面配置转发规则 如果你和我一样&#…

c#界面鼠标拖动

之前做过拖动&#xff0c;找了两种方法&#xff1a; 1、 private Point myPoint; private void Form1_MouseMove(object sender, MouseEventArgs e) { if (e.Button MouseButtons.Left) { Point myPosition Co…

没有已启用的仓库。 执行 “yum repolist all“ 查看您拥有的仓库。

问题描述&#xff1a; yum是RPM的前端程序&#xff0c;对于多软件安装时非常好用&#xff0c;在虚拟机中想要安装什么软件都可以使用yum install 软件来快速调用仓库安装&#xff0c;但是我初次使用这个命令的时候一直报错&#xff0c;显示 没有已启用的仓库。 执行 “yum rep…

解决ubuntu上网慢

Ubuntu上网慢?没错!不要再怀疑&#xff0c;Ubuntu上网的确要比Windows下慢。慢在哪里呢?在Ubuntu 9.10下使用Firefox浏览网页的时候你会发现&#xff0c;左下角的状态栏里&#xff0c;长时间的显示&#xff1a;Looking up xxxx.com.... 或者 Connecting to xxxx.com 的信息。…

最老程序员创业札记:全文检索、数据挖掘、推荐引擎应用33

快刀斩乱麻第二天一大早&#xff0c;吴言就准备去找老乡打听梁秀娟的行踪&#xff0c;虽然他从心里觉得小A和梁秀娟最近的做法都不对&#xff0c;但是他说不清为什么&#xff0c;也不愿意他们这样闹下去&#xff0c;到头来两败俱伤。在老乡之中&#xff0c;吴言首先想到的是自己…

Linux下安装Redis

下载安装包 Linux版本下载地址&#xff1a; Redis中文官方网站&#xff1a;http://www.redis.cn/ 点击箭头处即可下载tar.gz文件。 安装 1、上传文件到linux服务器上 我是使用Xshell远程安装到linux服务器&#xff0c;所以先使用xftp把安装包上传到服务器指定目录下 2、…

windows安装双JDK并实现版本切换

我本来只有一个JDK11&#xff0c;后来因为要用到jdk8&#xff0c;但是我又不想卸载掉11&#xff0c;于是想到了jdk共存&#xff0c;根据百度经验操作作了如下一通操作&#xff1a; 1、删除java.exe,javac.exe,javaw.exe 首先&#xff0c;jdk11会自动在 C:\Program Files\Comm…

三大最被低估的安全技术 用户数量决定一切

以下就是今天安全业界普遍人们被低估的技术。由于有些安全专业人士认为很神奇的工具可能在别人看来是预算上的浪费&#xff0c;所以如果一种技术同时出现在被高估和低估的名单里也就不足为奇了。 白名单 应用安全是一些企业越来越担心的问题&#xff0c;因为企业和个人的应用越…

Jedis使用测试——连接本地及远程的Redis

我们要使用Java来操作Redis&#xff0c;就要学会使用Jedis 一、什么是jedis 是Redis官方推荐的java连接开发工具&#xff01;使用Java操作Redis 中间件!如果你要使用java操作redis&#xff0c;那么一定要对Jedis十分的熟悉! 二、测试 新建一个空的工程&#xff0c;然后新建一…

NetBeans IDE 7.1 Window Layout Designer

http://blogs.oracle.com/geertjan/entry/netbeans_ide_7_1_window——————————————————————————————————————————————————————————————————In 7.1, youll see this in the New File dialog: I.e., as you ca…

org.springframework.data.redis.serializer.SerializationException: Cannot serialize;

错误&#xff1a; . ____ _ __ _ _/\\ / ____ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | _ | _| | _ \/ _ | \ \ \ \\\/ ___)| |_)| | | | | || (_| | ) ) ) ) |____| .__|_| |_|_| |_\__, | / / / /|_||___//_/_/_/:: Spring Boot :: …