|
发表于 2014-3-25 11:07:16
|
显示全部楼层
你的host 文件没改吧 。把scan ip信息去掉
- 1、查看当前配置
- [grid@rac1 ~]$ srvctl status scan
- SCAN VIP scan1 is enabled
- SCAN VIP scan1 is running on node rac2
- [grid@rac1 ~]$ srvctl status scan_listener
- SCAN Listener LISTENER_SCAN1 is enabled
- SCAN listener LISTENER_SCAN1 is running on node rac2
- [grid@rac1 ~]$ srvctl config scan
- SCAN name: rac-scan, Network: 1/192.168.2.0/255.255.255.0/eth0
- SCAN VIP name: scan1, IP: /rac-scan.localdomain/192.168.2.201
- [grid@rac1 ~]$ srvctl config scan_listener
- SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
- --host文件
- [grid@rac1 ~]$ more /etc/hosts
- # Public
- 192.168.2.101 rac1.localdomain rac1
- 192.168.2.102 rac2.localdomain rac2
- # Private
- 192.168.0.101 rac1-priv.localdomain rac1-priv
- 192.168.0.102 rac2-priv.localdomain rac2-priv
- # Virtual
- 192.168.2.111 rac1-vip.localdomain rac1-vip
- 192.168.2.112 rac2-vip.localdomain rac2-vip
- # SCAN
- 192.168.2.201 rac-scan.localdomain rac-scan
- [grid@rac1 ~]$
- Validating SCAN on second Node
- [grid@rac2 ~]$ srvctl status scan
- SCAN VIP scan1 is enabled
- SCAN VIP scan1 is running on node rac2
- [grid@rac2 ~]$ srvctl status scan_listener
- SCAN Listener LISTENER_SCAN1 is enabled
- SCAN listener LISTENER_SCAN1 is running on node rac2
- [grid@rac2 ~]$ srvctl config scan
- SCAN name: rac-scan, Network: 1/192.168.2.0/255.255.255.0/eth0
- SCAN VIP name: scan1, IP: /rac-scan.localdomain/192.168.2.201
- [grid@rac2 ~]$ srvctl config scan_listener
- SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
- 2、停止scan
- [grid@rac1 ~]$ srvctl stop scan_listener
- [grid@rac1 ~]$ srvctl stop scan
- [grid@rac1 ~]$ srvctl status scan
- SCAN VIP scan1 is enabled
- SCAN VIP scan1 is not running
- [grid@rac1 ~]$ srvctl status scan_listener
- SCAN Listener LISTENER_SCAN1 is enabled
- SCAN listener LISTENER_SCAN1 is not running
- [grid@rac1 ~]$ srvctl config scan
- SCAN name: rac-scan, Network: 1/192.168.2.0/255.255.255.0/eth0
- SCAN VIP name: scan1, IP: /rac-scan.localdomain/192.168.2.201
- [grid@rac1 ~]$ srvctl config scan_listener
- SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
- [grid@rac1 ~]$
- 3、修改host 文件和dns 解析
- 4、修改
- [root@rac1 ~]# srvctl modify scan -n rac-scan
- [root@rac1 ~]# srvctl config scan
- SCAN name: rac-scan, Network: 1/192.168.2.0/255.255.255.0/eth0
- SCAN VIP name: scan1, IP: /rac-scan.localdomain/192.168.2.121
- SCAN VIP name: scan2, IP: /rac-scan.localdomain/192.168.2.122
- SCAN VIP name: scan3, IP: /rac-scan.localdomain/192.168.2.123
- [root@rac1 ~]# srvctl modify scan_listener –u
- [root@rac1 ~]# srvctl config scan_listener
- SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
- SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1521
- SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1521
- 5、启动
- [root@rac1 ~]# srvctl start scan
- [root@rac1 ~]# srvctl start scan_listener
- 6、检查
- [root@rac1 ~]# srvctl status scan
- SCAN VIP scan1 is enabled
- SCAN VIP scan1 is running on node rac2
- SCAN VIP scan2 is enabled
- SCAN VIP scan2 is running on node rac1
- SCAN VIP scan3 is enabled
- SCAN VIP scan3 is running on node rac1
- [root@rac1 ~]# srvctl status scan_listener
- SCAN Listener LISTENER_SCAN1 is enabled
- SCAN listener LISTENER_SCAN1 is running on node rac2
- SCAN Listener LISTENER_SCAN2 is enabled
- SCAN listener LISTENER_SCAN2 is running on node rac1
- SCAN Listener LISTENER_SCAN3 is enabled
- SCAN listener LISTENER_SCAN3 is running on node rac1
复制代码 |
|