Owner's Manual
添加和删除节点 101
从数据库层中删除节点
1
在要删除的节点上,作为用户
oracle
登录。
2
使用要删除的节点的公用名称,输入以下命令。例如,如果您要删除
node3-pub
,
srvctl stop nodeapps -n node3-pub
忽略有关侦听程序的
错误
CRS-0210
。
3
在将要删除的节点上,请作为
root
登录。
4
如果要删除
Oracle
数据库软件,请输入以下命令:
rm -rf
<ORACLE_DB_HOME>/*
,其中
<ORACLE_DB_HOME>
类似于
/u01/app/oracle/product/10.2.0./db_1
。
从
Oracle
群集件层中删除节点
1
在要删除的节点上,作为用户
root
键入以下命令来禁用群集就绪服务
(CRS)
:
<ORACLE_CRS_HOME>install/rootdelete.s
h remote nosharedvar,
其中
<ORACLE_CRS_HOME>
类似于
/u01/app/oracle/product/11.1.0./crs/
。
2
在剩余的某个节点上,作为用户
root
键入以下命令:
<ORACLE_CRS_HOME>install/rootdelete
node.sh <public nodename>, <node-number>
,其中
<ORACLE_CRS_HOME>
类似于
/u01/app/oracle/product/11.1.0./crs/
。
<public nodename>
是要删除的节点的公用名称,而
<nodenumber>
是要删除的节点的节点编号。
3
要确定任何节点的节点编号,请键入以下命令:
<ORACLE_CRS_HOME>bin/olsnodes
-n
,
其中
<ORACLE_CRS_HOME>
类似于
/u01/app/oracle/product/10.2.0./crs/
。
4
在要删除的节点上,如果要删除
Oracle CRS
软件,请键入以下命令:
rm -rf <ORACLE_CRS_HOME>/*,
其中
<ORACLE_CRS_HOME>
类似于
/u01/app/oracle/product/10.2.0./crs
。