oracle 11gR2 RAC 数据库如何修改public ip
oracle 11gR2 RAC 数据库如何修改public ip
修改public ip
修改前后ip信息修改前ip信息p570a 192.168.128.10p570b 192.168.128.11修改后ip信息p570a 192.168.31.112p570a 192.168.31.1141.1 停止两边节点数据库,监听,并且停止crsgrid用户srvctl stop database -d gdtest -o immediatesrvctl stop listener -n p570asrvctl stop listener -n p570broot用户cd /grid/app/11.2.0/grid/bin./crsctl stop crs可以用ps –ef|grep grid看进程是否完全关闭
1.2 修改两边节点的/etc/hosts文件修改前先做个备份cp /etc/hosts /etc/hosts.bak修改后如下所示:192.168.31.112 p570a 192.168.31.113 p570a-vip172.168.128.10 p570a-priv 192.168.31.114 p570b 192.168.31.115 p570b-vip172.168.128.11 p570b-priv 192.168.31.111 scan-vip [size=+0]1.3 修改两个节点上的public ip 1.3.1 修改p570a节点 public ip用smitty命令修改物理ipsmitty tcpip选择en0修改ip为 192.168.31.112,网关为192.168.31.1掩码为 255.255.255.0 1.3.2 修改P570b节点 public ip用smitty命令修改物理ipsmitty tcpip选择en0修改ip为 192.168.31.114,网关为192.168.31.1掩码为255.255.255.0 1.3.3 两边节点启动crs,用oifcfg 命令修改public ip一边节点做即可cd /grid/app/11.2.0/grid/bin ./crsctl start crsroot用户先用oifcfg getif查看当前设置./oifcfg getifen0 192.168.128.0 global publicen2 172.168.128.0 global cluster_interconnect修改./oifcfg delif -global en0./oifcfg setif -global en0/192.168.31.0:publi两边节点确认./oifcfg getifen0 192.168.31.0 global publicen2 172.168.128.0 global cluster_interconnect