Tag Archives: trace files

CRSCTL log generation, debugging and troubleshooting in RAC Oracle

crsctl log generation, debugging and troubleshooting in RAC Oracle

crsctl set log commands is used for enable debugging for Cluster Ready Services (CRS), Cluster Synchronization Services (CSS), the Event Manager (EVM) and the clusterware subcomponents.

Check list of component present in different modules:
crsctl lsmodules command to obtain a list of components for each module.
crsctl lsmodules {mdns | gpnp | css | crf | crs | ctss | evm | gipc}

Modules in clusterware:
mdns: Multicast domain name server
gpnp: Grid Plug and Play service
css: Cluster Synchronization Services
crf: Cluster Health Monitor
crs: Cluster Ready Services
ctss: Cluster Time Synchronization Service
evm: Event Manager
gipc: Grid Interprocess Communication

Dynamic Debugging
Setting log levels for Oracle Clusterware.
Syntax:
crsctl set log module_name "component1=level1,..."
Note: log_level is a number from 1 to 5 , 1 is least and 5 is most.

Example:
Enable the trace for CRSRTI and CRSCOMM components of the CRS module:
crsctl set log crs "CRSRTI=1,CRSCOMM=2"

Component Level Debugging
Enable dynamic debugging for the various Oracle Clusterware modules.
Syntax:
crsctl set {log | trace} module_name "component:debugging_level[,...]"
Note: debugging_level is a number from 1 to 5, 1 is least and 5 is most.

Example:
--Enable debugging for Oracle Clusterware:
crsctl set log crs "CRSRTI:1,CRSCOMM:2"

–Enable debugging for OCR:
crsctl set log crs “CRSRTI:1,CRSCOMM:2,OCRSRV:4”

–Enable debugging for EVM:
crsctl set log evm “EVMCOMM:1”

–Enable debugging for resources
crsctl set log res “resname:1”

Advertisements