RAC修改IP地址

关闭集群

关闭数据库及监听

srvctl stop database -d zrzxdb
srvctl stop listener
srvctl stop vip -node zrzxdb1
srvctl stop vip -node zrzxdb2
srvctl stop scan_listener
srvctl stop scan

修改IP

# oifcfg getif
# oifcfg delif -global bond0/10.126.143.0
# oifcfg setif -global bond0/10.192.4.0:public
# oifcfg getif

修改集群IP

修改IP地址,重新配置hosts、tnsnames,重新配置VIP

vim /etc/hosts
vim $ORACLE_HOME/network/admin/tnsnames.ora
cat /etc/hosts
cat $ORACLE_HOME/network/admin/tnsnames.ora
srvctl modify nodeapps -n zrzxdb1 -A 10.192.4.133/255.255.255.0/bond0
srvctl modify nodeapps -n zrzxdb2 -A 10.192.4.134/255.255.255.0/bond0
srvctl config nodeapps -a
srvctl start vip -n zrzxdb1
srvctl start vip -n zrzxdb2
srvctl start listener

修改SCAN

用root用户刷新scan vip

srvctl modify scan -n zrzxdbscan
srvctl config scan

起库

启动监听及数据库

srvctl start scan 
srvctl start scan_listener

srvctl start database -d zrzxdb
show parameter listener
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值