1. 停止依赖VIP 的所有资
[root@rac1 bin]# su - oracle
[oracle@rac1 ~]$ srvctl stop instance -d ora9i -i ora9i1
[oracle@rac1 ~]$ srvctl stop asm -n rac1
[oracle@rac1 ~]$ srvctl stop nodeapps -n rac1
[oracle@rac1 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ora9i.db application ONLINE ONLINE rac2
ora....i1.inst application OFFLINE OFFLINE
ora....i2.inst application ONLINE ONLINE rac2
ora....SM1.asm application OFFLINE OFFLINE
ora....C1.lsnr application OFFLINE OFFLINE
ora.rac1.gsd application OFFLINE OFFLINE
ora.rac1.ons application OFFLINE OFFLINE
ora.rac1.vip application OFFLINE OFFLINE
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
[oracle@rac1 ~]$ exit
logout
2. 更改/etc/hosts 中的IP
[root@rac1 bin]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.241 rac1
192.168.0.242 rac2
192.168.0.253 rac1-vip
192.168.0.252 rac2-vip
1.0.0.1 rac1-priv
1.0.0.2 rac2-priv
"/etc/hosts" 9L, 268C written
3. 使用srvctl 修改VIP 地址
[root@rac1 bin]# ./srvctl modify nodeapps -n rac1 -A 192.168.0.253/255.255.255.0/eth0
4. 启动nodeapps 及依赖它的所有资源
[root@rac1 bin]# ./srvctl start nodeapps -n rac1
[root@rac1 bin]# su - oracle
[oracle@rac1 ~]$ srvctl start asm -n rac1
[oracle@rac1 ~]$ srvctl start instance -d ora9i -i ora9i1
[oracle@rac1 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ora9i.db application ONLINE ONLINE rac2
ora....i1.inst application ONLINE ONLINE rac1
ora....i2.inst application ONLINE ONLINE rac2
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
联系客服