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服务正常运行。
最新文章
- Python3.5 Day2作业:购物车程序
- Android Application类作用简单说明
- mybatis-spring从1.1升级到1.2所带来的dao层级的编写问题
- GoF的23个经典设计模式
- QiQi and Bonds
- (转)iPhone 判断UITableView 滚动到底部
- HDU 1026 Ignatius and the Princess I(BFS+优先队列)
- 《JavaScript高级程序设计》读书笔记 ---单体内置对象
- 雷达的L、S、C、X波段是什么
- vue 父组件传递子组件事件
- PostgreSQL 10.7 linux 主从配置
- SQL Server 关于 Table 字典数据的查询SQL
- Eslint检测出的问题如何自动修复
- hibernate框架学习之二级缓存
- Intellij IDEA 为常用代码添加快捷代码,补全代码
- Flink流处理操作符
- 吴恩达-coursera-机器学习-week1
- Java通过ScriptEngine 执行js脚本案例
- Fiddler基础用法-抓取浏览器数据包
- Linux watchdog 关闭退出功能