广告
返回顶部
首页 > 资讯 > 数据库 >crsctl 常用命令
  • 391
分享到

crsctl 常用命令

2024-04-02 19:04:59 391人浏览 泡泡鱼
摘要

 [oracle@rac01 ~]$ crsctl Usage: crsctl check  crs   

 [oracle@rac01 ~]$ crsctl
Usage: crsctl check  crs          - checks the viability of the CRS stack
       crsctl check  CSSd         - checks the viability of CSS
       crsctl check  crsd         - checks the viability of CRS
       crsctl check  evmd         - checks the viability of EVM
       crsctl set    css <parameter> <value> - sets a parameter override
       crsctl get    css <parameter> - gets the value of a CSS parameter
       crsctl unset  css <parameter> - sets CSS parameter to its default
       crsctl query  css votedisk    - lists the voting disks used by CSS
       crsctl add    css votedisk <path> - adds a new voting disk
       crsctl delete css votedisk <path> - removes a voting disk
       crsctl enable  crs    - enables startup for all CRS daemons
       crsctl disable crs    - disables startup for all CRS daemons
       crsctl start crs  - starts all CRS daemons.
       crsctl stop  crs  - stops all CRS daemons. Stops CRS resources in case of cluster.
       crsctl start resources  - starts CRS resources. 
       crsctl stop resources  - stops  CRS resources. 
       crsctl debug statedump evm  - dumps state info for evm objects
       crsctl debug statedump crs  - dumps state info for crs objects
       crsctl debug statedump css  - dumps state info for css objects
       crsctl debug log css [module:level]{,module:level} ... 
                             - Turns on debugging for CSS 
       crsctl debug trace css - dumps CSS in-memory tracing cache
       crsctl debug log crs [module:level]{,module:level} ... 
                             - Turns on debugging for CRS 
       crsctl debug trace crs - dumps CRS in-memory tracing cache
       crsctl debug log evm [module:level]{,module:level} ... 
                             - Turns on debugging for EVM
       crsctl debug trace evm - dumps EVM in-memory tracing cache
       crsctl debug log res <resname:level> turns on debugging for resources
       crsctl query crs softwareversion [<nodename>] - lists the version of CRS software installed
       crsctl query crs activeversion - lists the CRS software operating version
       crsctl lsmodules css - lists the CSS modules that can be used for debugging
       crsctl lsmodules crs - lists the CRS modules that can be used for debugging
       crsctl lsmodules evm - lists the EVM modules that can be used for debugging

 If necesary any of these commands can be run with additional tracing by
 adding a "trace" argument at the very front.
 Example: crsctl trace check css


1.检查crs 状态

[oracle@rac01 ~]$ crsctl  check  crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

以上输出的crs css evm组件都是正常的,若有组件检查失败,

输出会给出以下Failure 信息:

[oracle@rac01 ~]$ crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM 


2.检查crs各个组件的状态信息

检查cssd组件状态

[oracle@rac01 ~]$ crsctl check cssd
CSS appears healthy

检查crsd组件状态
[oracle@rac01 ~]$ crsctl check crsd
CRS appears healthy

检查evmd组件状态
[oracle@rac01 ~]$ crsctl  check evmd
EVM appears healthy



3.用以下两条命令来维护crs服务的自动启动,需要用root用户执行

[root@rac01 ~]# /opt/ora10g/product/10.2.0/crs/bin/crsctl disable crs

[root@rac01 ~]# /opt/ora10g/product/10.2.0/crs/bin/crsctl enable  crs



4.用root身份来停止crs服务

[root@rac01 ~]# /opt/ora10g/product/10.2.0/crs/bin/crsctl  stop crs
Stopping resources.
Successfully stopped CRS resources 
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.

此时我们在rac01节点检查crs各个组件的状态会有以下的信息

[oracle@rac01 ~]$ crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM 

rac02节点正常
[oracle@rac02 ~]$ crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy


5.用root身份来开启CRS服务

[root@rac01 ~]# /opt/ora10g/product/10.2.0/crs/bin/crsctl  start  crs
Attempting to start CRS stack 
The CRS stack will be started shortly

此时系统正在启动CRS,我们来检查此时crs服务的状态,crs组件服务依次开启
只要所有组件状态都是healthy

[oracle@rac01 ~]$ crsctl check crs
CSS appears healthy
Cannot communicate with CRS
EVM appears healthy

[oracle@rac01 ~]$ crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy




6. 查看votedisk的信息

[oracle@rac01 ~]$ crsctl  query css votedisk
 0.     0    /dev/raw/raw1

located 1 votedisk(s).


您可能感兴趣的文档:

--结束END--

本文标题: crsctl 常用命令

