ITPub博客

首页 > 数据库 > Oracle > Disable the automatic startup of the Oracle Clusterware (CRS|HAS) software

Disable the automatic startup of the Oracle Clusterware (CRS|HAS) software

Oracle 作者:denglt 时间:2014-03-20 11:38:55 0 删除 编辑

Disable the automatic startup of the Oracle Clusterware (CRS|HAS) software

Sometimes, you need for maintenace reasons or others to disable the automatic startup of the Oracle Clusterware software. For that, we use the following commands

crsctl disable/enable has
crsctl disable/enable crs

In some situations, it is interesting, to know in which file the information can be found for  enable/disable of automatic startup of the Oracle Clusterware configuration. The configuration is stored in the repository

/etc/oracle/scls_scr/node_name/root/


[root@joords_RAC1]# ll /etc/oracle/scls_scr/joords_rac1/root/

 

total 12
-rw-r--r-- 1 root root 7 oct 18 12:07 crsstart
-rw-r--r-- 1 root oinstall 8 oct 27 13:06 ohasdrun
-rw-r--r-- 1 root oinstall 8 oct 27 13:36 ohasdstr

[root@joords_RAC1]#

Until the 11.1.0 Oracle Clusterware release, it was stored in the /etc/oracle/scls_scr/node_name/root/crsstart, and since the 11.2.0, the commands crsctl disable/enable has and crsctl disable/enable crs are modifying only

/etc/oracle/scls_scr/node_name/root/ohasdstr


root@joords_RAC1]# crsctl disable has

CRS-4621: Oracle High Availability Services autostart is disabled.

[root@joords_RAC1]#

[root@joords_RAC1]# more /etc/oracle/scls_scr/joords_rac1/root/ohasdstr

disable

[root@joords_RAC1]# crsctl enable has

CRS-4622: Oracle High Availability Services autostart is enabled.

[root@joords_RAC1]# more /etc/oracle/scls_scr/joords_rac1/root/ohasdstr

enable

[root@joords_RAC1]#

We are in 11.2.0.3 release


[root@joords_RAC1]# /app/grid/bin/crsctl enable crs

CRS-4622: Oracle High Availability Services autostart is enabled.

[root@joords_RAC1]# more /etc/oracle/scls_scr/joords_rac1/root/ohasdstr

enable

[root@joords_RAC1]# /app/grid/bin/crsctl disable crs

CRS-4621: Oracle High Availability Services autostart is disabled.

[root@joords_RAC1]# more /etc/oracle/scls_scr/joords_rac1/root/ohasdstr

disable

[root@joords_RAC1]# more /etc/oracle/scls_scr/joords_rac1/root/crsstart

enable

Is it working to modify manualy the file ?


[root@joords_RAC1]# /app/grid/bin/crsctl enable has

CRS-4622: Oracle High Availability Services autostart is enabled.

[root@joords_RAC1]#

[root@joords_RAC1]# vi /etc/oracle/scls_scr/joords_rac1/root/ohasdstr

Change the "enable" by "disable" with vi editor.
Test at boot, the CRS startup is disabled. So it’s works.

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/195110/viewspace-1125719/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-11-04

  • 博文量
    118
  • 访问量
    763926