ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Linux 10gR2 Change Public IP and VIP

Linux 10gR2 Change Public IP and VIP

原创 Linux操作系统 作者:BenX22 时间:2012-10-10 09:50:45 0 删除 编辑
Change Public IP and VIP

================Env=============
old IP                    New IP

192.168.181.11            192.168.24.11
192.168.181.12            192.168.24.12

10.0.0.11                 10.0.0.11
10.0.0.12                 10.0.0.12

192.168.181.13            192.168.24.13
192.168.181.14            192.168.24.14
================Env=============

1 Stop all oracle process including DB, ASM,nodeapps

--Stop DB, ASM,nodeapps    (root or oracle)
Method 1:
cd CRS_HOME/bin
./srvctl stop database -d rac
./srvctl stop asm -n node1
./srvctl stop asm -n node2
./srvctl stop nodeapps -n node1
./srvctl stop nodeapps -n node2

Method 2:
cd CRS_HOME/bin
./crs_stop -all

2 Backup OCR   (root)
./ocrconfig -export /tmp/ocr.bak

3 Stop CRS    
./crsctl stop crs             (root or oracle)
&
/etc/init.d/init.crs stop     (root)

4 Change IP in /etc/hosts of all nodes accordingly (root)

5 Change network config accordingly (root)

6 Restart network service in all nodes

service network restart

7 Oifcfg reconfig in OCR

--Start CRS

/etc/init.d/init.crs start     (root)

./crs_stat -t -v               (root or oracle)

--Stop nodeappps which start along with CRS

./crs_stop -all                (root or oracle)
./crs_stat -t -v               (root or oracle)

--Get current oifcfg status
./oifcfg getif

--Delete current oifcfg        (root)
./oifcfg delif -global eth0
(./oifcfg delif -global eth1)
./oifcfg getif

--Reset oifcfg                 (root)
./oifcfg setif -global eth0/192.168.24.11:public
(./oifcfg setif -global eth1/xxx.xx.xx.xx:cluster_interconnect)
./oifcfg getif

8 Modify VIP in OCR            (root)
./srvctl modify nodeapps -n node1 -A 192.168.24.13/255.255.255.0/eth0
./srvctl modify nodeapps -n node2 -A 192.168.24.14/255.255.255.0/eth0

9 Change IP in listener.ora and tnsnames.ora accordingly(usually just listener.ora)  (root)

10 Start rac nodeapps service      (root or oracle)       

./crs_start -all
./crs_stat -t -v

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27064837/viewspace-746046/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-06-13

  • 博文量
    74
  • 访问量
    110114