为了尽量减少应用的调整,以及应用服务器上TNS信息的更改,RAC迁移后,可以直接将VIP、SCAN-IP修改为老库的,如果需要回退,也非常方便。
首先停掉老库的crs,(修改ip过程中避免IP冲突):
./srvctl stop database -d hxcrm -o immediate
./crsctl stop crs
2个节点修改hosts
135.1.1.39 hxcrmdb1-vip 135.1.1.40 hxcrmdb2-vip 135.1.1.41 hxcrmdb-scan
启动crass
./crsctl start crs
查看
./oifcfg getif -global
删除
./oifcfg delif -global en18 ./oifcfg delif -global en19
查看
./oifcfg getif -global
添加
./oifcfg setif -global en18/135.1.1.0:public ./oifcfg setif -global en19/192.168.1.0:cluster_interconnect
查看
./oifcfg getif -global
–修改vip
停库
./srvctl stop database -d hxcrm
查看vip
./srvctl config vip -n hxcrmdb1 ./srvctl config vip -n hxcrmdb2
关vip监听
./srvctl stop listener -n hxcrmdb1
./srvctl stop listener -n hxcrmdb2
./srvctl stop vip -n hxcrmdb1
./srvctl stop vip -n hxcrmdb2
修改
./srvctl modify nodeapps -n hxcrmdb1 -A 135.1.1.39/255.255.255.0/en18 ./srvctl modify nodeapps -n hxcrmdb2 -A 135.1.1.40/255.255.255.0/en18
查看
./srvctl config vip -n hxcrmdb1 ./srvctl config vip -n hxcrmdb2
起vip监听
./srvctl start vip -n hxcrmdb1
./srvctl start vip -n hxcrmdb2
./srvctl start listener -n hxcrmdb1
./srvctl start listener -n hxcrmdb2
./srvctl start database –d hxcrm
修改scan
./srvctl stop scan_listener
./srvctl stop scan
./srvctl status scan
./srvctl status scan_listener
./srvctl config scan
./srvctl modify scan -n hxcrmdb-scan
./srvctl start scan
./srvctl start scan_listener
修改数据库监听参数
alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=135.1.1.39)(PORT=1521))))' scope=both sid='hxcrm1';
alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=135.1.1.40)(PORT=1521))))' scope=both sid='hxcrm2';
最后修改时间:2021-10-22 16:20:27
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




