[Linux-ha-dev] oracle ra patch

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Oct 4 10:09:44 MDT 2006


Hi,

Please apply this patch. It fixes two problems:

- sqlplus of some Oracle 9 installations produces some superflous
  output
- wrong status op in case one database sid is a prefix of another

Cheers,

Dejan
-------------- next part --------------
--- resources/OCF/oracle.in.orig	2006-06-20 23:03:51.000000000 +0200
+++ resources/OCF/oracle.in	2006-10-04 18:06:39.808323487 +0200
@@ -246,7 +246,7 @@
 		$sqlplus -S /nolog
 	else
 		su $ORACLE_OWNER -c "$sqlplus -S /nolog"
-	fi
+	fi | grep -v '^Connected'
 }
 
 #
@@ -353,7 +353,7 @@
 #
 # quick check to see if the instance is up
 is_oracle_up() {
-	ps -ef | grep -iqs "[_]pmon_${ORACLE_SID}"
+	ps -ef | grep -wiqs "[^ ]*[_]pmon_${ORACLE_SID}"
 }
 # instance in OPEN state?
 instance_live() {


More information about the Linux-HA-Dev mailing list