1节点2
使用dbca删除一个节点
2节点1
alter database disable thread 2;
3节点1
验证是否已经删除一个节点数据库
[03:49:06 oracle(db)@rac1 ~]$ srvctl config database -d prod
Database unique name: prod
Database name: prod
Oracle home: /u01/app/oracle/product/11.2.0/db
Oracle user: oracle
Spfile: DATA/prod/spfileprod.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: prod
Database instances: prod1
Disk Groups: DATA
Mount point paths:
Services:
Type: RAC
Database is administrator managed
4 节点1
停止节点2的监听
srvctl disable listener -l LISTENER -n rac2;
srvctl stop listener -l LISTENER -n rac2;
5节点2
更新节点信息
/u01/app/oracle/product/11.2.0/db/oui/bin/runInstaller -updateNodeList ORACLE_HOME=/u01/app/oracle/product/11.2.0/db “CLUSTER_NODES={rac2}” -local
6节点2
删除节点2的ORACLE软件
/u01/app/oracle/product/11.2.0/db/deinstall/deinstall -local
7节点1
更新剩余节点的信息
/u01/app/oracle/product/11.2.0/db/oui/bin/runInstaller -updateNodeList ORACLE_HOME=/u01/app/oracle/product/11.2.0/db “CLUSTER_NODES={rac1}”
删除oracle软件已经完成
下面来删除grid软件
8节点1
查看ons的资源情况
olsnodes -s -t
rac1 Active Unpinned
rac2 Active Unpinned
9节点2
以root用户执行rootcrs.pl 脚本清楚grid的配置信息
/u01/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -deinstall -force
10节点1
再次确认ons的资源情况
olsnodes -s -t
rac1 Active Unpinned
rac2 Inactive Unpinned
11节点1
root用户执行
删除另外一个节点的信息
crsctl delete node -n rac2
olsnodes -s -t
rac1 Active Unpinned
12节点2
oracle用户执行
/u01/app/11.2.0/grid/oui/bin/runInstaller -updateNodeList ORACLE_HOME=/u01/app/11.2.0/grid/ “CLUSTER_NODES=rac2” CRS=TRUE -silent -local
13节点2
卸载grid软件
oracle用户执行
/u01/app/11.2.0/grid/deinstall/deinstall -local
root 用户下执行
rm -rf /etc/oraInst.loc
rm -rf /opt/ORCLfmap
rm -rf /etc/oratab
14节点1
更新剩余节点的信息
oracle用户执行:
/u01/app/11.2.0/grid/oui/bin/runInstaller -updateNodeList ORACLE_HOME=/u01/app/11.2.0/grid/ “CLUSTER_NODES=rac1” CRS=TRUE -silent
15 节点1
检查是否已经删除
[04:24:28 oracle(db)@rac1 ~]$ cluvfy stage -post nodedel -n rac2 -verbose
Performing post-checks for node removal
Checking CRS integrity…
Clusterware version consistency passed
The Oracle Clusterware is healthy on node “rac1”
CRS integrity check passed
Result:
Node removal check passed
Post-check for node removal was successful.
可以看到节点删除成功
原文:http://blog.csdn.net/kiwi_kid/article/details/44110989
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/180085.html原文链接:https://javaforall.cn