Oracle Instance Status

— Check Oracle Instance Status —

#!/bin/sh
SERVICE=’ora_pmon_orcl’
#replace ‘orcl’ with your sid

if ps -ef | grep -v grep | grep $SERVICE > /dev/null
then
echo “$SERVICE service running, everything is fine”
else
echo “$SERVICE is not running”
fi

2 thoughts on “Oracle Instance Status

  1. but i have 3 databases running in the same server..and i want to get alert by email if any of these incur a shutdown.. i am new to scripting..

Leave a Reply