- 论坛徽章:
- 3
|
本帖最后由 venux 于 2024-08-15 10:03 编辑
RAC安装完成,一切使用都正常,但是在测试修改scanip的时候,IP显示是切换了,但是启动listener_scan1之后,查看状态总是The listener supports no services,没有服务,执行alter system register也没有用,必须两个节点重启crs之后,才能发现服务。但是我在网上找的所有资料,好像大家都没有重启crs,有没有人知道这个问题。
节点1
- [root@racdb01 app]# cat /oracle/app/11.2.0/grid/network/admin/listener.ora
- LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
- LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
- ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
- ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
- VALID_NODE_CHECKING_REGISTRATION_LISTENER_SCAN1 = OFF
复制代码
节点2- [root@racdb02 app]# cat /oracle/app/11.2.0/grid/network/admin/listener.ora
- LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
- LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
- ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
- ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
- VALID_NODE_CHECKING_REGISTRATION_LISTENER_SCAN1 = OFF
复制代码
修改IP之后执行
#lsnrctl status LISTENER_SCAN1
总是提示no services
- LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 15-AUG-2024 08:50:46
- Copyright (c) 1991, 2013, Oracle. All rights reserved.
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
- STATUS of the LISTENER
- ------------------------
- Alias LISTENER_SCAN1
- Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
- Start Date 15-AUG-2024 08:35:29
- Uptime 0 days 0 hr. 15 min. 16 sec
- Trace Level off
- Security ON: Local OS Authentication
- SNMP OFF
- Listener Parameter File /oracle/app/11.2.0/grid/network/admin/listener.ora
- Listener Log File /oracle/app/11.2.0/grid/log/diag/tnslsnr/racdb02/listener_scan1/alert/log.xml
- Listening Endpoints Summary...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=正确的IP)(PORT=1521)))
- The listener supports no services
- The command completed successfully
复制代码 重启2台crs之后
- Services Summary...
- Service "testdb" has 2 instance(s).
- Instance "testdb1", status READY, has 1 handler(s) for this service...
- Instance "testdb2", status READY, has 1 handler(s) for this service...
- Service "testdbXDB" has 2 instance(s).
- Instance "testdb1", status READY, has 1 handler(s) for this service...
- Instance "testdb2", status READY, has 1 handler(s) for this service...
- The command completed successfully
复制代码
|
|