rac新增節點前之清除節點資訊

sjw1933發表於2022-10-09

參考文件:

How to remove/delete a node from Grid Infrastructure Clusterware when the node has failed (文件 ID 1262925.1)

 

刪除資料庫例項:

可以使用dbca圖形介面刪除

也可以使用dbca靜默方式刪除rac1中的資料庫例項:

[oracle@rac2 bin]$ dbca -silent -deleteInstance -nodeList rac1 -gdbName orcl -instanceName orcl1 -sysDBAUserName sys -sysDBAPassword oracle

Deleting instance

1% complete

2% complete

6% complete

13% complete

20% complete

26% complete

33% complete

40% complete

46% complete

53% complete

60% complete

66% complete

Completing instance management.

100% complete

 

 

更新RAC節點資訊:

[oracle@rac2 bin]$ echo $ORACLE_HOME

/oracle/app/oracle/product/11.2.0/db_1/oui/bin/

 

[oracle@hisrac02 bin]$  ./runInstaller -updateNodeList ORACLE_HOME=/oracle/app/oracle/product/11.2.0/db_1 "CLUSTER_NODES=hisrac02" 

Starting Oracle Universal Installer...

 

Checking swap space: must be greater than 500 MB.   Actual 62924 MB    Passed

The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /oracle/app/oraInventory

 

 

檢視叢集節點資訊:

[root@hisrac02 bin]#  ./crsctl stat res -t |grep vip

ora.hisrac02.vip

ora.scan1.vip

 

刪除rac1節點的vip:

[root@hisrac02 bin]# ./srvctl remove vip -i rac1 -f

 

檢視叢集節點資訊:

[root@hisrac02 bin]# ./olsnodes -s -t

hisrac01        Inactive        Unpinned

hisrac02        Active  Unpinned

 

從叢集中刪除節點1:

[root@hisrac2 bin]# ./crsctl delete node -n hisrac01

CRS-4661: Node rac1 successfully deleted.

 

更新叢集節點資訊:

[grid@hisrac02 bin]$  ./runInstaller -updateNodeList ORACLE_HOME=/oracle/app/oracle/product/11.2.0/db_1 "CLUSTER_NODES=hisrac02" 

Starting Oracle Universal Installer...

 

Checking swap space: must be greater than 500 MB.   Actual 62929 MB    Passed

The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /oracle/app/oraInventory

'UpdateNodeList' was successful.

 

檢查確認僅剩餘hisrac02節點:

[grid@hisrac02 bin]$ olsnodes

hisrac02

 

 

至此,從叢集中清理hisrac01資訊完畢。


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23825935/viewspace-2917450/,如需轉載,請註明出處,否則將追究法律責任。

相關文章