What is ocssd.bin ? How To Stop/Start This Process To Apply A Patch in non-RAC

Introduction:

You have installed Oracle Database 10g Products into the Oracle Home.

Now you’re trying to apply a patchset. During the patch installation, you receive the following error.

Oracle Universal Installer has detected that there are processes running in the currently selected Oracle Home.
The following processes need to be shutdown before continuing:
/u01/app/oracle/product/10.2.0/db/bin/ocssd.bin
Help   Retry   Cancel

There is no db tied to the Oracle Home yet, but there is an ocssd.bin process running.

# ps -ef | grep css
oracle     651     1  0 16:41 ?        00:00:00 /u01/app/oracle/product/10.2.0/db/bin/ocssd.bin

Why this is running:

The OCSSD.bin process is used for RAC and ASM.  Even if you don’t use the two components, the process still runs.

Note 266079.1 OCSSD.BIN Process is Running in a Non-RAC Environment

How to Solve this:

In a non-RAC environment, you can run “init.cssd stop” to stop the CSS process as root. The CSS process will NOT be respawned after stopping.

[root@localhost root]# ps -ef|grep css
oracle     651     1  0 16:41 ?        00:00:00 /u01/app/oracle/product/10.2.0/db/bin/ocssd.bin
root      2353 31469  0 17:01 pts/1    00:00:00 grep css
[root@localhost root]# /etc/init.d/init.cssd stop
Stopping Cluster Synchronization Services.
Shutting down the Cluster Synchronization Services daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.
[root@localhost root]# ps -ef|grep css
root      2455     1  0 17:02 ?        00:00:00 /bin/sh /etc/init.d/init.cssd run
root      2532 31469  0 17:02 pts/1    00:00:00 grep css

After patching you can run “init.cssd start” to re-start the CSS process as root.

[root@localhost root]# ps -ef|grep css
root      2455     1  0 17:02 ?        00:00:00 /bin/sh /etc/init.d/init.cssd run
root      2933 31469  0 17:05 pts/1    00:00:00 grep css
[root@localhost root]# /etc/init.d/init.cssd start
Startup will be queued to init within 30 seconds.
[root@localhost root]# ps -ef|grep css
oracle    2455     1  0 17:02 ?        00:00:00 /u01/app/oracle/product/10.2.0/db/bin/ocssd.bin
root      3189 31469  0 17:07 pts/1    00:00:00 grep css

The ocssd.bin process is used for communication between a database instance and the ASM (Automatic Storage Management) instance.

Even if you are not using ASM, this process will be run out of the inittab.

[root@localhost root]# cat /etc/inittab | grep cssd
h1:35:respawn:/etc/init.d/init.cssd run >/dev/null 2>&1 </dev/null

 

Please note that the location of init.cssd could be different for different platforms.

Also, the above “init.cssd start/stop” commands only apply to non-RAC environments.

In a RAC/cluster environment, there is no need to restart CSS process for patching, and killing CSS process with “kill -9” command would cause node eviction.

Recent Posts

Start typing and press Enter to search