oracle 11.2.0.4 rac 修改 ip vip scan ip

Posted 刚好遇见Mysql

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle 11.2.0.4 rac 修改 ip vip scan ip相关的知识,希望对你有一定的参考价值。

修改前host文件
198.27.73.21    ht-d01
198.27.73.22    ht-d02
198.27.73.25    ht-d01-vip
198.27.73.26    ht-d02-vip
198.27.73.29    ht-db-scanip

9.24.20.31      ht-d01-priv1
9.24.20.32      ht-d02-priv1
9.24.21.31      ht-d01-priv2
9.24.21.32      ht-d02-priv2

修改前的ip vip scanip
oifcfg getif
en6  9.24.20.0  global  cluster_interconnect
en7  9.24.21.0  global  cluster_interconnect
en8  198.27.73.0  global  public
srvctl config nodeapps -a
Network exists: 1/198.27.73.0/255.255.255.0/en8, type static
VIP exists: /ht-d01-vip/198.27.73.25/198.27.73.0/255.255.255.0/en8, hosting node ht-d01
VIP exists: /ht-d02-vip/198.27.73.26/198.27.73.0/255.255.255.0/en8, hosting node ht-d02
srvctl config scan
SCAN name: ht-db-scanip, Network: 1/198.27.73.0/255.255.255.0/en8
SCAN VIP name: scan1, IP: /ht-db-scanip/198.27.73.29

修改前先备份ocr(2台主机都备份)
export GRID_HOME=/oracle/app/crs
$GRID_HOME/bin/ocrconfig -export /home/grid/myocr1
停止数据库
srvctl stop database -d zrr
修改主机ip(root用户执行)
export CRS_HOME=/oracle/app/crs
$CRS_HOME/bin/oifcfg delif -global en8/198.27.73.0
$CRS_HOME/bin/oifcfg setif -global en8/198.27.79.0:public
修改完检查
[[email protected] /]# $CRS_HOME/bin/oifcfg getif
en6  9.24.20.0  global  cluster_interconnect
en7  9.24.21.0  global  cluster_interconnect
en8  198.27.79.0  global  public
主机工程师修改ip地址,主机修改完以后修改host文件
198.27.79.11    ht-d01
198.27.79.12    ht-d02
198.27.79.15    ht-d01-vip
198.27.79.16    ht-d02-vip
198.27.79.19    ht-db-scanip
9.24.20.31      ht-d01-priv1
9.24.20.32      ht-d02-priv1
9.24.21.31      ht-d01-priv2
9.24.21.32      ht-d02-priv2
停止vip
$CRS_HOME/bin/srvctl stop vip -n ht-d01 -f
$CRS_HOME/bin/srvctl stop vip -n ht-d02 -f
修改vip
$CRS_HOME/bin/srvctl modify nodeapps -n ht-d01 -A 198.27.79.15/255.255.255.128/en8
$CRS_HOME/bin/srvctl modify nodeapps -n ht-d02 -A 198.27.79.16/255.255.255.128/en8
修改完查看
[+ASM1]@ht-d01[/home/grid]$srvctl config nodeapps -a
Network exists: 1/198.27.79.0/255.255.255.128/en8, type static
VIP exists: /198.27.79.15/198.27.79.15/198.27.79.0/255.255.255.128/en8, hosting node ht-d01
VIP exists: /198.27.79.16/198.27.79.16/198.27.79.0/255.255.255.128/en8, hosting node ht-d02
起动vip及查看
$CRS_HOME/bin/srvctl start vip -n ht-d01 
$CRS_HOME/bin/srvctl start vip -n ht-d02 
ifconfig -a
$CRS_HOME/bin/crsctl stat res -t
停止scan监听和scan服务
$CRS_HOME/bin/srvctl stop scan_listener
$CRS_HOME/bin/srvctl stop scan
修改scan ip
$CRS_HOME/bin/srvctl modify scan -n ht-db-scanip
修改完查看
[+ASM1]@ht-d01[/home/grid]$srvctl config scan
SCAN name: ht-db-scanip, Network: 1/198.27.79.0/255.255.255.128/en8
SCAN VIP name: scan1, IP: /ht-db-scanip/198.27.79.19
[+ASM1]@ht-d01[/home/grid]$srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521

  

以上是关于oracle 11.2.0.4 rac 修改 ip vip scan ip的主要内容,如果未能解决你的问题,请参考以下文章

11.2.0.4rac service_name参数修改

11.2.0.4oracle数据库rac安装

Oracle11.2.0.4-Rac集群hang分析记录

oracle 11g r2 使用rman进行迁移rac到rac

Oracle RAC 11.2.0.4 CTSS 状态异常

redhat6.7环境下oracle11gR2 RAC静默安装