DBA Tips Archive for Oracle

  


Controlling the Oracle Clusterware Services (CRS) 10g in UNIX / Linux

by Jeff Hunter, Sr. Database Administrator


Contents

  1. Overview
  2. Oracle10g R2
  3. Oracle10g R1



Overview

This article was motivated by Metalink Doc ID: 309542.1. In this article, I will explain how to manage (start, stop, enable, disable) the Oracle10g CRS / Clusterware services on the Unix / Linux platform. It applies to both Oracle10g R1 (10.1.0) and Oracle10g R2 (10.2.0).

Whenever a node managed by Oracle10g CRS / Clusterware comes up, the Clusterware processes (CRS stack) start up automatically. It is possible, however, to manually control these services (i.e. start / stop) using scripts installed by Oracle. In Oracle10g R1, users can invoke the init.crs script. Starting with Oracle10g R2, users can also use the more powerful and user-friendly script named crsctl.



Oracle10g R2

Starting with Oracle10g R2, you can use the $ORA_CRS_HOME/bin/crsctl script to control CRS / Clusterware services. Run the crsctl script with no arguments to display usage parameters.

Stopping CRS Stack

crsctl stop crs
This is often used when applying patches or for planned outages.
Disabling CRS Stack
crsctl disable crs
This disables CRS / Clusterware services from being started in subsequent reboots. It will not stop the currently running CRS / Clusterware - it only ensures that the services do not come up after a reboot.
Enabling CRS Stack
crsctl enable crs
Use this to enable CRS / Clusterware to be started in subsequent reboots.
Starting CRS Stack
crsctl start crs
Used to start CRS / Clusterware services.



Oracle10g R1

In Oracle10g R1 (and in R2) you can use the CRS init script init.crs to control CRS services. Run the init.crs script with no arguments to display usage parameters. The location of the init.crs script is operating system dependant:

Stopping CRS Stack

init.crs stop
This is often used when applying patches or for planned outages.
Disabling CRS Stack
init.crs disable
This disables CRS / Clusterware services from being started in subsequent reboots. It will not stop the currently running CRS / Clusterware - it only ensures that the services do not come up after a reboot.
Enabling CRS Stack
init.crs enable
Use this to enable CRS / Clusterware to be started in a subsequent reboots.
Starting CRS Stack
init.crs start
Using this method to start CRS / Clusterware services is only supported starting from 10.1.0.4. In previous versions (10.1.0.3 and 10.1.0.2), the node would need to be rebooted in order to start the CRS / Clusterware services. The only exception to this is when applying patchsets. The patchset will run scripts to sucessfully start the CRS / Clusterware services.

  Notice that init.crs is not the only script or component of CRS / Clusterware. For example:
[root@linux1 init.d]# ls -l /etc/init.d/init.*
-r-xr-xr-x  1 root root  1951 Jul 18 12:49 /etc/init.d/init.crs
-r-xr-xr-x  1 root root  4714 Jul 18 12:49 /etc/init.d/init.crsd
-r-xr-xr-x  1 root root 35394 Jul 18 12:49 /etc/init.d/init.cssd
-r-xr-xr-x  1 root root  3190 Jul 18 12:49 /etc/init.d/init.evmd
Never attempt to manually use the individual components of CRS / Clusterware like init.crsd, init.cssd, and init.evmd.



Copyright (c) 1998-2017 Jeffrey M. Hunter. All rights reserved.

All articles, scripts and material located at the Internet address of http://www.idevelopment.info is the copyright of Jeffrey M. Hunter and is protected under copyright laws of the United States. This document may not be hosted on any other site without my express, prior, written permission. Application to host any of the material elsewhere can be made by contacting me at jhunter@idevelopment.info.

I have made every effort and taken great care in making sure that the material included on my web site is technically accurate, but I disclaim any and all responsibility for any loss, damage or destruction of data or any other property which may arise from relying on it. I will in no case be liable for any monetary damages arising from such loss, damage or destruction.

Last modified on
Saturday, 18-Sep-2010 17:44:12 EDT
Page Count: 50311