Oracle 11gR2 RAC修改SCAN IP

一.查看当前环境:
# grid用户
检查scan-ip地址的配置
[grid@node1 ~]$ srvctl config scan
SCAN name: scan-cluster.com, Network: 1/192.168.0.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /scan-cluster/192.168.0.24
SCAN VIP name: scan2, IP: /scan-cluster/192.168.0.25
SCAN VIP name: scan3, IP: /scan-cluster/192.168.0.26
[grid@node1 ~]$ 

检查scan-ip地址的实际分布及状态
[grid@node1 ~]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node node2
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node node1
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node node1
[grid@node1 ~]$ 

检查scan监听配置
[grid@node1 ~]$ 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
[grid@node1 ~]$ 


检查scan监听状态
[grid@node1 ~]$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node node2
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is running on node node1
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is running on node node1
[grid@node1 ~]$ 


二.修改SCAN IP
#停掉scan监听
[grid@node2 ~]$ srvctl stop scan_listener
[grid@node2 ~]$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is not running
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is not running

#停掉scan应用
[grid@node2 ~]$ srvctl stop scan
[grid@node2 ~]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
SCAN VIP scan2 is enabled
SCAN VIP scan2 is not running
SCAN VIP scan3 is enabled
SCAN VIP scan3 is not running
[grid@node2 ~]$



三.修改DNS中的IP配置(略)

四.重新注册SACN
#查看SCAN name
[grid@node2 ~]$ srvctl config scan
SCAN name: scan-cluster, Network: 1/192.168.0.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /scan-cluster/192.168.0.25
SCAN VIP name: scan2, IP: /scan-cluster/192.168.0.26
SCAN VIP name: scan3, IP: /scan-cluster/192.168.0.24

#使用root用户
[grid@node2 ~]$
[root@node2 ~]# /u01/app/11.2.0/grid/bin/srvctl modify scan -n scan-cluster


五.检查SCAN

# grid用户
检查scan-ip地址的配置
[grid@node1 ~]$ srvctl config scan
检查scan-ip地址的实际分布及状态
[grid@node1 ~]$ srvctl status scan
检查scan监听配置
[grid@node1 ~]$ srvctl config scan_listener
检查scan监听状态
[grid@node1 ~]$ srvctl status scan_listener

 

posted @ 2015-04-08 15:32  PoleStar  阅读(1303)  评论(0编辑  收藏  举报