本文链接: https://www.lsjlt.com/news/44949.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • crsctl 常用命令
     [oracle@rac01 ~]$ crsctl Usage: crsctl check  crs   ...
    99+
    2022-10-18
  • oracle11gRAC中crsctl命令怎么用
    这篇文章将为大家详细讲解有关oracle11gRAC中crsctl命令怎么用,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。 oracle11gRAC之crsctl命令:...
    99+
    2022-10-19
  • oracle rac crsctl命令怎么用
    这篇文章主要介绍了oracle rac crsctl命令怎么用,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。 ...
    99+
    2022-10-18
  • oracle 11g 中crsctl的替换命令是什么
    这篇文章将为大家详细讲解有关oracle 11g 中crsctl的替换命令是什么,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。oracle 11g 中 (ora...
    99+
    2022-10-19
  • 常用命令
    1.基础命令 操作 命令 说明 查看文件的内容 cat -n&n...
    99+
    2022-06-03
    Linux
  • lspci 命令详解及常用命令
    lspci命令用于显示计算机的PCI总线信息,包括PCI设备的厂商、设备ID等。常用的lspci命令参数如下:- -v:显示详细的信...
    99+
    2023-09-09
    lspci
  • Linux常用命令之性能命令
    本文介绍linux常用性能统计分析命令,监控进程或者系统性能。主要包括CPU(top、mpstat)、内存(vmstat、free)、I/O(iostat)、网络性能(sar)、系统日志信息(demsg)、查看进程状态(...
    99+
    2022-06-04
    Linux常用命令 linux性能命令
  • windows常用命令及相关命令
    目录 一、cmd的打开方式 二、windows常用命令 三、网络操作命令 四、系统操作命令 五、用户与管理 六、查看自己的本机重要信息 七、windows命令之mysql授权 一、cmd的打开方式 任务栏搜索框里输入cmd能打开 在文档...
    99+
    2023-09-06
    windows 服务器 运维 网络安全 网络
  • Linux常用命令groupdel命令怎么用
    这篇文章主要介绍Linux常用命令groupdel命令怎么用,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!Linux常用命令groupdel命令用于删除群组需要从系统上删除群组时,可用groupdel(group d...
    99+
    2023-06-28
  • Linux常用命令bzless命令怎么用
    这篇文章主要介绍Linux常用命令bzless命令怎么用,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!Linux常用命令bzless命令是增强 .bz2 压缩包查看器,bzless比bzmore命令功能更加强大语法&...
    99+
    2023-06-28
  • adb常用命令
    文章目录 一、adb指令相关参数二、adb相关指令2.1 adb无线连接(需要借助 USB 线)2.2 基础指令2.3 软件相关指令2.4 文件相关指令2.5 log相关指令2.6 模拟事件相...
    99+
    2023-09-09
    adb android
  • svn常用命令
    SVN 的命令通常都很少用,在 windows 上,我们通常都是使用图形化的操作界面,例如 TortoiseSVN,提供了很好的图形化操作界面,上手简单方便。 但是有时候我们需要在服务器这类没有图形化操作界面的机器上使用 SVN,这时候我们...
    99+
    2023-09-24
    svn 服务器 windows
  • s3cmd常用命令
    1、配置s3cmds3cmd --configure2、列举所有buckets(bucket相当于根文件夹)命令:s3cmd lsroot@node4:/home# s3cmd ls2016-09-18 03:51  s3://my-buc...
    99+
    2023-01-31
    常用命令 s3cmd
  • 常用ADB命令
    1. ADB连接 adb connect IP:端口 //端口一般为5114或5224 2. 抓取日志并输出到固定文件夹 adb logcat –v time >D:\ABD\1.log //1.lo...
    99+
    2023-09-03
    android
  • linux常用命令
    1.文件管理         1)ls:列出当前目录下所有文件         2)ls -a:连带隐藏文件一起显示         3)ls +目录名:列出该目录名下文件         4)ls -a  -l  /...
    99+
    2023-09-01
    linux 服务器 运维
  • mysql常用命令
    数据库的基本操作 通过mysql客户端进入mysql后,实际位于所有仓库之外: * 选中要操作的数据库实例 * 操作数据库实例中的表或其他实体. 注意: ";"表示一条SQL命令的结束,当命令结束后才会执行此命令 * 登陆数据库 mysq...
    99+
    2021-06-16
    mysql常用命令
  • MySQL5.7常用命令
    1、连接mysql 连接本机 mysql -u root -p 连接远程主机 mysql -h 192.168.1.% -u root -p 退出 exit; 2、修改密码 格式:alter user ...
    99+
    2014-07-22
    MySQL5.7常用命令
  • mysql 常用命令
    查看innodb的事务表INNODB_TRX是否有正在锁定的事务线程 SELECT * FROM information_schema.INNODB_TRX; 如果ID存在于show full...
    99+
    2022-10-18
  • oracle常用命令
    修改密码alter user DBUSER identified by 123456;查询表空间中数据文件具体位置select name from v$datafile;查询表空间中数据文件具体位...
    99+
    2022-10-18
  • Redis 常用命令
    1.连接redis # 匿名访问 redis-cli -h ip_address -p port # 密码访问 redis-cli -h ip_address -p port -a password 2.利用keys模糊查询,查...
    99+
    2020-04-21
    Redis 常用命令
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作