Get the App
SLTechnology News&Howtos  ›  Database  › 

How to check whether the current CRS is in enable or disable

Shulou Source: shulou.com Published: 2022-06-01 21:52:48 11月14日 Update

The following document information comes from the MOS official document, which has been confirmed by detailed testing.

Starting from 10g, CRS starts at operating system startup by default.

Sometimes, in order to facilitate maintenance operations, we generally prohibit CRS from booting itself when the operating system starts.

Both 10g and 11g oracle support the command to disable CRS from booting itself when the operating system starts:

# crsctl disable crs # crsctl enable crs

When we turn on or off the startup, how do we check whether the current CRS is in enable or disable? oracle gives different path files in 10g camera 11gR1 and 11gR2 respectively.

In a 10g environment:

Oracle Database-Enterprise Edition-Version 10.1.0.2 to 11.1.0.8 [Release 10.1 to 11.1]: 3. $AUTOSTART

Linux & AIX:/etc/oracle/scls_scr/$hostname/root/crsstart

SUN & HP:/var/opt/oracle/scls_scr/$hostname/root/crsstart

In 11gR2, both crs, css and evmd processes are driven by ohasd processes, and all are slightly different in 11g. Although the commands are the same, they are all turned off or turned on through crsctl disable/enable crs, but in fact, oracle imposes self-startup restrictions on ohasd, so the file location and file name in 11gR2 should be as follows:

Cd / etc/oracle/scls_scr/s1-11g/root

Linux & AIX:/etc/oracle/scls_scr/$hostname/root/ohasdstr

SUN & HP:/var/opt/oracle/scls_scr/$hostname/root/ohasdstr

The following is about the testing and viewing process on linux:

10g:

[root@DBServer1 root] # crsctl query crs softwareversion

CRS software version on node [dbserver1] is [10.2.0.5.0]

[root@DBServer1 root] # more / etc/oracle/scls_scr/dbserver1/root/crsstart

Enable

[root@DBServer1 root] # crsctl disable crs

[root@DBServer1 root] # more / etc/oracle/scls_scr/dbserver1/root/crsstart

Disable

11gR2:

[root@s1-11g root] # crsctl query crs softwareversion

Oracle Clusterware version on node [S1-11g] is [11.2.0.4.0]

[root@s1-11g root] # more / etc/oracle/scls_scr/s1-11g/root/ohasdstr

Enable

[root@s1-11g root] # crsctl disable crs

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

[root@s1-11g root] # more / etc/oracle/scls_scr/s1-11g/root/ohasdstr

Disable

Tags: Or operating system file system different command document process test location information official file name way time sometimes environment maintainability path process Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux macOS Shulou Information Apple MySQL