日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Oracle RAC更改VIP IP地址_2节点的实验

發布時間:2025/3/8 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Oracle RAC更改VIP IP地址_2节点的实验 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?

本文轉載:http://space.itpub.net/9664900/viewspace-676800

1、主機名規劃:

--更改前:

?

#Public Network - (eth0)

192.168.10.11 ? rac1

192.168.10.12 ? rac2

?

#Private Interconnect - (eth1)

10.10.10.11 ? ? rac1priv

10.10.10.12 ? ? rac2priv

?

#Public Virtual IP (VIP) addresses - (eth0)

192.168.10.21 ? rac1vip

192.168.10.22 ? rac2vip

?

--更改后:

#Public Network - (eth0)

192.168.110.11 ? rac1

192.168.110.12 ? rac2

?

#Private Interconnect - (eth1)

10.10.10.11 ? ? rac1priv

10.10.10.12 ? ? rac2priv

?

#Public Virtual IP (VIP) addresses - (eth0)

192.168.110.21 ? rac1vip

192.168.110.22 ? rac2vip

?

2、停止CRS等服務,更改主機IP,路由等,并重啟服務。

?

3、更改VIP地址

?

利用oifcfg更改public/private ip

查看當前使用

> oifcfg getif

[oracle@rac1 ~]$ oifcfg getif

eth0 ?192.168.10.0 ?global ?public

eth1 ?10.10.10.0 ?global ?cluster_interconnect

?

刪除當前

oifcfg delif -global eth0

oifcfg delif -global eth1

重新添加

> oifcfg setif -global eth0/192.168.110.0:public

> oifcfg setif -global eth1/10.10.10.0:cluster_interconnect

?

獲取狀態如下:

[oracle@rac1 ~]$ oifcfg getif

eth0 ?192.168.110.0 ?global ?public

eth1 ?10.10.10.0 ?global ?cluster_interconnect

?

?

4、更新注冊到OCR中的vip配置(root 用戶)

?

crs_register -update ora.rac1.vip -o i=eth0,ov=192.168.110.21,on=255.255.255.0

crs_register -update ora.rac2.vip -o i=eth0,ov=192.168.110.22,on=255.255.255.0

?

或者使用(root 用戶)

[root@td1 ~]# srvctl modify nodeapps -n td1 -A 10.194.128.147/255.255.255.0/eth0

[root@td1 ~]# srvctl modify nodeapps -n td2 -A 10.194.128.148/255.255.255.0/eth0

?

如果你使用了ocfs,修改ocfs配置文件(/etc/ocfs/cluster.conf),驗證修改后是否可用。

?

?

5、修改監聽listener 配置文件

?

6、啟動集群各節點資源并驗證

?

驗證后,正常使用。

?

轉載于:https://blog.51cto.com/2814740/1104832

總結

以上是生活随笔為你收集整理的Oracle RAC更改VIP IP地址_2节点的实验的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。