dukerac02 | CBABDB2 | /home/oracle > crsctl
Usage: crsctl
注:Procwatcher功能非常的强悍,大概有如下方面的功能: 1. 收集cluster等后台进程信息 2. session process的call stack等 3. 还可以收集session的wait,lock等信息,具体可以参考其prw.sh脚本,通过修改其中的一些参数进行控制。Note: Clusterware log info in:
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"
If on 10g or 11.1 run the following as root:
./crs_profile -create procwatcher -t application -a
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:
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.
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
srvctl
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