溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

Oracle 10G RAC 刪除已有節(jié)點

發(fā)布時間:2020-06-16 03:08:03 來源:網(wǎng)絡(luò) 閱讀:325 作者:刀刀_高揚 欄目:關(guān)系型數(shù)據(jù)庫

如果現(xiàn)在在RAC集群中有三個節(jié)點c1、c2、c3:

如果想要卸載c3節(jié)點。

1、在c1或者c2上刪除c3實例

運行dbca

然后選擇Oracle Real Application Clusters database

選擇Instance Management

選擇Delete an instance

選擇實例,填寫用戶名密碼,Next

選擇c3: instance3,Next

執(zhí)行完畢

2、刪除r3的ASM實例(如果有的話)

在c1或者c2上,在Oracle用戶下:

srvctl stop asm -n c3

srvctl remove asm -n c3

3、用netca卸載刪除監(jiān)聽

在c1或者c2上,netca

選擇Cluster configuration,

選擇c3節(jié)點,

選擇Listener configuration,

選擇Delete,

選擇LISTENER

4、更新oraInventory

在c1或者c2上

在$ORACLE_HOME/oui/bin中

執(zhí)行:./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES=c1,c2"

在c3上

在$ORACLE_HOME/oui/bin中

執(zhí)行:./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES=c1,c2"

./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES=c3" -local

5、在c3刪除oracle軟件

在$ORACLE_HOME/bin中

./runInstaller -deinstall

只刪除數(shù)據(jù)庫軟件(不要刪除集群軟件)

6、刪除其余資源

在c1或者c2上

在oracle用戶下:

/u01/crs_1/bin/srvctl stop nodeapps -n c3

在root用戶下:
/u01/crs_1/bin/srvctl remove nodeapps -n c3

7、刪除c3的集群

在c3上

cd /u01/crs_1/install/

./rootdelete.sh

8、在c1上刪除c3

在root用戶下

cd /u01/crs_1/install

./rootdeletenodesh c3 3

9、在c1刪除c3的clusterware記錄信息

cd /u01/crs_1/oui/bin

./runInstaller -updateNodeList ORACLE_HOME=/u01/crs_1 "CLUSTER_NODES=c1,c2" CRS=TRUE

10、在c3上更新oraInventory

cd /u01/crs_1/oui/bin

./runInstaller -updateNodeList ORACLE_HOME=/u01/crs_1 "CLUSTER_NODES=c3" CRS=TRUE -local

11、在c3上刪除clusterware軟件

cd /u01/crs_1/oui/bin

./runInstaller -deinstall

注意:

在中途可以用crs_stat -t查看資源狀態(tài)

可以用srvctl stop xxx -n c3停止一個資源

可以用srvctl remove xxx -n c3移除一個資源


向AI問一下細節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI