ORACLE监听能正常启动,但实例监听不到故障应急处理一例
原创
©著作权归作者所有:来自51CTO博客作者zylhsy的原创作品,请联系作者获取转载授权,否则将追究法律责任
故障现象:监听能正常启动,但两个实例均未能监听到
[oracle@L-DB-100-17 ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 07-1月 -2002 14:29:33
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.100.17)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date 07-1月 -2002 14:03:45
Uptime 0 days 0 hr. 25 min. 47 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.100.17)(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
故障处理:
1、修改HOST地址
[oracle@L-DB-100-17 admin]$ vi listener.ora
修改IP地址为0.0.0.0,"HOST=0.0.0.0"
2、重启lsnrclt
[oracle@L-DB-100-17 admin]$ lsnrctl stop
LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 07-1月 -2002 14:31:24
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
The command completed successfully
[oracle@L-DB-100-17 admin]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 07-1月 -2002 14:31:37
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Starting /u01/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.4.0 - Production
System parameter file is /u01/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date 07-1月 -2002 14:31:37
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(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
3、状态已经正常
[oracle@L-DB-100-17 admin]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 07-1月 -2002 14:32:57
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date 07-1月 -2002 14:31:37
Uptime 0 days 0 hr. 1 min. 19 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(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...
Service "port" has 1 instance(s).
Instance "port", status READY, has 1 handler(s) for this service...
Service "portXDB" has 1 instance(s).
Instance "port", status READY, has 1 handler(s) for this service...
Service "port_XPT" has 1 instance(s).
Instance "port", status READY, has 1 handler(s) for this service...
Service "portutf8" has 1 instance(s).
Instance "portutf8", status READY, has 1 handler(s) for this service...
Service "portutf8XDB" has 1 instance(s).
Instance "portutf8", status READY, has 1 handler(s) for this service...
Service "portutf8_XPT" has 1 instance(s).
Instance "portutf8", status READY, has 1 handler(s) for this service...
The command completed successfully
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
oracle 单机多实例启动登录
oracle 单机多实例启动登录
oracle SQL 远程登录 -
Android电池状态监听实例1
文件1:strings.xml
android xml ico -
oracle 多实例监听配置方式
oracle 多实例监听配置方式
oracle 职场 休闲 -
PLSQL Developer登录Oracle时 报ORA-12541:TNS:无监听程序
cle\product\10.2.0\...
数据库 网络 端口号 Developer 解决方案 -
zabbixagentf未知状态 zbbz未知命令
1.快速跳转命令 - z要是每次都要进入一个目录很深的文件夹下,像下面这样: # cd /root/py/auto/fabric 每次都要输入好多个目录名是不是很烦躁,下面有一个非常方便的操作可以取代它 一 z 命令: z 的源码在这里:https://github.com/rupa/z/blob/master/z.sh 你只需要把源码复制到用户目录下的 z.sh
zabbixagentf未知状态 linux unzip命令不存在 linux不保存退出命令 vim mysql