Hi Experts,
This is my scripts.the scripts checks whether my database is up or not if it is up then its ok if not , then the alert should be send to my groups mail id.
Code:
DBALIST="daniesh.shaikh@idhasoft.com";export DBALIST
#DBA_LIST="daniesh.shaikh@idhasoft.com";export DBALIST
rm listener

ps -ef|grep pmon >listener
if [ $# -ne 0 ]
#if cat  listener|grep PROD
then
...