环境: RHEL 6.5 + Oracle GI 11.2.0.4 (2 nodes)

参考MOS文档

How to Deconfigure/Reconfigure(Rebuild OCR) or Deinstall Grid Infrastructure (文档 ID 1377349.1)

1.前期准备

确认各节点都是unpin的状态:

<GI_HOME>/bin/olsnodes -s -t

If a node is pinned, unpin it first, i.e. as root user:
<GI_HOME>/bin/crsctl unpin css -n <racnode1>

尽可能收集全集群相关的信息:

Before deconfiguring, collect the following as grid user if possible to generate a list of user resources to be added back to the cluster after reconfigure finishes:

$GRID_HOME/bin/crsctl stat res -t
$GRID_HOME/bin/crsctl stat res -p
$GRID_HOME/bin/crsctl query css votedisk
$GRID_HOME/bin/ocrcheck
$GRID_HOME/bin/oifcfg getif
$GRID_HOME/bin/srvctl config nodeapps -a
$GRID_HOME/bin/srvctl config scan
$GRID_HOME/bin/srvctl config asm -a
$GRID_HOME/bin/srvctl config listener -l <listener-name> -a
$DB_HOME/bin/srvctl config database -d <dbname> -a
$DB_HOME/bin/srvctl config service -d <dbname> -s <service-name> -v

2.删除GI

需要使用root用户:

# <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose
# <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode

先去节点2(所有远端节点)执行:

<$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose

[root@jystdrac2 ~]# /opt/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose
Using configuration parameter file: /opt/app/11.2.0/grid/crs/install/crsconfig_params
Network exists: 1/192.168.1.0/255.255.255.0/eth2, type static
VIP exists: /jystdrac1-vip/192.168.1.62/192.168.1.0/255.255.255.0/eth2, hosting node jystdrac1
VIP exists: /jystdrac2-vip/192.168.1.64/192.168.1.0/255.255.255.0/eth2, hosting node jystdrac2
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'jystdrac2'
CRS-2677: Stop of 'ora.registry.acfs' on 'jystdrac2' succeeded
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jystdrac2'
CRS-2673: Attempting to stop 'ora.crsd' on 'jystdrac2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'jystdrac2'
CRS-2673: Attempting to stop 'ora.oc4j' on 'jystdrac2'
CRS-2673: Attempting to stop 'ora.asm' on 'jystdrac2'
CRS-2677: Stop of 'ora.asm' on 'jystdrac2' succeeded
CRS-2677: Stop of 'ora.oc4j' on 'jystdrac2' succeeded
CRS-2672: Attempting to start 'ora.oc4j' on 'jystdrac1'
CRS-2676: Start of 'ora.oc4j' on 'jystdrac1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'jystdrac2' has completed
CRS-2677: Stop of 'ora.crsd' on 'jystdrac2' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'jystdrac2'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'jystdrac2'
CRS-2673: Attempting to stop 'ora.ctssd' on 'jystdrac2'
CRS-2673: Attempting to stop 'ora.evmd' on 'jystdrac2'
CRS-2673: Attempting to stop 'ora.asm' on 'jystdrac2'
CRS-2677: Stop of 'ora.mdnsd' on 'jystdrac2' succeeded
CRS-2677: Stop of 'ora.evmd' on 'jystdrac2' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'jystdrac2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'jystdrac2' succeeded
CRS-2677: Stop of 'ora.asm' on 'jystdrac2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'jystdrac2'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'jystdrac2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'jystdrac2'
CRS-2677: Stop of 'ora.cssd' on 'jystdrac2' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'jystdrac2'
CRS-2677: Stop of 'ora.crf' on 'jystdrac2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'jystdrac2'
CRS-2677: Stop of 'ora.gipcd' on 'jystdrac2' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'jystdrac2'
CRS-2677: Stop of 'ora.gpnpd' on 'jystdrac2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jystdrac2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Removing Trace File Analyzer
Successfully deconfigured Oracle clusterware stack on this node

再次查询验证会提示集群件没有配置:

[root@jystdrac2 ~]# su - grid
[grid@jystdrac2 ~]$ crsctl stat res -t
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Status failed, or completed with errors.
[grid@jystdrac2 ~]$ crsctl stat res -t -init
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Status failed, or completed with errors.
[grid@jystdrac2 ~]$

回到节点1操作:

<$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode

[root@jystdrac1 ~]# /opt/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode
Using configuration parameter file: /opt/app/11.2.0/grid/crs/install/crsconfig_params
CRS resources for listeners are still configured
Network exists: 1/192.168.1.0/255.255.255.0/eth2, type static
VIP exists: /jystdrac1-vip/192.168.1.62/192.168.1.0/255.255.255.0/eth2, hosting node jystdrac1
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'jystdrac1'
CRS-2677: Stop of 'ora.registry.acfs' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.crsd' on 'jystdrac1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.oc4j' on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.OCR.dg' on 'jystdrac1'
CRS-2677: Stop of 'ora.OCR.dg' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'jystdrac1'
CRS-2677: Stop of 'ora.asm' on 'jystdrac1' succeeded
CRS-2677: Stop of 'ora.oc4j' on 'jystdrac1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'jystdrac1' has completed
CRS-2677: Stop of 'ora.crsd' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.evmd' on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.asm' on 'jystdrac1'
CRS-2677: Stop of 'ora.evmd' on 'jystdrac1' succeeded
CRS-2677: Stop of 'ora.asm' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'jystdrac1'
CRS-2677: Stop of 'ora.ctssd' on 'jystdrac1' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'jystdrac1'
CRS-2677: Stop of 'ora.cssd' on 'jystdrac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'jystdrac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'jystdrac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'jystdrac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'jystdrac1'
CRS-2676: Start of 'ora.diskmon' on 'jystdrac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'jystdrac1' succeeded
CRS-4611: Successful deletion of voting disk +OCR.
ASM de-configuration trace file location: /tmp/asmcadc_clean2018-04-24_02-45-36-PM.log
ASM Clean Configuration START
ASM Clean Configuration END ASM with SID +ASM1 deleted successfully. Check /tmp/asmcadc_clean2018-04-24_02-45-36-PM.log for details. CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.crf' on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'jystdrac1'
CRS-2677: Stop of 'ora.crf' on 'jystdrac1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'jystdrac1' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'jystdrac1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'jystdrac1'
CRS-2677: Stop of 'ora.cssd' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'jystdrac1'
CRS-2677: Stop of 'ora.gipcd' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'jystdrac1'
CRS-2677: Stop of 'ora.gpnpd' on 'jystdrac1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jystdrac1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Removing Trace File Analyzer
Successfully deconfigured Oracle clusterware stack on this node
[root@jystdrac1 ~]#

至此,就成功删除了GI。

