Hi all,
I have a condition
if(($x>0))
then echo "ok"
x=`sqlplus -s dmiapp/dmiappl_04@dmid << EOF
SELECT count(*) FROM $TABLE_NAME
exit
EOF`
Now the problem occurs when the above code returns an error message (RETURNs a string )as database is down.
I have created the script for checking the database is down or up.
Please give some clue.
Regards
Megh