首页 新闻 会员 周边

oracle 监听

0
悬赏园豆:15 [已关闭问题] 关闭于 2018-12-29 17:46

问题: 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

192.168.141.21 localhost.localdomain

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

原因应该是它读的ip是HOST=192.168.141.10,但不知道它是从哪里读到的这个ip

请知道的同学看一下呀~

shanhuiming的主页 shanhuiming | 初学一级 | 园豆:23
提问于:2018-12-28 12:49
< >
分享
所有回答(1)
0

1.oracle监听启动读取的地址来自系统命令hostname,但是hostname错了
2.关闭防火墙

shanhuiming | 园豆:23 (初学一级) | 2018-12-29 17:45
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册