3.修改vip地址
[root@rac1 bin]# ./srvctl modify nodeapps -A 192.168.13.9/255.255.255.0/ens33 -n rac1
[root@rac1 bin]# ./srvctl modify nodeapps -A 192.168.13.11/255.255.255.0/ens33 -n rac2
4.启动vip资源
[root@rac1 bin]# ./crsctl start resource ora.rac1.vip -f
CRS-2672: Attempting to start 'ora.rac1.vip' on 'rac1'
CRS-2676: Start of 'ora.rac1.vip' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.LISTENER.lsnr' on 'rac1'
CRS-2676: Start of 'ora.LISTENER.lsnr' on 'rac1' succeeded
[root@rac1 bin]# ./crsctl start resource ora.rac2.vip -f
CRS-2672: Attempting to start 'ora.rac2.vip' on 'rac2'
CRS-2676: Start of 'ora.rac2.vip' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.LISTENER.lsnr' on 'rac2'
CRS-2676: Start of 'ora.LISTENER.lsnr' on 'rac2' succeeded
启动vip资源后本地监听就已经启动了 下面的步骤可以不执行
6.查看本地监听
[root@rac1 bin]# ./srvctl status listener -n rac1
Listener LISTENER is enabled on node(s): rac1
Listener LISTENER is running on node(s): rac1
[root@rac1 bin]# ./srvctl status listener -n rac2
Listener LISTENER is enabled on node(s): rac2
Listener LISTENER is running on node(s): rac2
7.查看网口配置信息
[grid@rac1 ~]$ oifcfg getif
ens33 192.168.13.0 global public
ens34 2.2.2.0 global cluster_interconnect
修改Public Ip 和Private IP
1.在任意节点上修改
这里我以节点1上面进行操作
[root@rac1 bin]# ./oifcfg getif
ens33 192.168.133.0 global public
ens34 1.1.1.0 global cluster_interconnect
[root@rac1 bin]# ./oifcfg delif -global ens33
[root@rac1 bin]# ./oifcfg setif -global ens33/192.168.13.0:public
[root@rac1 bin]# ./oifcfg getif
ens34 1.1.1.0 global cluster_interconnect
ens33 192.168.13.0 global public
[root@rac1 bin]# ./oifcfg delif -global ens34
PRIF-31: Failed to delete the specified network interface because it is the last private interface
这里不允许删除最后一个私有接口,可以先添加一个私有接口再删除
[root@rac1 bin]# ./oifcfg setif -global ens34/2.2.2.0:cluster_interconnect
[root@rac1 bin]# ./oifcfg getif
ens34 1.1.1.0 global cluster_interconnect
ens33 192.168.13.0 global public
ens34 2.2.2.0 global cluster_interconnect
[root@rac1 bin]# ./oifcfg delif -global ens34/1.1.1.0:cluster_interconnect
[root@rac1 bin]# ./oifcfg getif
ens33 192.168.13.0 global public
ens34 2.2.2.0 global cluster_interconnect
2.在任意节点上停止oracle高可用服务
[root@rac1 bin]# ./crsctl stop cluster -all
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'rac1'
CRS-2673: Attempting to stop 'ora.cvu' on 'rac1'
CRS-2673: Attempting to stop 'ora.OCRLILI.dg' on 'rac1'
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'rac1'
CRS-2673: Attempting to stop 'ora.FRA.dg' on 'rac1'
CRS-2673: Attempting to stop 'ora.oc4j' on 'rac1'
CRS-2673: Attempting to stop 'ora.rac2.vip' on 'rac1'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'rac1'
CRS-2677: Stop of 'ora.cvu' on 'rac1' succeeded
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'rac1' succeeded
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'rac1'
CRS-2677: Stop of 'ora.DATA.dg' on 'rac1' succeeded
CRS-2677: Stop of 'ora.FRA.dg' on 'rac1' succeeded
CRS-2677: Stop of 'ora.rac2.vip' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.rac1.vip' on 'rac1'
CRS-2677: Stop of 'ora.scan1.vip' on 'rac1' succeeded
CRS-2677: Stop of 'ora.rac1.vip' on 'rac1' succeeded
CRS-2677: Stop of 'ora.oc4j' on 'rac1' succeeded
CRS-2677: Stop of 'ora.OCRLILI.dg' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'rac1'
CRS-2677: Stop of 'ora.ons' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'rac1'
CRS-2677: Stop of 'ora.net1.network' on 'rac1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac1' has completed
CRS-2677: Stop of 'ora.crsd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
CRS-2673: Attempting to stop 'ora.evmd' on 'rac1'
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
CRS-2677: Stop of 'ora.evmd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded
CRS-4404: The following nodes did not reply within the allotted time:
rac2
2.备份ocr
[root@rac1 bin]# ./ocrconfig -manualbackup
rac2 2020/02/26 20:15:42 /u01/app/11.2.0/grid/cdata/rac/backup_20200226_201542.ocr
[root@rac1 bin]# ./ocrconfig -showbackup
PROT-24: Auto backups for the Oracle Cluster Registry are not available
rac2 2020/02/26 20:15:42 /u01/app/11.2.0/grid/cdata/rac/backup_20200226_201542.ocr