ORACLE RAC IP修改(ORACLE 11.2.0.4)

ORACLE RAC IP修改(ORACLE 11.2.0.4)

1.禁止相关CRS资源的启动,停止这些资源(vip,listener,scan,scan_listener,database)

1.1  所有节点上禁止数据库启动,停止数据库

[grid@rac1 ~]$ srvctl stop database -d racdb

1.2  禁止所有节点的LISTNER的启动,停止所有节点上的LISTENER

[grid@rac1 ~]$ srvctl disable listener

[grid@rac1 ~]$ srvctl stop listener

1.3  禁止所有节点的VIP的启动,停止所有节点上的VIP

[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl disable vip -i "rac1-vip"
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl disable vip -i "rac2-vip
[grid@rac1 ~]$ srvctl stop vip -n rac1

[grid@rac1 ~]$ srvctl stop vip -n rac2

 

1.4  禁止所有节点的SCAN_LISTENER的启动,停止所有节点上的SCAN_LISTENER

[grid@rac1 ~]$ srvctl disable scan_listener

[grid@rac1 ~]$ srvctl stop scan_listener

 

1.5  禁止所有节点的SCAN的启动,停止所有节点上的SCAN

[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl disable scan
[grid@rac1 ~]$ srvctl stop scan

2.网络基础设施配置(交换机,路由器)

3.操作系统网络配置修改(/etc/hosts,ifcfg-eth0,)

4.CRS 网络相关资源的重新配置和启动

4.1 集群的public网络和网卡设置
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/oifcfg getif
          eth0  10.3.0.0  global  public
          eth1  192.168.0.0  global  cluster_interconnect
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/oifcfg delif -global eth0
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/oifcfg setif -global eth0/10.8.0.0:public
修改完成后在所有几点调用下面的命令验证更改是否在所有节点上生效

[root@rac1 ~]# /u01/app/11.2.0/grid/bin/oifcfg getif
          eth1  192.168.0.0  global  cluster_interconnect

          eth0  10.8.0.0  global  public

4.2 修改VIP

[root@raw1 bin]# ./srvctl modify nodeapps -n rac1 -A 192.168.0.222/255.255.255.0/eth0

[root@raw1 bin]# ./srvctl modify nodeapps -n rac2 -A 192.168.0.223/255.255.255.0/eth0

 

4.3 修改SCAN-IP

root用户修改scan ip
[root@rac1 ~]#./srvctl modify scan -n 192.168.0.56
8、修改后确认
[root@rac1 ~]#./srvctl config scan
SCAN name: 192.168.0.56, Network: 1/192.168.0.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /192.168.0.56/192.168.0.56
查看修改情况。

 

4.5  vip配置和LISTENER得启动
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl enable vip -i "rac1-vip"
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl enable vip -i "rac2-vip"
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl start vip -n rac1
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl start vip -n rac2

[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl enable listener
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl start listener
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl enable scan
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl start scan
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl enable scan_listener
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl start scan_listener

4.6 启动数据库,完成oracle rac 环境public 网络的切换。

[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl enable database -d rac1
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl start database -d rac2

5.测试数据库连通

6.修改服务和相关监听ip,应用服务器正常连通。


你可能感兴趣的:(ORACLE RAC IP修改(ORACLE 11.2.0.4))