实验:记录一则删除GI的过程的更多相关文章

  1. 实验记录:Oracle redo logfile的resize过程

    实验记录:Oracle redo logfile的resize过程. 实验环境:RHEL 6.4 + Oracle 11.2.0.3 单实例 文件系统 实验目的:本实验是修改redo logfile的 ...

  2. 关闭生产订单时报错“订单&的未处理将来更改记录组织删除标记/完成”,消息号CO688

    消息号 CO688 诊断 仍存在未来的更改记录,或从订单的确认过程的确认中要处理的错误记录.可能的确认过程是: 自动收货 反冲 实际成本的计算 数据传输至 HR 系统响应 未打算对订单设置删除标记/‘ ...

  3. 记录手动签名APK的过程

    记录手动签名APK的过程 前两天更新了华为平台上的APK,被驳回,原因是新APK签名和老的APK不一致,老用户安装会失败,用命令行安装会报如下的错误: harlanc@harlancdeMacBook ...

  4. 记录sqoop同步失败问题解决过程,过程真的是很崎岖。(1月6日解决)

    记录sqoop同步失败问题解决过程,过程真的是很崎岖.事发原因:最近突然出现sqoop export to mysql时频繁出错.看了下日志是卡在某条数据过不去了,看异常.看sqoop生成的mr并未发 ...

  5. step_by_step_记录deepin下curl安装过程

    记录 deepin 下 curl 安装过程 wget https://curl.haxx.se/download/curl-7.55.1.tar.gz .tar.gz cd curl-/ ./conf ...

  6. case7 淋巴瘤子类分类实验记录

    case7 淋巴瘤子类分类实验记录 简介 分类问题:3分类 (identifying three sub-types of lymphoma: Chronic Lymphocytic Leukemia ...

  7. 使用Scapy向Mininet交换机注入流量 实验记录

    使用Scapy向Mininet交换机注入流量 实验记录 用Python脚本及Scapy库写了一个简单的流量生成脚本,并打算使用该脚本往Mininet中的OpenvSwitch交换机注入流量.拓扑图如下 ...

  8. 【Android实战】记录自学自己定义GifView过程,能同一时候支持gif和其它图片!【有用篇】

    之前写了一篇博客.<[Android实战]记录自学自己定义GifView过程,具体解释属性那些事! [学习篇]> 关于自己定义GifView的,具体解说了学习过程及遇到的一些类的解释,然后 ...

  9. linux中为什么删除文件比创建文件要快,读取文件和删除文件的过程是什么?

    一.为什么删除文件比创建文件要快? 因为删除文件只是将bitmap位图表中将文件所占据的inode 和dacablock的使用状态从1变成0,相当于释放了这些快的使用权. 二.读取文件和删除文件的过程 ...

随机推荐

  1. Imu_tk算法流程及数据采集要求和标定程序参数设置

    Imu_tk算法流程 由于VIO中,普遍使用的是精度较低的imu,所以其需要一个较为准确的内参数和noise的估计.Noise大家通常使用Allan方差进行估计可以得到较为可信的结果,这里不赘述了.内 ...

  2. [No0000106]配置PLSQL,提升工作效率

    界面模板的配置: 方便用户快速点击需要的功能.如打开SQL Window 1.打开customize,用户自定义Toolbars对话框. 2.在Commands命令标签页,选中要添加的命令,拖动到工具 ...

  3. python--列表、字典、元组、集合对比

    数据类型# 计算机能处理的远不止数值,还可以处理文本.图形.音频.视频.网页等各种各样的数据,不同的数据,需要定义不同的数据类型.# a:整形和浮点型(正数和负数)# b:布尔类型(true,fals ...

  4. [daily][CentOS][SELinux]用key免登陆不成功,原来是SElinux在搞事情

    为了提高效率,一般情况下,会把公钥放到sshd主机的 $HOME/.ssh/authorized_keys 文件内. 把私钥放在client的 $HOME/.ssh/ 下. 然后就可以免密登录了.然而 ...

  5. .net core开发工具与SDK

    一.开发工具 开发工具使用Visual Studio 2017 下载官网:https://visualstudio.microsoft.com/zh-hans/vs/ 相关的安装已经有很多文章介绍过, ...

  6. POJ1845 sumdiv 数论

    正解:小学数学数论 解题报告: 传送门! 其实不难但我数学这个方面太菜了所以还是多写点儿博客趴QAQ 然后因为是英文的所以先翻译一下,,,? 大概就是说求AB的所有约数之和,对9901取膜 这个只需要 ...

  7. 【python基础】hmac

    [微语]不应当急于求成,应当去熟悉自己的研究对象,锲而不舍,时间会成全一切.凡事开始最难:然而最难的是何以善终 通过哈希算法,我们可以验证一段数据是否有效,方法就是对比该数据的哈希值,例如,判断用户口 ...

  8. Dubbo服务化框架使用整理

    一.垂直应用架构拆分 在应用架构的演进过程中,垂直应用架构因为开发便捷,学习成本低,对于实现业务功能的增删改查提供了高效的开发支持,有利于前期业务高速发展的的快速实现.但是随着系统业务功能的不断扩展和 ...

  9. mysql之show engine innodb status解读(转)

    add by zhj: 我第一次知道这个命令是线上服务出了问题,然后同事用这个命令去查看死锁.但用这个命令看死锁有一定的局限性,它只能看到最后一次死锁, 而且只能看到死锁环中的两个事务所执行的最后一条 ...

  10. Requirejs 使用

    代码地址 参考地址1 参考地址2 一.不依赖其他模块的module创建 创建math的module // math.js define(function (){ var add = function ...