How to change IP of machine running Oracle GI

#@# Check the config of crs and disable it
db-ora1:/#/oracrs/product/11gR2/grid/bin/crsctl config crs;     -- Run with Root on One Nodes
CRS-4622: Oracle High Availability Services autostart is enabled.
db-ora1:/#/oracrs/product/11gR2/grid/bin/crsctl disable crs;    -- Run with Root on One Nodes
db-ora1:/#/oracrs/product/11gR2/grid/bin/crsctl config crs;     -- Run with Root on One Nodes


#@# Check the current config of oif
$ /oracrs/product/11gR2/grid/bin/oifcfg getif;   -- Run with Root on All Nodes
db-ora1:
lan1  99.98.36.0  global  public
lan900  192.168.33.0  global  cluster_interconnect
db-ora2:
lan1  99.98.36.0  global  public
lan900  192.168.33.0  global  cluster_interconnect


$ /oracrs/product/11gR2/grid/bin/oifcfg iflist;  -- Run with Root on All Nodes
db-ora1:
lan900  169.254.0.0
lan1  99.98.36.0
lan0  192.168.36.0
lan900  192.168.33.0
db-ora2:
lan900  169.254.0.0
lan1  99.98.36.0
lan0  192.168.36.0
lan900  192.168.33.0


#@# Stop database
$ srvctl modify database -d oradb -police manual;     -- Run with Oracle on one nodes
$ lsnrctl status;                              -- Run with Oracle on All nodes
lsnrctl stop;                                -- Run with Oracle on All nodes
$ ps -ef |  grep LOCAL=NO | grep -v grep | awk '{ print $2 }' | xargs kill -9;
                                               -- Run with Oracle on All nodes
$ srvctl stop database -d oradb;               -- Run with Oracle on One Nodes

#@# Stop All cluster
/oracrs/product/11gR2/grid/bin/crsctl stop cluster -all;   -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl check crs;           -- Run with Root on All Nodes


#@# Start CRS after NIC bonding
/oracrs/product/11gR2/grid/bin/crsctl start cluster -all;


#@# Configure the oracle ifcfg for the new NIC
/oracrs/product/11gR2/grid/bin/oifcfg delif -global lan1;      
                                                           -- Run with Root on All Nodes

/oracrs/product/11gR2/grid/bin/oifcfg getif;               -- Run with Root on All Nodes
/oracrs/product/11gR2/grid/bin/oifcfg setif -global lan901/99.98.36.0:public;
                                                           -- Run with Root on All Nodes

/oracrs/product/11gR2/grid/bin/oifcfg getif;               -- Run with Root on All Nodes


#@# Check Current scan config prepare to modify
$ srvctl config scan;             -- Run with Grid on One Nodes
db-ora1:
SCAN name: db-ora-scan, Network: 1/99.98.36.0/255.255.255.224/lan1
SCAN VIP name: scan1, IP: /db-ora-scan/99.98.36.7
db-ora2:
SCAN name: db-ora-scan, Network: 1/99.98.36.0/255.255.255.224/lan1
SCAN VIP name: scan1, IP: /db-ora-scan/99.98.36.7
$ srvctl config scan_listener;    -- Run with Grid on One Nodes
db-ora1:
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1525
db-ora2:
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1525
$ srvctl stop scan_listener;      -- Run with Root on One Nodes
$ srvctl stop scan;               -- Run with Root on One Nodes


#@# Modify the Network configuration
/oracrs/product/11gR2/grid/bin/srvctl modify network -S 99.98.36.0/255.255.255.224/lan901;
                                              -- Run with Root on One Nodes

$ srvctl modify scan_listener -u;             -- Run with Root on One Nodes
$ srvctl start scan_listener;                 -- Run with Root on One Nodes
$ srvctl modify scan -scanname db-ora-scan;   -- Run with Root on One Nodes
$ srvctl config scan;                         -- Run with Grid on One Nodes
$ srvctl config scan_listener;                -- Run with Grid on One Nodes


#@# Reenable the crs
/oracrs/product/11gR2/grid/bin/crsctl stop cluster -all;    -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl start cluster -all;   -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl enable crs;           -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl config crs;           -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl status res -t;        -- Run with Grid on All Node


#@# Start Database
$ srvctl modify database -d oradb -police automatic;           -- Run with Oracle on One Nodes
$ srvctl start database -d oradb;                -- Run with Oracle on One Nodes
$ crsctl status res -t;                          -- Run with Grid on All Node

 

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

转载于:http://blog.itpub.net/25521690/viewspace-2123835/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值