问题: Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
报错内容
[oracle@192 ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 28-DEC-2018 12:34:34
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /opt/oracle/product/OraHome/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /opt/oracle/product/OraHome/network/admin/listener.ora
Log messages written to /opt/oracle/diag/tnslsnr/192/listener/<span>alert</span>/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.141.21)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.141.21)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 28-DEC-2018 12:34:34
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/product/OraHome/network/admin/listener.ora
Listener Log File /opt/oracle/diag/tnslsnr/192/listener/<span>alert</span>/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.141.21)(PORT=1521)))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
监听文件:/opt/oracle/product/OraHome/network/admin/listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /opt/oracle/product/OraHome)
(SID_NAME = orcl)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.141.21)(PORT = 1521))
)
ADR_BASE_LISTENER = /opt/oracle
监听日志: /opt/oracle/diag/tnslsnr/192/listener/<span>alert</span>/log.xml:
<msg time='2018-12-28T12:34:34.579+08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='192.168.141.10'
host_addr='192.168.141.10'>
<txt>28-DEC-2018 12:34:34 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=192.168.141.10)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * status * 0
</txt>
</msg>
host配置:/etc/hosts:
127.0.0.1 localhost
192.168.141.21 bogon
原因应该是它读的ip是HOST=192.168.141.10,但不知道它是从哪里读到的这个ip
请知道的同学看一下呀~
1.oracle监听启动读取的地址来自系统命令hostname,但是hostname错了
2.关闭防火墙