免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 348 | 回复: 0
打印 上一主题 下一主题

[RAC] Oracle11g RAC 修改scanip [复制链接]

论坛徽章:
3
黄金圣斗士
日期:2015-12-01 13:27:34IT运维版块每日发帖之星
日期:2016-04-30 06:20:0015-16赛季CBA联赛之福建
日期:2018-08-10 14:38:43
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2024-08-15 10:02 |只看该作者 |倒序浏览
本帖最后由 venux 于 2024-08-15 10:03 编辑

RAC安装完成,一切使用都正常,但是在测试修改scanip的时候,IP显示是切换了,但是启动listener_scan1之后,查看状态总是The listener supports no services,没有服务,执行alter system register也没有用,必须两个节点重启crs之后,才能发现服务。但是我在网上找的所有资料,好像大家都没有重启crs,有没有人知道这个问题。
节点1
  1. [root@racdb01 app]#  cat /oracle/app/11.2.0/grid/network/admin/listener.ora
  2. LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))                # line added by Agent
  3. LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))))                # line added by Agent
  4. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON                # line added by Agent
  5. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON                # line added by Agent
  6. VALID_NODE_CHECKING_REGISTRATION_LISTENER_SCAN1 = OFF
复制代码

节点2
  1. [root@racdb02 app]#  cat /oracle/app/11.2.0/grid/network/admin/listener.ora
  2. LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))                # line added by Agent
  3. LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))))                # line added by Agent
  4. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON                # line added by Agent
  5. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON                # line added by Agent
  6. VALID_NODE_CHECKING_REGISTRATION_LISTENER_SCAN1 = OFF
复制代码

修改IP之后执行
#lsnrctl status LISTENER_SCAN1
总是提示no services

  1. LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 15-AUG-2024 08:50:46

  2. Copyright (c) 1991, 2013, Oracle.  All rights reserved.

  3. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
  4. STATUS of the LISTENER
  5. ------------------------
  6. Alias                     LISTENER_SCAN1
  7. Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
  8. Start Date                15-AUG-2024 08:35:29
  9. Uptime                    0 days 0 hr. 15 min. 16 sec
  10. Trace Level               off
  11. Security                  ON: Local OS Authentication
  12. SNMP                      OFF
  13. Listener Parameter File   /oracle/app/11.2.0/grid/network/admin/listener.ora
  14. Listener Log File         /oracle/app/11.2.0/grid/log/diag/tnslsnr/racdb02/listener_scan1/alert/log.xml
  15. Listening Endpoints Summary...
  16.   (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
  17.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=正确的IP)(PORT=1521)))
  18. The listener supports no services
  19. The command completed successfully
复制代码
重启2台crs之后
  1. Services Summary...
  2. Service "testdb" has 2 instance(s).
  3.   Instance "testdb1", status READY, has 1 handler(s) for this service...
  4.   Instance "testdb2", status READY, has 1 handler(s) for this service...
  5. Service "testdbXDB" has 2 instance(s).
  6.   Instance "testdb1", status READY, has 1 handler(s) for this service...
  7.   Instance "testdb2", status READY, has 1 handler(s) for this service...
  8. The command completed successfully
复制代码




您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP