ORACLE 11g RAC 集群的管理与维护(3) —— crsctl 命令之(三) :管理 crs

CRS(Cluster Ready Service,集群就绪服务)。CRS 主要完成集群成员管理、心跳监控、故障切换等功能。通过 CRS 将多个节点的操作系统绑定到一起,客户端对集群的访问就像访问一台服务器一样。CRS 包括 voting disk(表决磁盘) 和 Oracle Cluster Registry(OCR,Oracle 集群注册服务)。

(1)voting disk(表决磁盘):表决磁盘放在共享存储,以保证每个节点都能访问。当集群节点发生故障时,通过表决磁盘进行投票仲裁。
(2)Oracle Cluster Registry(OCR,集群注册服务):用于记录 RAC 集群和数据库的配置信息。包括集群节点的列表、集群数据库实例到节点的映射以及 CRS 应用程序资源信息。

一、查询 CRS 的相关信息

1、crsctl query crs administrator

查询具有 Oracle Clusterware 管理权限的用户列表:

[root@rac1 bin]# pwd
/u01/app/11.2.0/grid/bin[root@rac1 bin]# ./crsctl query crs administrator
CRS Administrator List: *

2、crsctl query crs activeversion

查询集群中运行的 Oracle Clusterware 软件的 activex 版本:

[root@rac1 bin]# pwd
/u01/app/11.2.0/grid/bin[root@rac1 bin]# ./crsctl query crs activeversion
Oracle Clusterware active version on the cluster is [11.2.0.4.0]

3、crsctl query crs releaseversion

查询本地节点上二进制文件中存储的 Oracle Clusterware 软件的版本:

[root@rac1 bin]# pwd
/u01/app/11.2.0/grid/bin[root@rac1 bin]# ./crsctl query crs releaseversion
Oracle High Availability Services release version on the local node is [11.2.0.4.0]

4、crsctl query crs softwareversion

查询在当前节点或指定节点上成功启动的软件的最新版本:

[root@rac1 bin]# pwd
/u01/app/11.2.0/grid/bin[root@rac1 bin]# ./crsctl query crs softwareversion
Oracle Clusterware version on node [rac1] is [11.2.0.4.0][root@rac1 bin]# ./crsctl query crs softwareversion rac1
Oracle Clusterware version on node [rac1] is [11.2.0.4.0][root@rac1 bin]# ./crsctl query crs softwareversion rac2
Oracle Clusterware version on node [rac2] is [11.2.0.4.0]

5、crsctl check crs

查询本地服务器上 OHAS 和 Oracle Clusterware 的状态:

[root@rac1 bin]# pwd
/u01/app/11.2.0/grid/bin[root@rac1 bin]# ./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

6、crsctl config crs

查询 HAS 自动启动配置:

[root@rac1 bin]# pwd
/u01/app/11.2.0/grid/bin[root@rac1 bin]# ./crsctl config crs
CRS-4622: Oracle High Availability Services autostart is enabled.

二、禁用和启用 CRS 的自动启动配置

1、rsctl disable crs

禁用 CRS 的自动启动配置:

[root@rac1 bin]# pwd
/u01/app/11.2.0/grid/bin[root@rac1 bin]# ./crsctl disable crs
CRS-4621: Oracle High Availability Services autostart is disabled.[root@rac1 bin]# ./crsctl config crs
CRS-4621: Oracle High Availability Services autostart is disabled.

2、crsctl enable crs

启用 CRS 的自动启动配置:

[root@rac1 bin]# pwd
/u01/app/11.2.0/grid/bin[root@rac1 bin]# ./crsctl enable crs
CRS-4622: Oracle High Availability Services autostart is enabled.[root@rac1 bin]# ./crsctl config crs
CRS-4622: Oracle High Availability Services autostart is enabled.

三、启动和停止本地服务器上的 CRS

1、crsctl stop crs [-f]

停止本地服务器上的 CRS:

[root@rac1 bin]# pwd
/u01/app/11.2.0/grid/bin[root@rac1 bin]# ./crsctl stop crs -f
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'rac1'
CRS-2673: Attempting to stop 'ora.OCR.dg' on 'rac1'
CRS-2673: Attempting to stop 'ora.orcl.db' on 'rac1'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'rac1'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.rac1.vip' on 'rac1'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'rac1'
CRS-2677: Stop of 'ora.rac1.vip' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.rac1.vip' on 'rac2'
CRS-2677: Stop of 'ora.scan1.vip' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.scan1.vip' on 'rac2'
CRS-2677: Stop of 'ora.orcl.db' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.BAK.dg' on 'rac1'
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'rac1'
CRS-2676: Start of 'ora.rac1.vip' on 'rac2' succeeded
CRS-2676: Start of 'ora.scan1.vip' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'rac2'
CRS-2677: Stop of 'ora.DATA.dg' on 'rac1' succeeded
CRS-2677: Stop of 'ora.BAK.dg' on 'rac1' succeeded
CRS-2677: Stop of 'ora.OCR.dg' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'rac1'
CRS-2677: Stop of 'ora.ons' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'rac1'
CRS-2677: Stop of 'ora.net1.network' on 'rac1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac1' has completed
CRS-2677: Stop of 'ora.crsd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'rac1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
CRS-2673: Attempting to stop 'ora.evmd' on 'rac1'
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'
CRS-2677: Stop of 'ora.evmd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.crf' on 'rac1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'
CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac1'
CRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac1' has completed
CRS-4133: Oracle High Availability Services has been stopped.

