Oracle RAC中停止has、crs、cluster的区别

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.通过命令查看hascrscluster管理的内容

[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

CRS-2672: Attempting to start ‘ora.nxybj1.vip’ on ’nxybj2′

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

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

CRS-2676: Start of ‘ora.nxybj1.vip’ on ’nxybj2′ succeeded

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 

[root@nxybj1 ~]# 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@nxybj1 ~]# crsctl check has

CRS-4638: Oracle High Availability Services is online

 

[root@nxybj1 ~]# 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。

3.2 停止has服务

在官方文档中,停止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@nxybj1 ~]# crsctl stop has

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

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.CRS.dg’ on ’nxybj1′

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

CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr’ 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.nxybj1.vip’ on ’nxybj1′ succeeded

CRS-2672: Attempting to start ‘ora.nxybj1.vip’ on ’nxybj2′

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

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

CRS-2676: Start of ‘ora.nxybj1.vip’ on ’nxybj2′ succeeded

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 

3.3 停止crs服务

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

[root@nxybj1 ~]# crsctl stop crs

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

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.CRS.dg’ on ’nxybj1′

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

CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr’ 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.nxybj1.vip’ on ’nxybj1′ succeeded

CRS-2672: Attempting to start ‘ora.nxybj1.vip’ on ’nxybj2′

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

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

CRS-2676: Start of ‘ora.nxybj1.vip’ on ’nxybj2′ succeeded

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 

通过上面对3个服务的停止测试,可以得到以下结论

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的效果一样

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

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/438696.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

网站可疑问题

目标站点 Google hack 页面访问 抓包 POST /admin.php?actionlogin HTTP/2 Host: www.xjy.edu.cn Cookie: xkm_sidA6x4Cgw2zx User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0 Accept: text/html,application/xhtmlxml,appl…

使用 Light Chaser 进行大屏数据可视化

引言 在当今数据驱动的世界中,数据可视化变得越来越重要。Light Chaser 是一款基于 React 技术栈的大屏数据可视化设计工具,通过简单的拖拽操作,你可以快速生成漂亮、美观的数据可视化大屏和看板。本文将介绍如何使用 Light Chaser 进行数据…

Redis:string类型

Redis:string类型 string命令设置与读取SETGETMSETMGET 数字操作INCRINCRBYDECRDECRBYINCRBYFLOAT 字符串操作APPENDSTRLENGETRANGESETRANGE 内部编码intembstrraw 在Redis中,字符串string存储的是二进制,以byte为单位,输入的二进…

【HTML+CSS】留言板plus实现全过程

创建一个具有动态留言的简约风格留言板 在本教程中,我们将学习如何创建一个简约风格的留言板,它具备动态留言显示和一些基本动画效果。这个留言板将使用HTML和CSS构建,最终实现一个既美观又实用的界面。 准备工作 首先,确保你的…

面试速通宝典——7

150. 数据库连接池的作用 数据库连接池的作用包括以下几个方面: 资源重用:连接池允许多个客户端共享有限的数据库连接,减少频繁创建和销毁连接的开销,从而提高资源的利用率。 统一的连接管理:连接池集中管理数据库连…

Stream流的终结方法(一)

1.Stream流的终结方法 2.forEach 对于forEach方法,用来遍历stream流中的所有数据 package com.njau.d10_my_stream;import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.function.Consumer; import java.util…

Swagger配置且添加小锁(asp.net)(笔记)

此博客是基于 asp.net core web api(.net core3.1)框架进行操作的。 一、安装Swagger包 在 NuGet程序包管理中安装下面的两个包: swagger包:Swashbuckle.AspNetCore swagger包过滤器:Swashbuckle.AspNetCore.Filters 二、swagger注册 在…

戴尔PowerEdge R840服务器亮黄灯 不开机

最近接修到一台东莞用户的DELL PowerEdge R840 服务器因为意外断电后,无法正常开机的问题, 大概故障现象是 插上电源线 按卡机按钮无响应,无法开机,无显示输出,工程师到现场检修,经过idrac中日志分析&#…

K8S真正删除pod

假设k8s的某个命名空间如(default)有一个运行nginx 的pod,而这个pod是以kubectl run pod命令运行的 1.错误示范: kubectl delete pod nginx-2756690723-hllbp 结果显示这个pod 是删除了,但k8s很快自动创建新的pod,但是…

