1.修改RAC2 的VIP ip 由192.168.0.32改为192.168.0.34
1.1 sqlplus sys/manager@rac2 as sysdba
SQL>alter system set local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.34) (PORT = 1521))' sid='rac2';
1.2 [root@racdb02 oracle]#srvctl stop nodeapps -n racdb02
1.3 [root@racdb02 oracle]#srvctl modify nodeapps -n racdb02 -A 192.168.0.34/255.255.255.0/eth0
1.4 分别修改所有主机的hosts,将原来IP修改为新的IP
1.5 [root@racdb02 oracle]#srvctl start nodeapps -n racdb02
1.6 最好能重新启动一下RAC2的相关服务
2. 修改RAC1 的VIP IP 由192.168.0.31改为192.168.0.33
2.1 sqlplus sys/manager@rac1 as sysdba
SQL>alter system set local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.33) (PORT = 1521))' sid='rac1';
2.2 [root@racdb01 oracle]#srvctl stop nodeapps -n racdb01
2.3 [root@racdb01 oracle]#srvctl modify nodeapps -n racdb02 -A 192.168.0.33/255.255.255.0/eth0
2.4 分别修改所有主机的hosts,将原来IP修改为新的IP
2.5 [root@racdb01 oracle]#srvctl start nodeapps -n racdb01
2.6 最好能重新启动一下RAC1的相关服务