当前位置:  数据库>oracle

RAC hosts没有配置导致TNS-12541: TNS:no listener

    来源: 互联网  发布时间:2017-06-05

    本文导语: TNS-12541: TNS:no listener 这次错误我总结一下有三种情况 1. 本地监听程序没有开起来 2. 服务器网络到客户端网络不通 3. Hosts里面配置问题 [Oracle@his1 admin]$ tnsping crds3db2  客户端tnsping提示程序无监听 TNS Ping Utility for Linux: Version 11.2....

TNS-12541: TNS:no listener
 这次错误我总结一下有三种情况
 1. 本地监听程序没有开起来
 2. 服务器网络到客户端网络不通
 3. Hosts里面配置问题

[Oracle@his1 admin]$ tnsping crds3db2  客户端tnsping提示程序无监听

TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 28-MAY-2014 11:11:57
 
Copyright (c) 1997, 2010, Oracle.  All rights reserved.

Used parameter files:

Used TNSNAMES adapter to resolve the alias
 Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.8)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = crds3db)))
 TNS-12541: TNS:no listener
 到oracle用户查看监听状态为正常,但是有一个节点1ip没有注册到节点2监听上面
 [oracle@his1 ~]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-MAY-2014 10:56:09

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
 STATUS of the LISTENER
 ------------------------
 Alias                    LISTENER
 Version                  TNSLSNR for Linux: Version 11.2.0.2.0 - Production
 Start Date                28-MAY-2014 10:09:10
 Uptime                    0 days 0 hr. 46 min. 59 sec
 Trace Level              off
 Security                  ON: Local OS Authentication
 SNMP                      OFF
 Listener Parameter File  /app/grid/product/11.2.0/grid/network/admin/listener.ora
 Listener Log File        /app/grid/grid_base/diag/tnslsnr/his1/listener/alert/log.xml
 Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.20.6)(PORT=1521)))
 Services Summary...
 Service "+ASM" has 1 instance(s).
  Instance "+ASM1", status READY, has 1 handler(s) for this service...
 Service "crds3db" has 1 instance(s).
  Instance "crds3db1", status READY, has 1 handler(s) for this service...
 The command completed successfully
 
[root@his1 admin]# vi /etc/hosts
 把里面删除his1 因为两个计算名冲突导致监听只注册到127.0.0.1
 # Do not remove the following line, or various programs
 # that require network functionality will fail.
 127.0.0.1    his1  localhost.localdomain localhost
 #::1            localhost6.localdomain6 localhost6
 192.168.20.1      his1
 192.168.20.2      his2
 192.168.20.5      his-scan
 192.168.20.6      his1-vip
 192.168.20.7      his2-vip
 192.168.20.15      hisdg
 10.0.0.1          his1-priv
 10.0.0.2          his2-priv
 [grid@his2 ~]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-MAY-2014 11:18:14

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
 STATUS of the LISTENER
 ------------------------
 Alias                    LISTENER
 Version                  TNSLSNR for Linux: Version 11.2.0.2.0 - Production
 Start Date                28-MAY-2014 11:06:52
 Uptime                    0 days 0 hr. 11 min. 22 sec
 Trace Level              off
 Security                  ON: Local OS Authentication
 SNMP                      OFF
 Listener Parameter File  /app/grid/product/11.2.0/grid/network/admin/listener.ora
 Listener Log File        /app/grid/grid_base/diag/tnslsnr/his2/listener/alert/log.xml
 Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.20.2)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.20.7)(PORT=1521)))
 Services Summary...
 Service "+ASM" has 1 instance(s).
  Instance "+ASM2", status READY, has 1 handler(s) for this service...
 Service "crds3db" has 1 instance(s).
  Instance "crds3db2", status READY, has 1 handler(s) for this service...
 The command completed successfully
 C:Usersoracle>tnsping crds3db

TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 28-5月 -
 2014 11:32:16

Copyright (c) 1997, 2010, Oracle.  All rights reserved.

已使用的参数文件:
 D:appmxqproduct11.2.0dbhome_1networkadminsqlnet.ora


已使用 TNSNAMES 适配器来解析别名
 尝试连接 (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.1
 68.20.1)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = crds3db)))
 OK (10 毫秒)
 -
 ---THE END---


    
 
 

您可能感兴趣的文章:

 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • Linux下Oracle RAC一个节点宕机导致共享存储无法挂载的故障排除
  • RAC +GPFS添加节点的问题~~~~~~~~~~~~·
  • 配置Oracle RAC需要注意的问题
  • Linux Oracle RAC内核参数
  • Oracle RAC 10.2.0.1升级到10.2.0.4
  • Oracle10201 RAC升级到10204后导出数据时报EXP-00056错误
  • 与Oracle RAC相关的连接配置写法实例
  • [Oracle] RAC 之 - 负载均衡深入解析
  • RAC cache fusion机制实现原理分析
  • 基于Linux平台的Oracle RAC 10g集群教程:删除节点所需要的步骤
  • 如何在RAC环境下修改Oracle字符集
  • Oracle RAC 状态检查
  • Linux Oracle10.2.0 RAC配置注意问题
  • redhat 5.5全新安装oracle rac的问题[1000分]
  • oracle 11g RAC 常用命令整理分享
  • Oracle 10201 RAC升级到10204
  • Redflag Linux安装Oracle 10gR2 RAC记事
  • 基于Linux平台的Oracle RAC 10g集群教程:添加节点所需要的步骤
  • Oracle10g RAC for Linux配置全过程


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,