说明:
(1)该命令试图停止 Oracle Clusterware 管理的资源,同时试图停止本地服务器上的 OHAS。
(2)如果在运行 crsctl stop crs 命令之后,Oracle Clusterware 管理的任何资源仍在运行,那么该命令将失败。
(3)使用 -f 选项暂停所有资源并停止本地服务器上的 OHAS。
(4)如果打算在所有节点或节点列表上停止 Oracle Clusterware,需要使用 crsctl stop cluster 命令。

2、crsctl start crs

启动本地服务器上的 CRS:

[root@rac1 bin]# pwd
/u01/app/11.2.0/grid/bin[root@rac1 bin]# ./crsctl start crs
CRS-4123: Oracle High Availability Services has been started.[root@rac1 bin]# ./crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4529: Cluster Synchronization Services is online
CRS-4534: Cannot communicate with Event Manager

ORACLE 11g RAC 集群的管理与维护(3) —— crsctl 命令之(三) :管理 crs相关推荐

  1. was连接oracle rac集群,oracle 11g rac 集群操作命令

    1).检查集群状态: [grid@rac02 ~]$ crsctl check cluster CRS-4537: Cluster Ready Services is online CRS-4529: ...

  2. 1.5小时,一键部署Oracle 11GR2 RAC 集群

    无人值守安装Oracle 11GR2 RAC集群,只需要1.5小时?没错,通过脚本静默安装,只需要1.5小时,包括安装补丁,建库. 脚本下载链接:SHELL脚本进行oracle数据库一键安装,实现真正 ...

  3. 1.5小时!一键部署Oracle 11GR2 RAC 集群

    无人值守安装Oracle 11GR2 RAC集群,只需要1.5小时?没错,通过脚本静默安装,只需要1.5小时,包括安装补丁,建库. 脚本下载链接:SHELL脚本进行oracle数据库一键安装,实现真正 ...

  4. 最新炼数成金Oracle 12C RAC集群原理与管理实战

    注意:Oracle 12C RAC部分课程,暂时缺少两集,如有补充会及时更新;介意的朋友先不要下载 但是其中另一套课程,来自三位DBA大牛的技术分享,非常值得听一听 ===============课程 ...

  5. Oracle 19c: RAC 集群技术的坚持与放弃(含PPT下载)

    在 OOW 上发布出来关于 Oracle RAC 集群的几篇文章,可以让我们一睹 Oracle RAC集群技术的发展路线. (关注本公众号,回复 2018OOW 在 RAC 目录下是本文参考的3个PP ...

  6. oracle集群 节点切换不,Oracle 11gR2 RAC集群单节点关闭开启

    Oracle Product集群因OS需要打patch需要单独关闭节点进行维护,机器为个人测试Oracle 11g R2测试集群 操作步骤 --确认集群的db_unique_name,本初的db_un ...

  7. 在VMware Workstation中一步一步搭建Oracle 21c rac集群环境

    目录 一.rac安装规划 1.1.所需软件介绍 1.2.IP地址规划 1.3.操作系统本地磁盘分区规划 1.4.共享存储与ASM磁盘组规划 二.操作系统配置 2.1.准备OS 2.2.添加网卡 2.3 ...

  8. 集群起不来oracle,Oracle11g rac 集群无法启动分析及处理

    n this Document Applies to: Oracle Database - Enterprise Edition - Version 11.2.0.1 and later Inform ...

  9. 【Oracle】RAC集群中的命令

    数据库名称:racdb 节点名称:rac3.rac4 注:以下命令均在grid用户中执行 1.查看集群节点的状态: [grid@rac3 ~]$ crsctl check cluster [grid@ ...

最新文章

  1. 售前工程师的成长(五)---一个老员工的经验之谈
  2. js中WebSocket
  3. (进阶篇)Redis6.2.0 集群 主从复制_故障解决_03
  4. 疑似OPPO Reno6系列新机通过工信部认证:配备6.43英寸屏 机身仅7.9mm
  5. HALCON:图像采集之同步采集(synchronous)与异步采集(asynchronous)
  6. 洛谷——P1917 三子棋II
  7. Document Star证件照大师升级版 for Mac(支持ps2021)
  8. LORA 网关上电后对应配置 以及常用的AT指令
  9. 海思Hi3519部分环境和编译问题
  10. matlab找零钱,自动售货系统
  11. nutch 抓取流程解析
  12. python seaborn学习笔记
  13. 又要数数小绵羊(C++) kkmd66
  14. 人机交互-11-往年试卷
  15. 十六进制转字符串,字符串转十六进制,相互转换
  16. 微信小程序:更改字体(text)和图标(icon)的颜色以及RGB颜色值与十六进制颜色码之间的转换
  17. 可视化色码表--绘图视觉不可或缺的元素
  18. notepad++ 下载地址(非官网,无捆绑插件,自己记录一下)
  19. 【精益画布】【聊天机器】【函数式编程】| Chat · 预告
  20. 2-6 磁盘阵列和LVM

热门文章

  1. 微软 Edge 浏览器无法调用 麦克风 原因及解决办法
  2. 香港官员:莲塘/香园围口岸总体建造工程已完成85%
  3. 前端工具库cdn地址和印记中文
  4. 流程管理细致入微:利or弊?
  5. 2021-2025年中国急性感音神经性聋的治疗行业市场供需与战略研究报告
  6. bitnami mysql_bitnami下mysql配置-包含phpMyAdmin配置
  7. wordpress免插件实现添加“友情链接”功能,非常简单!
  8. af::convolve在CUDA中局限性
  9. 什么是微软云盘 数蚁网盘好用吗企业网盘如何选择
  10. java 主类作用_JAVA 关键字及其作用解释