Oracle Clusterware


Oracle Clusterware is the cross-platform cluster software required to run the Real Application Clusters option for Oracle Database. It provides the basic clustering services at the operating-system level that enable Oracle Database software to run in clustering mode. In earlier versions of Oracle, RAC required a vendor-supplied clusterware like Sun Cluster or Veritas Cluster Server.

Oracle Clusterware Components

Oracle Clusterware is the software which enables the nodes to communicate with each other, allowing them to form the cluster of nodes which behaves as a single logical server. Oracle Clusterware is run by Cluster Ready Services consisting of two key components: Oracle Cluster Registry, which records and maintains the cluster and node membership information; voting disk, which polls for consistent heartbeat information from all the nodes when the cluster is running, and acts as a tiebreaker during communication failures.
The CRS service has four components, each handling a variety of functions: Cluster Ready Services daemon, Oracle Cluster Synchronization Service Daemon, Event Volume Manager Daemon, and Oracle Process Clusterware Daemon. Failure or death of the CRS daemon can cause node failure, which triggers automatic reboots of the nodes to avoid the corruption of data, also known as fencing. The CRS daemon runs as "root" on UNIX platforms and runs as a service on Windows platforms.

CRSd

The following functions are provided by the Oracle Cluster Ready Services daemon :
Oracle Cluster Synchronization Services daemon provides basic ‘group services’ support. Group Services is a distributed group membership system that allows the applications to coordinate activities to achieve a common result. As such, it provides synchronization services between nodes, access to the node membership information, as well as enabling basic cluster services, including cluster group services and cluster locking. It can also run without integration with vendor clusterware. Failure of OCSSd causes the machine to reboot to avoid a split-brain situation. This is also required in a single instance configuration if Automatic Storage Management is used. ASM was a new feature in Oracle 10g. OCSSd runs as the "oracle" user.
The following functions are provided by the Oracle Cluster Synchronization Services daemon :
The third component in OCS is the Event Volume Management Logger daemon. EVMd spawns a permanent child process called "evmlogger" and generates events. The EVMd child process ‘evmlogger’ spawns new children processes on demand and scans the callout directory to invoke callouts. It will restart automatically on failures and death of the EVMd process does not halt the instance. EVMd runs as the "oracle" user.

OPROCd

OPROCd provides the server fencing solution for the Oracle Clusterware. It is the process monitor for Oracle Clusterware and it uses the hang check timer or watchdog timer for the cluster integrity. OPROCd is locked in the memory and runs as a real time process. This sleeps for a fixed time and runs as the "root" user. Failure of the OPROCd process causes the node to restart. OPROCd is so important that even it is being monitored by a process called OCLSOMON and causes a cluster node to reboot if OPROCd is hung.
'''