crsctl enable/disable crs开启或者关闭crs开机自动启动
crsctl config crs 显示是否开启了开机启动
--查看crs状态:
[root@VM1 root]# crsctl config crs
CRS-4622: Oracle High Availability Services autostart is enabled.
[root@VM1 root]# pwd
/etc/oracle/scls_scr/vm1/root
[root@VM1 root]# ls -ltr
total 12
-rw-r–r– 1 root root 7 Dec 17 2013 crsstart
-rw-r–r– 1 root oinstall 7 Dec 17 2013 ohasdstr
-rw-r–r– 1 root oinstall 8 Jul 2 18:04 ohasdrun
[root@VM1 root]# cat /etc/oracle/scls_scr/<nodename>/root/ohasdstr
enable
--关闭开机启动,查看文件的状态
[root@VM1 root]# crsctl disable crs
CRS-4621: Oracle High Availability Services autostart is disabled.
[root@VM1 root]# cat ohasdstr
disable
--再次开机自动启动
[root@VM1 root]# crsctl enable crs
CRS-4622: Oracle High Availability Services autostart is enabled.
[root@VM1 root]# cat /etc/oracle/scls_scr/<nodename>/root/ohasdstr
enable
--ohasdrun记录了ohashd的状态,决定是否启动集群
[root@VM1 root]# cat ohasdrun
restart
--停止crs,检查文件状态
[root@VM1 root]# crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ‘vm1’
CRS-2673: Attempting to stop ‘ora.crsd’ on ‘vm1’
[root@VM1 root]# crsctl check crs
CRS-4639: Could not contact Oracle High Availability Services
--查看ohasdrun内容
[root@VM1 root]# cat ohasdrun
stop
--启动crs
[root@VM1 root]# crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
--文件内容被修改为restart
[root@VM1 root]# cat ohasdrun
restart
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




