从RAC层面删除节点
1. 停止listener
[grid@rac1 ~]$ srvctl disable listener –lLISTENER -n rac3
[grid@rac1 ~]$ srvctl stop listener –lLISTENER -n rac3
2. 在节点rac3 更新inventory
[oracle@rac3 ~]$ cd $ORACLE_HOME/oui/bin
[oracle@rac3 bin]$ ./runInstaller-updateNodeList ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1"CLUSTER_NODES=rac3" -local
3. 删除ORACLE HOME,在节点3运行Deinstall
[oracle@rac3 ~]$ cd $ORACLE_HOME/OPatch
[oracle@rac3 OPatch]$ $ORACLE_HOME/deinstall/deinstall-local
4. 在节点1 更新inventory
[oracle@rac1 ~]$ cd $ORACLE_HOME/oui/bin
[oracle@rac1 bin]$ ./runInstaller-updateNodeList ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1"CLUSTER_NODES=rac1,rac2"
在GRID层面删除节点
1. 查看节点都是unpinned状态
[grid@rac1 ~]$ olsnodes -s -t
2. 在节点3以root用户运行deconfig
[root@rac3 ~]#/u01/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -deinstall -force
3. 在节点1运行,删除节点
[root@rac1 ~]#/u01/app/11.2.0/grid/bin/crsctl delete node -n rac3
4. 在节点3运行,更新inventory
[grid@rac3 ~]$ cd $ORACLE_HOME/oui/bin
[grid@rac3 bin]$ ./runInstaller-updateNodeList ORACLE_HOME=/u01/app/11.2.0/grid "CLUSTER_NODES=rac3"CRS=TRUE -silent -local
5. 删除GIRD HOME,在节点3运行Deinstall
[grid@rac3 ~]$$ORACLE_HOME/deinstall/deinstall -local
可以不输,有默认值,不对的时候再输入
在一个新的session, 以root用户运行:
再回到前面的session,点击‘Enter’ .
1. 在保留节点运行,更新inventory
[grid@rac1 bin]$ ./runInstaller-updateNodeList ORACLE_HOME=/u01/app/11.2.0/grid"CLUSTER_NODES=rac1,rac2" CRS=TRUE -silent
2. CVU检查节点删除是否成功
[grid@rac1 bin]$ cluvfy stage -post nodedel-n rac3 –verbose
删除实例:
检查:
[grid@rac1 ~] $ crsctl stat res -t