Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Medium: oracle: match better instance specific files and processes

In case one oracle instance is a prefix of another, the previous
regular expressions would sometimes match processes/lk files for
both instances.
  • Loading branch information...
commit a2ddf6006dce480fd18fa44172bd3723e3b82102 1 parent d8a2fc8
@dmuhamedagic dmuhamedagic authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 heartbeat/oracle
4 heartbeat/oracle
@@ -483,7 +483,7 @@ instance_live() {
ora_cleanup() {
#rm -fr /tmp/.oracle #???
- rm -f `ls $ORACLE_HOME/dbs/lk* | grep -i $ORACLE_SID`
+ rm -f `ls $ORACLE_HOME/dbs/lk* | grep -iw $ORACLE_SID`
case $IPCRM in
@@ -702,7 +702,7 @@ envtmpf=`mktemp`
dumporaenv > $envtmpf
chmod 644 $envtmpf
trap "rm -f $envtmpf" EXIT
-procs="ps -e -o pid,args | grep -i \"[o]ra[a-zA-Z0-9_]*$ORACLE_SID\""
+procs="ps -e -o pid,args | grep -iw \"[o]ra[a-zA-Z0-9_]*$ORACLE_SID\""
US=`id -u -n`
if [ $US != root -a $US != $ORACLE_OWNER ]

0 comments on commit a2ddf60

Please sign in to comment.
Something went wrong with that request. Please try again.