oracle 11gR2 如何修改scan vip 地址/etc/hosts方式
这次帮客户搭建了一套oracle 11gR2 rac for aix环境,scan vip因为网络调整需要,需要更改以前设置好的scanvip,是采用/etc/hosts的方式,比如将scan vip 192.168.128.100改为10.76.31.111
下面是具体步骤:
1.crs集群是打开的
2.修改两边/etc/hosts 将192.168.128.100改为100.100.31.111
3.srvctl config scan 查看当前vip设置
p570a@root#./srvctl config scan
SCAN name: 192.168.128.100, Network: 1/192.168.128.0/255.255.255.0/en0
SCAN VIP name: scan1, IP: /scan-vip/192.168.128.100
4.用root用户停止scan_listener 和sacn vip
[font=NSimsun]$GRID_HOME/bin/srvctl stop scan_listener
$GRID_HOME/bin/srvctl stop scan
$GRID_HOME/bin/srvctl status scan
[font=新宋体] [font=Courier New]SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
[font=Courier New] $GRID_HOME/bin/srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
5.用root用户修改scan vip
[font=NSimsun]$GRID_HOME/bin/srvctl modify scan -n 100.100.31.111
6.检查是否修改成功
p570a@root#./srvctl config scan
SCAN name: 100.100.31.111 , Network: 1/100.100.31.0/255.255.255.0/en0
SCAN VIP name: scan1, IP: /scan-vip/100.100.31.111
7.启动scan和scan_listener
[font=Courier New]$GRID_HOME/bin/srvctl start scan
$GRID_HOME/bin/srvctl start scan_listener
修改成功