WEB开发网
开发学院数据库Oracle /etc/hosts/中HOSTNAME错误导致lsnrctl启动错误 阅读

/etc/hosts/中HOSTNAME错误导致lsnrctl启动错误

 2012-08-24 11:04:15 来源:WEB开发网   
核心提示:127.0.0.1 L-DB-100-17 localhost.localdomain localhost::1 localhost6.localdomain6 localhost6通过VI修改HOSTNAME为L-DB-100-27,尝试重启lsnrctl,/etc/hosts/中
127.0.0.1 L-DB-100-17 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6

通过VI修改HOSTNAME为L-DB-100-27,尝试重启lsnrctl,发现启动不了(提示已经启动)。
明明已经lsnrctl stop过,通过ps -ef|grep lsnrctl也未发现相关进程

重启操作系统
shutdown -r now

启动ORACLE服务(正常)

启动监听(正常--问题解决)
[oracle@L-DB-100-27 ~]$ lsnrctl stat

LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 24-8月 -2012 10:46:16

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date 24-8月 -2012 10:45:00
Uptime 0 days 0 hr. 1 min. 15 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=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=L-DB-100-27)(PORT=1521)))
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...
The command completed successfully

上一页  1 2 

Tags:etc hosts HOSTNAME

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接