Oracle 11g rac中关于crsctl stop cluster/crs/has的区别
转载至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的区别的更多相关文章
- Oracle 11g RAC oc4j/gsd Offline
Oracle 11g RAC中,发现oc4j以及gsd服务都处于offline状态,这是Oracle 11g RAC默认情形.即便如此,并不影响数据库的使用,因为 oc4j 是用于WLM 的一个资源, ...
- Oracle 11g RAC 修改各类IP地址
Oracle 11g RAC 修改各类IP地址 首先,我们都知道Oracle 11g RAC中的IP主要有:Public IP.VIP.SCAN VIP.Private IP这几种. 一般这类改IP地 ...
- Oracle 11g RAC运维总结
转至:https://blog.csdn.net/qq_41944882/article/details/103560879 1 术语解释1.1 高可用(HA)什么是高可用?顾名思义我们能轻松地理解是 ...
- Oracle 11g Rac 用rman实现把本地数据文件迁移到ASM共享存储中
在Oracle Rac环境中,数据文件都是要存放在ASM共享存储上的,这样两个节点才能同时访问.而当你在某一节点下把数据文件创建在本地磁盘的时候,那么在另一节点上要访问该数据文件的时候就会报错,因为找 ...
- Oracle 11g RAC环境下Private IP修改方法及异常处理
Oracle 11g RAC环境下Private IP修改方法及异常处理 Oracle 11g RAC环境下Private IP修改方法及异常处理 一. 修改方法 1. 确认所有节点CRS服务以启动 ...
- Oracle 11g RAC 环境下单实例非缺省监听及端口配置
如果在Oracle 11g RAC环境下使用dbca创建单实例数据库后,Oracle会自动将其注册到缺省的1521端口及监听器.大多数情况下我们使用的为非缺省监听器以及非缺省的监听端口.而且在Orac ...
- 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 ...
- [转帖]Oracle 11G RAC For Windows 2008 R2部署手册
Oracle 11G RAC For Windows 2008 R2部署手册(亲测,成功实施多次) https://www.cnblogs.com/yhfssp/p/7821593.html 总体规划 ...
- 转载:细说oracle 11g rac 的ip地址
本文转载自:细说oracle 11g rac 的ip地址 http://blog.sina.com.cn/s/blog_4fe6d4250102v5fa.html 以前搭建oracle rac的时候( ...
随机推荐
- 2015-09-23-Archlinux的一些配置
firefox的flash插件 pacman -S flashplugin firefox上网慢 由于Chromium浏览器,打字的时候经常会跳字母,所以就换了firefox浏览器,但是FF上网的时候 ...
- CentOS 7上Docker的安装
一.安装docker 1.Docker 要求 CentOS 系统的内核版本高于 3.10 ,查看本页面的前提条件来验证你的CentOS 版本是否支持 Docker . 通过 uname -r 命令查看 ...
- 设置Fiddler来抓取Android接口数据
1.下载安装fiddler,安装包可自行百度.安装完成打开fiddler 2.将Fiddler设置远程访问PC 选择Fiddler->Tools->Fiddler Option 3.选择C ...
- 吴裕雄--天生自然HTML学习笔记:HTML 框架
通过使用框架,你可以在同一个浏览器窗口中显示不止一个页面. iframe语法: <iframe src="URL"></iframe> 该URL指向不同的网 ...
- OpenResty+缓存穿透基本介绍
OpenResty 1.lua表达式 2.Nginx的安装 3.OpenResty ...
- 关于使用gitlab协同开发提交代码步骤
记录使用gitlab协同开发时从自己的分支向master分支提交代码的步骤: 环境:安装了git和TortoiseGit(git的可视化工具) 1.首先切换到自己的分支(如果不在自己的分支) 2.gi ...
- restful 和RPC 的区别
https://www.cnblogs.com/Dong-Ge/articles/9577019.html
- mysql中事务的并发问题与隔离级别
回归一下事务的四大特性ACID 1.原子性(Atomicity) 事务开始后所有操作,要么全部做完,要么全部不做.事务是一个不可分割的整体.事务在执行过程中出错,会回滚到事务开始之前的状态,以此来保证 ...
- get请求直接通过浏览器发请求传数组或者list到后台
原文链接: http://blog.csdn.net/qq_27093465/article/details/76160419 感谢原作者 例如: http://localhost:27001/tes ...
- ltp压力测试结果分析脚本
最近工作性质发生了改变,在做操作系统方面的测试.接手的第一个任务是做ltp stress.测试内核稳定性. 做完之后会结果进行统计分析.因为统计的内容比较多,都是通过shell命令行进行操作.于是编写 ...