C(九)while循环 --- 军训匕首操情景

匕首操,oi~oi~oi~~~~~ 接下来的几篇推文,杰哥记录的是三大循环结构的运行流程及其变式。 本篇的主角是while循环。👉 目录: while循环 的组成、运行流程及其变式关键字break 和 continue 在while 循环中的作用while 循环的嵌套题目…

基于SSM的坚果金融投资管理系统、坚果金融投资管理平台的设计与开发、智慧金融投资管理系统的设计与实现、坚果金融投资管理系统的设计与应用研究(源码+定制+开发)

博主介绍: ✌我是阿龙,一名专注于Java技术领域的程序员,全网拥有10W粉丝。作为CSDN特邀作者、博客专家、新星计划导师,我在计算机毕业设计开发方面积累了丰富的经验。同时,我也是掘金、华为云、阿里云、InfoQ等平台…

我为什么决定关闭ChatGPT的记忆功能?

你好,我是三桥君 几个月前,ChatGPT宣布即将推出一项名为“记忆功能”的新特性,英文名叫memory。 这个功能听起来相当吸引人,宣传口号是让GPT更加了解用户,仿佛是要为我们每个人量身打造一个专属的AI助手。 在记忆功…

vue结合element-ui实现列表拖拽变化位置,点击拖动图标拖动整个列表元素,使用tsx格式编写

先来看下需要实现的效果 当鼠标放在左侧图标上时,可以拖动整个列表元素,调整顺序 思路介绍 使用draggable可以设置元素可拖动,然后分别设置三个事件处理函数,监听onDragstart、onDragover、onDragend三个事件 注意&#xff1a…

青少年科普教学系统小程序的设计

管理员账户功能包括:系统首页,个人中心,管理员管理,基础数据管理,作品信息管理,通知公告管理,视频信息管理,系统管理 微信端账号功能包括:系统首页,视频信息&…

html+css+js实现Collapse 折叠面板

实现效果&#xff1a; HTML部分 <div class"collapse"><ul><li><div class"header"><h4>一致性 Consistency</h4><span class"iconfont icon-jiantou"></span></div><div class"…

【unity进阶知识6】Resources的使用,如何封装一个Resources资源管理器

文章目录 一、Unity资源加载的几种方式1、Inspector窗口拖拽2、Resources3、AssetBundle4、Addressables&#xff08;可寻址资源系统&#xff09;5、AssetDatabase 二、准备三、同步加载Resources资源1、Resources.Load同步加载单个资源1.1、基本加载1.2、加载指定类型的资源1.…

泛型编程--模板【C++提升】(特化、类属、参数包的展开、static、模板机制、重载......你想知道的全都有)

更多精彩内容..... &#x1f389;❤️播主の主页✨&#x1f618; Stark、-CSDN博客 本文所在专栏&#xff1a; C系列语法知识_Stark、的博客-CSDN博客 其它专栏&#xff1a; 数据结构与算法_Stark、的博客-CSDN博客 C系列项目实战_Stark、的博客-CSDN博客 座右铭&#xff1a;梦…

国外电商系统开发-运维系统批量添加服务器

您可以把您准备的txt文件&#xff0c;安装要求的格式&#xff0c;复制粘贴到里面就可以了。注意格式&#xff01; 如果是“#” 开头的&#xff0c;则表示注释&#xff01;

网盘能否作为FTP替代产品?企业该如何进行FTP国产化替代?

近年来&#xff0c;信创的概念引入和高效实践落地让更多的行业企业自发性地进行国产化替代&#xff0c;目前信创国产化替代还多发生在操作系统和应用层面&#xff0c;软件工具等目前还在下一阶段规划&#xff0c;但很多企业未雨绸缪&#xff0c;已经在做调研和尝试。 FTP作为世…

一些 Go Web 开发笔记

原文&#xff1a;Julia Evans - 2024.09.27 在过去的几周里&#xff0c;我花了很多时间在用 Go 开发一个网站&#xff0c;虽然不知道它最终会不会发布&#xff0c;但在这个过程中我学到了一些东西&#xff0c;想记录下来。以下是我的一些收获&#xff1a; Go 1.22 现在有了更…