Urgent help [message #108846] |
Sat, 19 February 2005 02:20 |
satya das
Messages: 6 Registered: July 2004
|
Junior Member |
|
|
Hello Everybody,
can anyone help me out to understand the following unix code.
if [[[[ $(ps -ef|egrep "lgwr|smon|dbw|pmon"|grep $ORACLE_SID|wc -l|awk '{print $1}
') < 1 ]]]]
then
write_log "Database $ORACLE_SID not available" E
exit 1
fi
I guess it something related to checking if the databse is up or down.its works perfect but it doesnot work when i try to check (<4) condition instead of (<1).
Do let me where i am wrong.....and why?
Thanks & Regards
Satya Das
|
|
|
|