- 论坛徽章:
- 1
|
本帖最后由 y331044508 于 2013-07-25 17:17 编辑
- 配置需求:
- oracle rac(2个节点)初始安装时配置了一个SCAN ip地址,安装完成之后,想给SCAN里面再添加2个IP地址
- SCAN的域名是通过DNS来解析的,已经可以正常解析.
- Name: racdb-cluster-scan
- Address: 10.2.0.246
- Name: racdb-cluster-scan
- Address: 10.2.0.239
- Name: racdb-cluster-scan
- Address: 10.2.0.245
- 问题:三个IP地址通过命令srvctl modify scan -n racdb-cluster-scan已经可以顺利添加成功
- SCAN的服务也可以正常启动,但在启动scna_listener时报错;
- 操作系统与oracle版本:
- Version 11.2.0.1.0
- Red Hat Enterprise Linux Server release 5.6 (Tikanga)
- listener.ora配置文件
- -bash-3.2$ id
- uid=1100(grid) gid=1000(oinstall) groups=1000(oinstall),1100(asmadmin),1300(asmdba),1400(asmoper)
- -bash-3.2$ cat listener.ora
- LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
- LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent
- LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))) # 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
- ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent
- ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON # line added by Agent
- 以下是整个配置过程:
- [root@racdb1 ~]# nslookup racdb-cluster-scan
- Server: 10.2.0.132
- Address: 10.2.0.132#53
- Name: racdb-cluster-scan
- Address: 10.2.0.246
- Name: racdb-cluster-scan
- Address: 10.2.0.239
- Name: racdb-cluster-scan
- Address: 10.2.0.245
- [root@racdb1 bin]#
- [root@racdb1 bin]# srvctl status scan
- SCAN VIP scan1 已启用
- SCAN VIP scan1 正在节点 racdb2 上运行
- [root@racdb1 bin]# srvctl status scan_listener
- SCAN 监听程序 LISTENER_SCAN1 已启用
- SCAN 监听程序 LISTENER_SCAN1 正在节点 racdb2 上运行
- [root@racdb1 bin]#
- [root@racdb1 bin]# srvctl config scan
- SCAN 名称: racdb-cluster-scan, 网络: 1/10.2.0.0/255.255.255.0/eth0
- SCAN VIP 名称: scan1, IP: /racdb-cluster-scan/10.2.0.239
- [root@racdb1 bin]# srvctl config scan_listener
- SCAN 监听程序 LISTENER_SCAN1 已存在。端口: TCP:1521
- [root@racdb1 bin]#
- [root@racdb1 bin]# srvctl stop scan_listener
- [root@racdb1 bin]# srvctl stop scan
- [root@racdb1 bin]#
- [root@racdb1 bin]# srvctl modify scan -n racdb-cluster-scan
- [root@racdb1 bin]#
- [root@racdb1 bin]# srvctl config scan
- SCAN 名称: racdb-cluster-scan, 网络: 1/10.2.0.0/255.255.255.0/eth0
- SCAN VIP 名称: scan1, IP: /racdb-cluster-scan/10.2.0.245
- SCAN VIP 名称: scan2, IP: /racdb-cluster-scan/10.2.0.246
- SCAN VIP 名称: scan3, IP: /racdb-cluster-scan/10.2.0.239
- [root@racdb1 bin]#
- [root@racdb1 bin]# srvctl start scan
- [root@racdb1 bin]#
- [root@racdb1 bin]# srvctl status scan
- SCAN VIP scan1 已启用
- SCAN VIP scan1 正在节点 racdb2 上运行
- SCAN VIP scan2 已启用
- SCAN VIP scan2 正在节点 racdb1 上运行
- SCAN VIP scan3 已启用
- SCAN VIP scan3 正在节点 racdb1 上运行
- [root@racdb1 bin]#
- [root@racdb1 bin]#
- [root@racdb1 bin]# srvctl start scan_listener
- PRCR-1079 : 无法启动资源 ora.LISTENER_SCAN1.lsnr
- CRS-5016: 进程 "/u01/app/11.2.0/grid/bin/lsnrctl" (由代理 "/u01/app/11.2.0/grid/bin/oraagent.bin" 衍生, 用于操作 "start") 失败: 详细信息见 "(:CLSN00010:)" (位于 "/u01/app/11.2.0/grid/log/racdb2/agent/crsd/oraagent_grid/oraagent_grid.log")
- LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 25-7月 -2013 16:53:22
- Copyright (c) 1991, 2009, Oracle. All rights reserved.
- 正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
- TNS-12541: TNS: 无监听程序
- TNS-12560: TNS: 协议适配器错误
- TNS-00511: 无监听程序
- Linux Error: 111: Connection refused
- CRS-2674: 未能启动 'ora.LISTENER_SCAN1.lsnr' (在 'racdb2' 上)
- CRS-5016: 进程 "/u01/app/11.2.0/grid/bin/lsnrctl" (由代理 "/u01/app/11.2.0/grid/bin/oraagent.bin" 衍生, 用于操作 "start") 失败: 详细信息见 "(:CLSN00010:)" (位于 "/u01/app/11.2.0/grid/log/racdb1/agent/crsd/oraagent_grid/oraagent_grid.log")
- LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 25-7月 -2013 16:53:30
- Copyright (c) 1991, 2009, Oracle. All rights reserved.
- 正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
- TNS-12541: TNS: 无监听程序
- TNS-12560: TNS: 协议适配器错误
- TNS-00511: 无监听程序
- Linux Error: 111: Connection refused
- CRS-2674: 未能启动 'ora.LISTENER_SCAN1.lsnr' (在 'racdb1' 上)
- CRS-2632: 没有更多符合资源 'ora.LISTENER_SCAN1.lsnr' 的布局策略的服务器来尝试放置该资源
- [root@racdb1 bin]#
复制代码 帖子发错版块了,,,实在是抱歉。。。 |
|