本文共 1893 字,大约阅读时间需要 6 分钟。
首先是删:
1 dbca删节点 rac1,按提示删除即可,其中需要输入sys密码crsctl unpin css -n rac1
2#执行完grid用户查看资源池,此时rac2已经不在serverpool里,接下来继续删除cluster信息srvctl config serverpool
cd /此处grid安装目录/bin#停止故障节点集群.\crsctl stop cluster -n rac1
#查看资源状态 crsctl status res -tcrsctl check cluster -all
#删除应用层
crsctl delete node -n rac1crsctl stop resource ora.rac1.vip -fcrsctl delete resource ora.rac1.vip -f
如果vip还在,可以用如下命令删除vip
netsh interface ip delete address name="" addr=xx.xx.xx.xx
更新删除后信息: cd -d %ORACLE_HOME%\oui\bin.\setup -updateNodeList ORACLE_HOME=d:\app\11.2.0\grid "CLUSTER_NODES={rac2}" CRS=TRUEolsnodes -i -t -s
--执行删除后检查
cluvfy stage -post nodedel -n rac1 -verbose
增加节点
notepad C:\Windows\System32\drivers\etc\hosts127.0.0.1 localhost10.10.8.10 RAC-SCAN10.10.8.11 RAC110.10.8.13 RAC210.10.8.12 RAC1-VIP10.10.8.14 RAC2-VIP192.168.1.11 RAC1-PRIV192.168.1.12 RAC2-PRIV
#配置网络参数
netsh int ipv4 set global dhcpmediasense=disablednetsh int ipv6 set global dhcpmediasense=disablednetsh advfirewall set currentprofile state offnetsh int ipv4 set global dhcpmediasense=disablednetsh int tcp set global chimney=disablednetsh int tcp set global rss=disabled
#检查服务
net stop msdtcnet start RemoteRegistry
#添加节点
cd -d %ORACLE_HOME%\oui\binset ignore_preaddnode_checks=Y.\addnode.bat "CLUSTER_NEW_NODES={rac1}" "CLUSTER_NEW_PRIVATE_NODE_NAMES={rac1-priv}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={RAC1-VIP}" D:\app\11.2.0\grid\crs\config\gridconfig.batset ROOTHASPL=%OH%\perl\bin\perl -I%OH%\perl\lib -I%OH%\crs\install %OH%\crs\install\roothas.pl -notermset ROOTCRSPL=%OH%\perl\bin\perl -I%OH%\perl\lib -I%OH%\crs\install %OH%\crs\install\rootcrs.pl -noterm
#添加后检查
cluvfy stage -post nodeadd -n rac1 -verbose
#添加db instance set ORACLE_HOME=D:\app\Administrator\product\11.2.0\dbhome_1cd %ORACLE_HOME%/oui/bin/.\addnode.bat "CLUSTER_NEW_NODES={rac1}"
参考:
添加crs:添加db instance:转载于:https://blog.51cto.com/snowhill/2342245