集群:
oracle11.2.0.4 linux6.8 双节点,rac1、rac2
/etc/hosts信息:
192.168.174.121 rac1
192.168.174.122 rac2
192.168.160.121 rac1priv
192.168.160.122 rac2priv
192.168.174.123 rac1vip
192.168.174.124 rac2vip
192.168.174.125 racscanip
修改ip后为:
/etc/hosts信息:
/etc/hosts信息:
192.168.174.121 rac1
192.168.174.122 rac2
192.168.160.121 rac1priv
192.168.160.122 rac2priv
192.168.174.123 rac1vip
192.168.174.124 rac2vip
192.168.174.126 racscanip
192.168.174.127 racscanip
192.168.174.128 racscanip
增加、修改 SCAN 的 IP 地址的步骤:
在集群正常运行的情况下:
1.查看scan的信息
srvctl config scan
2.修改/etc/hosts的信息
vi /etc/hosts
192.168.174.121 rac1
192.168.174.122 rac2
192.168.160.121 rac1priv
192.168.160.122 rac2priv
192.168.174.123 rac1vip
192.168.174.124 rac2vip
192.168.174.126 racscanip
192.168.174.127 racscanip
192.168.174.128 racscanip
3.停止scanip的监听
srvctl stop scan_listener
4.停止scan的服务
srvctl stop scan
5.修改scan
srvctl modify scan -n racscanip
6.查看修改后的san
srvctl config scan
7、修改scanip的数量
如果 SCAN IP 的个数改变了,那么还需要执行如下命令进行更新:
srvctl modify scan_listener -u
需要注意的是,以上步骤也适用于修改 SCAN 的 IP 地址或增加 SCAN IP 的个数。
8、开启scan、scan的监听
srvctl start scan
srvctl start scan_listener