[toc]
ORACLE11g RAC 修改public IP 步骤
备份
1 2 3
| cd /u01/app/11.2.0/grid/bin ./ocrconfig -showbackup ./ocrconfig -manualbackup
|
修改前的IP信息
1 2 3 4 5 6 7 8 9 10 11 12
| # PUBLIC HOSTNAMES---公网IP 10.8.8.23 orcb1 10.8.8.24 orcb2 # PRIVATE HOSTNAMES-----心跳IP 10.10.10.1 orcb1-priv 10.10.10.2 orcb2-priv # VIP HOSTNAMES----VIP 地址 10.8.8.25 orcb1-vip 10.8.8.26 orcb2-vip # Below are SCAN IP addresses for reference. # SCAN_IP 10.8.8.21 scan
|
修改后的IP 信息
1 2 3 4 5 6 7 8 9 10 11 12
| # PUBLIC HOSTNAMES---公网IP 10.8.8.123 orcb1 10.8.8.124 orcb2 # PRIVATE HOSTNAMES-----心跳IP 10.10.10.1 orcb1-priv 10.10.10.2 orcb2-priv # VIP HOSTNAMES----VIP 地址 10.8.8.125 orcb1-vip 10.8.8.126 orcb2-vip # Below are SCAN IP addresses for reference. # SCAN_IP 10.8.8.121 scan
|
停止数据库
1 2 3 4 5 6 7 8 9 10 11 12
| cd /u01/app/11.2.0.4/grid/bin ./srvctl stop database -d wforcb
./srvctl stop listener -l LISTENER ./srvctl stop listener -l LISTENER_DG
./srvctl stop scan_listener ./srvctl stop scan
./srvctl stop nodeapps -n orcb1 ./srvctl stop nodeapps -n orcb2
|
修改ip
修改vip
1 2 3 4 5 6 7 8
| ./srvctl config vip -n orcb1 ./srvctl modify nodeapps -n orcb -A 10.8.8.123/255.255.255.0/lanxxx ./srvctl config vip -n orcb1
./srvctl config vip -n orcb2 ./srvctl modify nodeapps -n orcb2 -A 10.8.8.124/255.255.255.0/lanxxx ./srvctl config vip -n orcb2
|
scan
1 2 3
| ./srvctl modify scan -n scan ./srvctl start scan ./srvctl start scan_listener
|
原文作者:
liups.com
原文链接:
http://liups.cn/posts/5c675a7f/
许可协议: 知识共享署名-非商业性使用 4.0 国际许可协议