1.停止集群服务

root# srvctl disable database -d testdb
root# srvctl disable scan_listener 
root# srvctl disable scan
root# srvctl disable listener -n test1
root# srvctl disable listener -n test2
root# srvctl disable vip -n test1 
root# srvctl disable vip -n test2
root# crsctl stop crs

2.修改系统配置(Linux)

###双节点操作
/etc/hosts
/etc/sysconfig/network-scripts/ifcfg-bond0
/etc/sysconfig/network-scripts/ifcfg-bond1

service network restart

3.修改PUBLIC IP

root# oifcfg getif
root# oifcfg delif -global bond0
root# oifcfg setif -global bond0/10.1.1.0:public

root# oifcfg getif
---查看VIP配置,如果系统已识别则不需设置步骤4、5。
root# srvctl config vip -n test1
root# srvctl config vip -n test2

4.修改VIP

root# srvctl modify nodeapps -A 10.1.1.21/255.255.255.0/bond0 -n test1
root# srvctl modify nodeapps -A 10.1.1.22/255.255.255.0/bond0 -n test2
---查看配置
root# srvctl config vip -n test1
root# srvctl config vip -n test2

---启动服务
root# srvctl start vip -n test1 
root# srvctl start vip -n test2
root# srvctl start listener -n test1
root# srvctl start listener -n test2

5.修改SCANIP

root# srvctl modify scan -scanname testdb-scan
---如果上述命令执行后配置不变更,则执行以下命令
root# srvctl modify scan -n 10.1.1.1.25
---查看配置
root# srvctl config scan

---启动服务
root# srvctl start scan_listener 
root# srvctl start scan

6.验证集群服务

root# crsctl stat res -t

7.修改数据库配置

alter system set local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.21(PORT = 11521))' sid='testdb1' ;
alter system set local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.22(PORT = 11521))' sid='testdb2' ;

8.将服务设置为自启动

root# srvctl enable listener
root# srvctl enable database -d testdb
root# srvctl enable vip -i testdb1-vip
root# srvctl enable vip -i testdb2-vip
root# srvctl enable scan_listener
root# srvctl enable scan