如何一步一步刪除(linux & UNIX)環境下 oracle 11g 叢集節點

來源:互聯網
上載者:User

Deleting a Cluster Node on Linux and UNIX Systems


1.確定要刪除的節點,是否active,pinned
$ olsnodes -s -t

如果 pinned ,則crsctl unpin css  -n <nodename>  unpinned 相應的節點



2、禁用相應叢集節點的應用資源,進程
先停掉 em:
emctl stop dbconsole

以root 使用者運行 在要刪除節點的 $Grid_home/crs/install 路徑下運行rootcrs.pl 指令碼

# ./rootcrs.pl -deconfig -force

如果要刪除所有節點:
# ./rootcrs.pl -deconfig -force -lastnode 


有時vip 資源不一定會被刪除,這是需要手動來刪除:
# srvctl stop vip -i vip_name-f
# srvctl remove vip -i vip_name-f



3、在其他節點執行以下命令:

crsctl delete node -n node_to_be_deleted



4、在要刪除的節點上執行以下命令:
指令碼在 :$Grid_home/oui/bin

$ ./runInstaller -updateNodeList ORACLE_HOME=Grid_home"CLUSTER_NODES={node_to_be_deleted}" CRS=TRUE -silent -local



5、清理要刪除節點的Clusterware home 安裝檔案:
$ Grid_home/deinstall/deinstall –local

注意一定要添加 -local 選項 ,否者會刪除 所有節點的Clusterware home  安裝目錄.



6、在其他節點執行以下命令,更新節點資訊:

指令碼在 $Grid_home/oui/bin

 $./runInstaller -updateNodeList ORACLE_HOME=Grid_home"CLUSTER_NODES={remaining_nodes_list}" CRS=TRUE -silent



7、驗證要刪除的節點是否已經成功刪除:
$ cluvfy stage -post nodedel -n node_list[-verbose]

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.