0

0

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

php中文网

php中文网

发布时间:2016-06-07 16:49:28

|

1372人浏览过

|

来源于php中文网

原创

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

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

居然设计家
居然设计家

居然之家和阿里巴巴共同打造的家居家装AI设计平台

下载

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:\Users\oracle>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:\app\mxq\product\11.2.0\dbhome_1\network\admin\sqlnet.ora

本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

相关专题

更多
Word 字间距调整方法汇总
Word 字间距调整方法汇总

本专题整合了Word字间距调整方法,阅读下面的文章了解更详细操作。

2

2025.12.24

任务管理器教程
任务管理器教程

本专题整合了任务管理器相关教程,阅读下面的文章了解更多详细操作。

2

2025.12.24

AppleID格式
AppleID格式

本专题整合了AppleID相关内容,阅读专题下面的文章了解更多详细教程。

0

2025.12.24

csgo视频观看入口合集
csgo视频观看入口合集

本专题整合了csgo观看入口合集,阅读下面的文章了知道更多入口地址。

29

2025.12.24

yandex外贸入口合集
yandex外贸入口合集

本专题汇总了yandex外贸入口地址,阅读下面的文章了解更多内容。

58

2025.12.24

添加脚注通用方法
添加脚注通用方法

本专题整合了添加脚注方法合集,阅读专题下面的文章了解更多内容。

1

2025.12.24

重启电脑教程汇总
重启电脑教程汇总

本专题整合了重启电脑操作教程,阅读下面的文章了解更多详细教程。

3

2025.12.24

纸张尺寸汇总
纸张尺寸汇总

本专题整合了纸张尺寸相关内容,阅读专题下面的文章了解更多内容。

5

2025.12.24

Java Spring Boot 微服务实战
Java Spring Boot 微服务实战

本专题深入讲解 Java Spring Boot 在微服务架构中的应用,内容涵盖服务注册与发现、REST API开发、配置中心、负载均衡、熔断与限流、日志与监控。通过实际项目案例(如电商订单系统),帮助开发者掌握 从单体应用迁移到高可用微服务系统的完整流程与实战能力。

1

2025.12.24

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
相关推荐
/
热门推荐
/
最新课程
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号