oracle rac 19c修改不同网段public ip

客户需求将才搭建的oracle 19.19数据库从192.168.168.0网段调整到192.168.213网段

1.停止两个节点集群

停止之前最好ocrdump一下,防止有问题

crsctl stop crs

2.修改public ip地址和/etc/hosts

3. 启动crs

这时集群可以启动,但是上面的一些资源启动会有报错,可以不管

用crsctl stat res -t 可以看到集群启动信息

4.删除以前public网段,添加新的public网段

[root@hihisdb1 ~]# oifcfg getif

bond0  192.168.168.0  global  public

ens19f0  11.11.11.0  global  cluster_interconnect,asm

ens19f1  12.12.12.0  global  cluster_interconnect,asm

[root@hihisdb1 ~]# 

[root@hihisdb1 ~]# oifcfg delif -global bond0/192.168.168.0

[root@hihisdb1 ~]# oifcfg setif -global bond0/192.168.213.0:public

[root@hihisdb1 ~]# oifcfg getif

ens19f0  11.11.11.0  global  cluster_interconnect,asm

ens19f1  12.12.12.0  global  cluster_interconnect,asm

bond0  192.168.213.0  global  public

5.修改vip

[root@hihisdb1 ~]# srvctl config vip -n hihisdb1

[root@hihisdb1 ~]# srvctl config vip -n hihisdb2

[root@hihisdb1 ~]# srvctl modify nodeapps -n hihisdb1 -A hihisdb1-vip/255.255.255.0/bond0

[root@hihisdb1 ~]# srvctl modify nodeapps -n hihisdb2 -A hihisdb2-vip/255.255.255.0/bond0

[root@hihisdb1 network-scripts]# srvctl config vip -n hihisdb1

VIP exists: network number 1, hosting node hihisdb1

VIP Name: hihisdb1-vip

VIP IPv4 Address: 192.168.213.93

VIP IPv6 Address: 

VIP is enabled.

VIP is individually enabled on nodes: 

VIP is individually disabled on nodes: 

[root@hihisdb1 network-scripts]# srvctl config vip -n hihisdb2

VIP exists: network number 1, hosting node hihisdb2

VIP Name: hihisdb2-vip

VIP IPv4 Address: 192.168.213.94

VIP IPv6 Address: 

VIP is enabled.

VIP is individually enabled on nodes: 

VIP is individually disabled on nodes: 

[root@hihisdb1 network-scripts]# 

6.修改scanip

[root@hihisdb1 network-scripts]# srvctl modify scan -n hihisdb-cluster-scan

你可能感兴趣的:(oracle12c,oracle,rac,oracle,tcp/ip,数据库)