转载至http://www.oracleplus.net/arch/1203.html,整理后得。

1 通过命令查看cluster/has/crs管理的内容

[root@11rac1 ~]# crsctl check crs

CRS-4638: Oracle High Availability Services is online

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

[root@11rac1 ~]# crsctl check has

CRS-4638: Oracle High Availability Services is online

[root@11rac1 ~]# crsctl check cluster

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

这里可以看到crs显示的内容=has+cluster显示的内容

2 分别执行3条命令查看结果显示

2.1 crsctl stop cluster

root@11rac1 ~]# crsctl stop cluster

CRS-2673: Attempting to stop ‘ora.crsd’ on ’11rac1′

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on ’11rac1′

CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.LISTENER_SCAN1.lsnr’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.CRS.dg’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.power.db’ on ’11rac1′

CRS-2677: Stop of ‘ora.LISTENER.lsnr’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.11rac1.vip’ on ’11rac1′

CRS-2677: Stop of ‘ora.LISTENER_SCAN1.lsnr’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.scan1.vip’ on ’11rac1′

CRS-2677: Stop of ‘ora.scan1.vip’ on ’11rac1′ succeeded

CRS-2672: Attempting to start ‘ora.scan1.vip’ on ’11rac2′

CRS-2677: Stop of ‘ora.11rac1.vip’ on ’11rac1′ succeeded

CRS-2672: Attempting to start ‘ora.11rac1.vip’ on ’11rac2′

CRS-2677: Stop of ‘ora.power.db’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.DATA.dg’ on ’11rac1′

CRS-2676: Start of ‘ora.11rac1.vip’ on ’11rac2′ succeeded

CRS-2676: Start of ‘ora.scan1.vip’ on ’11rac2′ succeeded

CRS-2672: Attempting to start ‘ora.LISTENER_SCAN1.lsnr’ on ’11rac2′

CRS-2677: Stop of ‘ora.DATA.dg’ on ’11rac1′ succeeded

CRS-2676: Start of ‘ora.LISTENER_SCAN1.lsnr’ on ’11rac2′ succeeded

CRS-2677: Stop of ‘ora.CRS.dg’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.asm’ on ’11rac1′

CRS-2677: Stop of ‘ora.asm’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.ons’ on ’11rac1′

CRS-2677: Stop of ‘ora.ons’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.net1.network’ on ’11rac1′

CRS-2677: Stop of ‘ora.net1.network’ on ’11rac1′ succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on ’11rac1′ has completed

CRS-2677: Stop of ‘ora.crsd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.ctssd’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.evmd’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.asm’ on ’11rac1′

CRS-2677: Stop of ‘ora.evmd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.ctssd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.asm’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip’ on ’11rac1′

CRS-2677: Stop of ‘ora.cluster_interconnect.haip’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.cssd’ on ’11rac1′

CRS-2677: Stop of ‘ora.cssd’ on ’11rac1′ succeeded

[root@11rac1 ~]# crsctl check crs

CRS-4638: Oracle High Availability Services is online

CRS-4535: Cannot communicate with Cluster Ready Services

CRS-4530: Communications failure contacting Cluster Synchronization Services daemon

CRS-4534: Cannot communicate with Event Manager

[root@11rac1 ~]# crsctl check has

CRS-4638: Oracle High Availability Services is online

[root@11rac1 ~]# crsctl check cluster

CRS-4535: Cannot communicate with Cluster Ready Services

CRS-4530: Communications failure contacting Cluster Synchronization Services daemon

CRS-4534: Cannot communicate with Event Manager

这里可以看到stop cluster停了Clusterware stack,其实也就是官方文档中指的Cluster Ready Services Stack。

2.2 crsctl stop has

继续上面的操作

[root@11rac1 ~]# crsctl stop has

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ’11rac1′

CRS-2673: Attempting to stop ‘ora.mdnsd’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.crf’ on ’11rac1′

CRS-2677: Stop of ‘ora.crf’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.gipcd’ on ’11rac1′

CRS-2677: Stop of ‘ora.mdnsd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.gipcd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.gpnpd’ on ’11rac1′

CRS-2677: Stop of ‘ora.gpnpd’ on ’11rac1′ succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ’11rac1′ has completed

CRS-4133: Oracle High Availability Services has been stopped.

stop has停的就是官方文档中的Oracle High Availability Services Stack,但是Oracle High Availability Services Stack属于Cluster Ready Services Stack依赖的底层,所以在停Oracle High Availability Services Stack会自动停Cluster Ready Services Stack,如下:

[root@11rac1 ~]# crsctl stop has

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ’11rac1′

CRS-2673: Attempting to stop ‘ora.crsd’ on ’11rac1′

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on ’11rac1′

CRS-2673: Attempting to stop ‘ora.CRS.dg’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.power.db’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr’ on ’11rac1′

