Linux 10gR2 Change Public IP and VIP

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博客 ” ,链接:http://blog.itpub.net/27064837/viewspace-746046/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/27064837/viewspace-746046/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值