Displaying 1 result from an estimated 1 matches for "numberofpro".
2009 Jan 30
5
Question about Shell Script.
Hi all CentOS users,
I have writing shell script for check oracle processes in real time
and alert with e-mail.
I read script like below
NUMBEROFPRO=/oracle/10.2.0/db_1/bin/sqlplus / as sysdba <<EOF1 |grep
processes|awk '{print $2}'
SELECT resource_name,current_utilization,limit_value FROM
V\$RESOURCE_LIMIT WHERE RESOURCE_NAME IN ('processes','sessions');
quit
EOF1
if [ $NUMBEROFPRO > 150 ]
then
/bin/mail -s &q...