windows RAC 删除失败节点,添加节点实例操作文档

平台介绍:

OS:Windows server 2004, Oracle :10.2.0.4.0

实施步骤:

1)重新安装rac2的操作系统

2)删除节点

3)添加新节点

4)配置新的节点

.安装RAC2操作系统(步骤略)。

.删除节点:

 2.1 Onrac1, or on any node that you are not deleting, run the following   command from CRS_home\bin

 crssetup del –nnnode_name,node_number

spacer.gif

spacer.gif

spacer.gif

spacer.gif

spacer.gif

2.2可以发现rac3的资源仍然在集群中注册。

.C:\oracle\product\10.2.0\crs\BIN>crs_stat-t -v  
名称          类型           R/RA  F/FT   目标      状态      主机
----------------------------------------------------------------------
ora....B1.inst application    0/5    0/0   ONLINE    ONLINE    rac1
ora....B2.inst application    0/5    0/0   ONLINE    OFFLINE
ora....RLIB.db application    0/0    0/1   ONLINE    ONLINE    rac1
ora....C1.lsnr application    0/5    0/0    ONLINE   ONLINE    rac1
ora.rac1.gsd   application    0/5    0/0   ONLINE    ONLINE    rac1
ora.rac1.ons   application    0/3    0/0   ONLINE    ONLINE    rac1
ora.rac1.vip   application    0/0    0/0   ONLINE    ONLINE    rac1
ora....C2.lsnr application    0/5    0/0   OFFLINE   OFFLINE
ora.rac2.vip   application    0/0    0/0   OFFLINE   OFFLINE

手动取消rac2的所有资源注册,可以用crs_stat查看rac2的集群资源注册情况:

C:\oracle\product\10.2.0\crs\BIN>crs_unregister.exeora.INTERLIB.INTERLIB2.inst
C:\oracle\product\10.2.0\crs\BIN>crs_unregister.exe ora.rac2.LISTENER_RAC2.lsnr
C:\oracle\product\10.2.0\crs\BIN>crs_unregister.exe ora.rac2.vip

更新节点信息:

setup.exe -updateNodeListORACLE_HOME=Oracle_home "CLUSTER_NODES={node_list}"

C:\oracle\product\10.2.0\db_1\oui\bin>setup.exe -updateNodeListORACLE_HOME=C:\oracle\product\10.2.0\db_1\ "CLUSTER_NODES={rac1}"

spacer.gif

setup.exe-updateNodeList ORACLE_HOME=CRS_home "CLUSTER_NODES={node_list}"

C:\oracle\product\10.2.0\crs\oui\bin>setup.exe -updateNodeListORACLE_HOME=C:\oracle\product\10.2.0\crs\ "CLUSTER_NODES={rac1}"CRS=TRUE

spacer.gif

2.3验证删除结果:

spacer.gif

spacer.gif

.添加节点:

 3.1 Go to CRS_home\oui\bin on node1 and runthe addnode.bat script

spacer.gif

 

spacer.gif

 

spacer.gif

 

spacer.gif

3.2 From CRS_home\install on node1,run the crssetup.add.bat script.

spacer.gif

这里有报错,请在新的节点执行vipca配置vip;

3.3检查新的节点CRS相关的所有服务已经启动:

spacer.gif

在新节点上执行CRS_HOME/bin/vipca.bat,为新的节点配置vip资源;

(网卡名须用英文或者数字)

spacer.gif

spacer.gif

spacer.gif

spacer.gif

配置成功:

spacer.gif

3.4添加ORACLE_HOME到新的节点:Go to Oracle_home\oui\bin on node1 andrun the addnode.bat script
spacer.gif

 

spacer.gif

 

spacer.gif

3.5.运行DBCA添加新的实例:

spacer.gif

 

spacer.gif

spacer.gif

spacer.gif

spacer.gif

spacer.gif

spacer.gif

 

spacer.gif

spacer.gif

spacer.gif

 

 

spacer.gif

 


.配置新的节点:

4.1在存活节点上为新的节点添加REDO log解决上面ORA-02174错误,

ALTER  DATABASE ENABLE THREAD 2 执行该SQL,启用第二个节点的redo

4.2.启动新的节点。

========================== The  end =========================================