CRS-2677: Stop of ‘ora.LISTENER.lsnr’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.11rac1.vip’ on ’11rac1′

CRS-2677: Stop of ‘ora.11rac1.vip’ on ’11rac1′ succeeded

CRS-2672: Attempting to start ‘ora.11rac1.vip’ on ’11rac2′

CRS-2677: Stop of ‘ora.power.db’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.DATA.dg’ on ’11rac1′

CRS-2676: Start of ‘ora.11rac1.vip’ on ’11rac2′ succeeded

CRS-2677: Stop of ‘ora.DATA.dg’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.CRS.dg’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.asm’ on ’11rac1′

CRS-2677: Stop of ‘ora.asm’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.ons’ on ’11rac1′

CRS-2677: Stop of ‘ora.ons’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.net1.network’ on ’11rac1′

CRS-2677: Stop of ‘ora.net1.network’ on ’11rac1′ succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on ’11rac1′ has completed

CRS-2677: Stop of ‘ora.crsd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.crf’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.ctssd’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.evmd’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.asm’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.mdnsd’ on ’11rac1′

CRS-2677: Stop of ‘ora.crf’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.evmd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.mdnsd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.ctssd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.asm’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip’ on ’11rac1′

CRS-2677: Stop of ‘ora.cluster_interconnect.haip’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.cssd’ on ’11rac1′

CRS-2677: Stop of ‘ora.cssd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.gipcd’ on ’11rac1′

CRS-2677: Stop of ‘ora.gipcd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.gpnpd’ on ’11rac1′

CRS-2677: Stop of ‘ora.gpnpd’ on ’11rac1′ succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ’11rac1′ has completed

CRS-4133: Oracle High Availability Services has been stopped.

这里可以看到在停has的时候,自动把上层服务也停了。

2.3 crsctl stop crs

这里的CRS其实指的是整个ORACLE集群,也不是 Cluster Ready Services Stack的简写。

[root@11rac1 ~]# crsctl stop crs

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ’11rac1′

CRS-2673: Attempting to stop ‘ora.crsd’ on ’11rac1′

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on ’11rac1′

CRS-2673: Attempting to stop ‘ora.CRS.dg’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.power.db’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr’ on ’11rac1′

CRS-2677: Stop of ‘ora.LISTENER.lsnr’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.11rac1.vip’ on ’11rac1′

CRS-2677: Stop of ‘ora.11rac1.vip’ on ’11rac1′ succeeded

CRS-2672: Attempting to start ‘ora.11rac1.vip’ on ’11rac2′

CRS-2677: Stop of ‘ora.power.db’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.DATA.dg’ on ’11rac1′

CRS-2676: Start of ‘ora.11rac1.vip’ on ’11rac2′ succeeded

CRS-2677: Stop of ‘ora.DATA.dg’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.CRS.dg’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.asm’ on ’11rac1′

CRS-2677: Stop of ‘ora.asm’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.ons’ on ’11rac1′

CRS-2677: Stop of ‘ora.ons’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.net1.network’ on ’11rac1′

CRS-2677: Stop of ‘ora.net1.network’ on ’11rac1′ succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on ’11rac1′ has completed

CRS-2677: Stop of ‘ora.crsd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.crf’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.ctssd’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.evmd’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.asm’ on ’11rac1′

CRS-2673: Attempting to stop ‘ora.mdnsd’ on ’11rac1′

CRS-2677: Stop of ‘ora.crf’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.evmd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.mdnsd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.ctssd’ on ’11rac1′ succeeded

CRS-2677: Stop of ‘ora.asm’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip’ on ’11rac1′

CRS-2677: Stop of ‘ora.cluster_interconnect.haip’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.cssd’ on ’11rac1′

CRS-2677: Stop of ‘ora.cssd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.gipcd’ on ’11rac1′

CRS-2677: Stop of ‘ora.gipcd’ on ’11rac1′ succeeded

CRS-2673: Attempting to stop ‘ora.gpnpd’ on ’11rac1′

CRS-2677: Stop of ‘ora.gpnpd’ on ’11rac1′ succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ’11rac1′ has completed

CRS-4133: Oracle High Availability Services has been stopped.

通过上面的简单测试,可以得出两点:

1,crsctl stop crs=crsctl stop cluster+crsctl stop has,前提是先停cluster后,再停has

2,crsctl stop crs=crsctl stop has,如果之前没有Oracle手动停cluster,那么crsctl stop crs与crsctl stop has的效果一样

另外crsctl stop crs与crsctl stop has都只能操作当前节点,crsctl stop cluster可以一次操作集群中多个节点,前提是HAS服务正常运行。

