Hi all
I'm using a shell script on an AIX box to stop my oracle Databases.
To test if oracle is runing for specific instance, i use commands like:
export ora_proc=`ps -edf | grep pmon | grep $ORACLE_SID | grep -v grep`
But for fex days i have two new oracle instances named like XXXXX and XXXXXPP. So when i grep XXXXX i have two replies XXXXX and XXXXXPP instead of the only instance i want to stop. The script stop the two instances anf i dont want that.
I tried to use egrep -x to solve my problem but for the moment it still remain.
What should i use to get my script run correctly ??
I'm sure script masters will have a reply.
Thank's in advance
I'm using a shell script on an AIX box to stop my oracle Databases.
To test if oracle is runing for specific instance, i use commands like:
export ora_proc=`ps -edf | grep pmon | grep $ORACLE_SID | grep -v grep`
But for fex days i have two new oracle instances named like XXXXX and XXXXXPP. So when i grep XXXXX i have two replies XXXXX and XXXXXPP instead of the only instance i want to stop. The script stop the two instances anf i dont want that.
I tried to use egrep -x to solve my problem but for the moment it still remain.
What should i use to get my script run correctly ??
I'm sure script masters will have a reply.
Thank's in advance