Run the following command if on 11.2+ (run this command as the user you want Procwatcher to run as): dukerac02 | CBABDB2 | /home/oracle > crsctl add resource procwatcher -type application -attr "ACTION_SCRIPT=/home/oracle/prw.sh,START_DEPENDENCIES=hard(ora.racdb.db),AUTO_START=always,STOP_TIMEOUT=15"
Note: Clusterware log info in: /log//agent/crsd/application_oracle
If on 10g or 11.1 run the following as root: ./crs_profile -create procwatcher -t application -a -r -o as=always,pt=15
Example: ./crs_profile -create procwatcher -t application -a /home/oracle/prw.sh -r ora.racdb.racdb1.inst -o as=always,pt=15 Note: Clusterware log info in: /log//agent/crsd/application_oracle
Then register the resource: ./crs_register procwatcher
If you intend to run procwatcher as a user other than root, change the permissions: ./crs_setperm procwatcher -u user:oracle:r-x ./crs_setperm procwatcher -o oracle Note: Refer to the crsd.log to get information about procwatcher monitoring via the clusterware.
11gR2: dukerac02 | CBABDB2 | /home/oracle > srvctl Usage: srvctl [] commands: enable|disable|start|stop|relocate|status|add|remove|modify|getenv|setenv|unsetenv|config objects: database|instance|service|nodeapps|vip|asm|diskgroup|listener|srvpool|server|scan|scan_listener|oc4j|home|filesystem|gns For detailed help on each command and object and its options use: srvctl -h or srvctl -h
10gR2: [oracle@rh4racdb01 ~]$ srvctl Usage: srvctl [] command: enable|disable|start|stop|relocate|status|add|remove|modify|getenv|setenv|unsetenv|config objects: database|instance|service|nodeapps|asm|listener For detailed help on each command and object and its options use: srvctl -h