Oracle 11g rac中关于crsctl stop cluster/crs/has的区别的更多相关文章

  1. Oracle 11g RAC oc4j/gsd Offline

    Oracle 11g RAC中,发现oc4j以及gsd服务都处于offline状态,这是Oracle 11g RAC默认情形.即便如此,并不影响数据库的使用,因为 oc4j 是用于WLM 的一个资源, ...

  2. Oracle 11g RAC 修改各类IP地址

    Oracle 11g RAC 修改各类IP地址 首先,我们都知道Oracle 11g RAC中的IP主要有:Public IP.VIP.SCAN VIP.Private IP这几种. 一般这类改IP地 ...

  3. Oracle 11g RAC运维总结

    转至:https://blog.csdn.net/qq_41944882/article/details/103560879 1 术语解释1.1 高可用(HA)什么是高可用?顾名思义我们能轻松地理解是 ...

  4. Oracle 11g Rac 用rman实现把本地数据文件迁移到ASM共享存储中

    在Oracle Rac环境中,数据文件都是要存放在ASM共享存储上的,这样两个节点才能同时访问.而当你在某一节点下把数据文件创建在本地磁盘的时候,那么在另一节点上要访问该数据文件的时候就会报错,因为找 ...

  5. Oracle 11g RAC环境下Private IP修改方法及异常处理

    Oracle 11g RAC环境下Private IP修改方法及异常处理 Oracle 11g RAC环境下Private IP修改方法及异常处理 一. 修改方法 1. 确认所有节点CRS服务以启动 ...

  6. Oracle 11g RAC 环境下单实例非缺省监听及端口配置

    如果在Oracle 11g RAC环境下使用dbca创建单实例数据库后,Oracle会自动将其注册到缺省的1521端口及监听器.大多数情况下我们使用的为非缺省监听器以及非缺省的监听端口.而且在Orac ...

  7. Oracle 11g RAC 自动应用PSU补丁简明版

    环境:Oracle RAC(GI 11.2.0.4 + DB 11.2.0.4) 本文应用补丁信息: Patch 23615403 - Combo of OJVM Component 11.2.0.4 ...

  8. [转帖]Oracle 11G RAC For Windows 2008 R2部署手册

    Oracle 11G RAC For Windows 2008 R2部署手册(亲测,成功实施多次) https://www.cnblogs.com/yhfssp/p/7821593.html 总体规划 ...

  9. 转载:细说oracle 11g rac 的ip地址

    本文转载自:细说oracle 11g rac 的ip地址 http://blog.sina.com.cn/s/blog_4fe6d4250102v5fa.html 以前搭建oracle rac的时候( ...

随机推荐

  1. MOOC(14)- 从数据库中获取预期结果

    数据库中的预期结果写的是SQL语句 从表格中读取到SQL语句,再去数据库获取真正的预期结果 # -*- coding: utf-8 -*- # @Time : 2020/2/18 9:50 # @Fi ...

  2. cs231n spring 2017 lecture11 Detection and Segmentation

    1. Semantic Segmentation 把每个像素分类到某个语义. 为了减少运算量,会先降采样再升采样.降采样一般用池化层,升采样有各种“Unpooling”.“Transpose Conv ...

  3. JavaScript小数转百分比

    在浏览器的控制台操作0.28*100会得到28.000000000000004这样一个不太精确的值 进行转换 toPercent(point){ let str = Number(point * 10 ...

  4. python3下应用pymysql(第一卷)

    编程不会操作数据库,就像男人做做了太监,人生不完整,我不想人生不完整,写下pymysql的使用总结 先做下准备工作,准备下数据表,由于是练习操作,所以先做个简单的数据表: 创建单独的一个库:再创建表 ...

  5. SSM 生成mapper中xml文件:未能解析映射资源:“文件嵌套异常

    错误日记我就网上随便找个贴着: 错误一: org.springframework.beans.factory.BeanCreationException: Error creating bean wi ...

  6. 吴裕雄--天生自然HTML学习笔记:HTML 标题

    在 HTML 文档中,标题很重要. HTML 标题 标题(Heading)是通过 <h1> - <h6> 标签进行定义的. <h1> 定义最大的标题. <h6 ...

  7. input系统——android input系统

    AndroidInput系统--JNI NativeInputManager InputManger InputReader AndroidInput系统--InputReader AndroidIn ...

  8. sql性能优化浅谈

    sql性能优化总结: 最近随着数据越来越多,数据库性能问题暴露的越来越严重.几百万,上千万,甚至过亿的数据处理速度会非常的慢. 下面对工作中遇到的问题做下总结,希望以后能对日后的工作有所帮助. 不同的 ...

  9. Django学习之路02

    静态文件配置 html文件默认全都放在templates文件夹下 对于前段已经写好了的文件, 我们只是拿过来使用 那么这些文件都可以称之为叫"静态文件"静态文件可以是 bootst ...

  10. Java的锁机制--synchronsized关键字

    引言 高并发环境下,多线程可能需要同时访问一个资源,并交替执行非原子性的操作,很容易出现最终结果与期望值相违背的情况,或者直接引发程序错误. 举个简单示例,存在一个初始静态变量count=0,两个线程 ...