Delete nodes from RAC 11.2.0.3 on Windows 2008

【本文目的】

本文是在原有windows 2008 server 基础上,删除Real Application Cluster 双节点中的其中一个节点(举例说明此次删除节点2),删除的整个过程如下:

  • Deleting Instances 2SHAPDB03)from Oracle Real Application Clusters 
  • Deleting Oracle Rac software 
  • Deleting Nodes 2SHAPDB03)from Oracle Real Application Clusters Databases
  • ASM Instance Clean-Up Procedures for Node Deletion

【更改过程】

Step 1: Deleting Instances from Oracle Real Application Clusters Databases

【Note】使用 DBCA 图形化方式删除数据库(节点2)


1. Start DBCA on a node other than the node that hosts the instance that you want to delete. On the DBCA Welcome page

 select Oracle Real Application Clusters Database, click Next, and DBCA displays the Operations page.

在另外不需要删除的节点(即chnprod1)命令航中执行“DBCA”,出现欢迎界面后,选择“Oracle Real Application Clusters Database”,点击【Next



2. On the DBCA Operations page, select Instance Management, click Next, and

DBCA displays the Instance Management page.

在“DBCA Operations page”页面,选择“Instance Management”,点击【Next】



3. On the Instance Management page, Select Delete Instance, click Next, and DBCA

displays the List of Cluster Databases page.

在“Instance Management page”页面,选择“Delete Instance”,点击【Next】



4. Select an Oracle RAC database from which to delete an instance. Enter a user name and password for the database user that has SYSDBA privileges.

Click Next and DBCA displays the List of Cluster Database Instances page.The List of Cluster Database Instances page shows the instances that

are associated with the Oracle RAC database that you selected and the status of each instance.

选择集群中对应要删除的节点(如SHAPDB03),输入sysdba权限后,点击【Next



5. Select an instance to delete and click Finish.

选中被删除的节点后,点击【Finish】



6. If you have services assigned to this instance, then the DBCA Services Management page appears.

 Use this feature to reassign services from this instance to other instances in the cluster database.

开始删除....instance



7. Review the information about the instance deletion operation on the Summary page and click OK.

Otherwise, click Cancel to cancel the instance deletion operation. If you click OK, then DBCA displays a Confirmation dialog.

重新查看实例删除的提示,并点击【OK



8.Verify that the dropped instance's redo thread has been removed using SQL*Plus to query the V$LOG view from an existing instance.

If the redo thread is not disabled, then disable the thread. For example:

SQL> ALTER DATABASE DISABLE THREAD 2;



9. Verify that the instance has been removed from OCR by running the following command, where db_unique_name is the name of the database:

srvctl config database -d db_unique_name



Step 2 Removing Oracle RAC

1. disable and stop listener on the node you are deleting (节点2

srvctl disable listener -l listener_name -n name_of_node_to_delete

srvctl stop listener -l listener_name -n name_of_node_to_delete



2. update the inventory on the node you are deleting

Run the following command from %ORACLE_HOME%\oui\bin on the node that you are deleting to update the inventory on that node(节点2):

setup.exe -updateNodeList ORACLE_HOME=Oracle_home_location

"CLUSTER_NODES={name_of_node_to_delete}" -local



3. For a nonshared home, deinstall the Oracle home from the node you are deleting(节点2)

ORACLE_HOME/deinstall/deinstall -local



4. update the inventories  on any one of the remaining nodes(节点1)

($ORACLE_HOME/oui/bin )

$ ./runInstaller -updateNodeList ORACLE_HOME=Oracle_home_location

"CLUSTER_NODES={remaining_node_list}"



Step 3: Deleting Nodes from Oracle Real Application Clusters Databases

1.删除节点前需要禁用cluster集群的应用和服务,在要删除的节点(节点2)上执行:

C:\>Grid_home\perl\bin\perl -I$Grid_home\perl\lib -I$Grid_home\crs\install

Grid_home\crs\install\rootcrs.pl -deconfig -force



2. On a node that you are not deleting, run the following command: 

C:\>Grid_home\bin\crsctl delete node -n node_to_be_deleted


3. 更新被删除节点的inventory信息(节点2)

run the following command as the user that installed Oracle Clusterware from the Grid_home/oui/bin directory

where node_to_be_deleted is the name of the node that you are deleting:

C:\>Grid_home\oui\bin\setup.exe -updateNodeList ORACLE_HOME=Grid_home "CLUSTER_NODES={node_to_be_deleted}" CRS=TRUE -local


4. 删除被删除节点的clusterware软件信息(节点2

Run the deinstall tool located in the %GRID_HOME%\deinstall directory to deinstall and deconfigure the Oracle Clusterware home, as follows:

C:\>Grid_home/deinstall/deinstall.bat


5. 在保留节点上重新注册集群信息(节点1

On any node that you are not deleting, run the following command from the Grid_home\oui\bin directory where remaining_nodes_list is a comma-delimited list of the nodes that are going to remain part of your cluster:

C:\>setup.exe –updateNodeList ORACLE_HOME=Grid_home

"CLUSTER_NODES={remaining_nodes_list}" CRS=TRUE -silent


6.检查结果

C:\>cluvfy stage -post nodedel -n node_list [-verbose]



Step 4: ASM Instance Clean-Up Procedures for Node Deletion

【补充部分】前面步骤若已成功删除,以下删除ASM过程可以忽略

If you are using ASM, then the delete node procedure requires the following additional steps to remove the ASM instances:

1. If this is the Oracle home from which the node-specific Listener named LISTENER_nodename runs, then use NETCA to remove this Listener. If

necessary, re-create this Listener in another home.


2. If this is the Oracle home from which the ASM instance runs, then remove the

ASM configuration by running the following command for all nodes on which this

Oracle home exists:

srvctl stop asm -n node

Then run the following command for the nodes that you are removing:

srvctl remove asm -n node    #node为被删除的节点


3. Run the following command on each node that you are going to delete that has an

ASM instance:

oradim -delete -asmsid +ASMnode_number   #+ASM1

Reference http://docs.oracle.com/cd/E24693_01/rac.11203/e16795/adddelwin.htm#CHDFIBBD

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值