From unix:
ps aux|grep oraclePROD|awk '{if ($3 == 0.0) i=i+1; else
j=j+1;} END {print "number of oracle process use 0 cpu is: " i; print
"number of oracle process use more than 0 cpu is :" j;}'
number of oracle process use 0 cpu is: 143
number of
oracle process use more than 0 cpu is :48
STATUS
COUNT(*)
---------- ----------
INACTIVE
178
ACTIVE 46
Comments
Post a Comment