1.首先介绍一下这3个服务
Has:是高可用服务,用在restart环境,可以是单机环境也可以是RAC环境,不管单机环境还是RAC环境,都可以执行crsctl check has,在RAC环境下,可以简单理解成cluster的一部分。
crs:是集群就绪服务,用在RAC环境,单机环境不能执行crsctl check crs,crsctl start crs不单单启动CRSD了,等于启动OHASD、CRSD、CSSD三者了。
cluster:就是集群的意思,用在RAC环境,单机环境不能执行crsctl check cluster。
2.通过命令查看has、crs、cluster管理的内容
[root@nxybj1 ~]# crsctl check has
CRS-4638: Oracle High Availability Services is online
[root@nxybj1 ~]# 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@nxybj1 ~]# 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管理的内容。
3.分别执行3条命令查看结果显示
3.1 停止cluster服务
root@nxybj1 ~]# crsctl stop cluster
CRS-2673: Attempting to stop ‘ora.crsd’ on ’nxybj1′
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on ’nxybj1′
CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr’ on ’nxybj1′
CRS-2673: Attempting to stop ‘ora.LISTENER_SCAN1.lsnr’ on ’nxybj1′
CRS-2673: Attempting to stop ‘ora.CRS.dg’ on ’nxybj1′
CRS-2673: Attempting to stop ‘ora.power.db’ on ’nxybj1′
CRS-2677: Stop of ‘ora.LISTENER.lsnr’ on ’nxybj1′ succeeded
CRS-2673: Attempting to stop ‘ora.nxybj1.vip’ on ’nxybj1′
CRS-2677: Stop of ‘ora.LISTENER_SCAN1.lsnr’ on ’nxybj1′ succeeded
CRS-2673: Attempting to stop ‘ora.scan1.vip’ on ’nxybj1′
CRS-2677: Stop of ‘ora.scan1.vip’ on ’nxybj1′ succeeded
CRS-2672: Attempting to start ‘ora.scan1.vip’ on ’nxybj2′
CRS-2677: Stop of ‘ora.nxybj1.vip’ on ’nxybj1′ succeeded

最低0.47元/天 解锁文章
2200

被折叠的 条评论
为什么被折叠?



