From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9463 invoked by alias); 21 May 2009 14:54:12 -0000 Received: (qmail 9443 invoked by alias); 21 May 2009 14:54:11 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion2.fedora.phx.redhat.com Subject: cluster: STABLE3 - rgmanager: Fix up multiple Oracle instance handling To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/STABLE3 X-Git-Reftype: branch X-Git-Oldrev: 0427055c4f10c37daed21dc56ea499b18f016cc5 X-Git-Newrev: 6c667e94643927342df40e90d0100a07c95286dd From: Lon Hohberger Message-Id: <20090521145341.3439912022C@lists.fedorahosted.org> Date: Thu, 21 May 2009 14:54:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q2/txt/msg00373.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=6c667e94643927342df40e90d0100a07c95286dd Commit: 6c667e94643927342df40e90d0100a07c95286dd Parent: 0427055c4f10c37daed21dc56ea499b18f016cc5 Author: Lon Hohberger AuthorDate: Thu May 21 09:37:15 2009 -0400 Committer: Lon Hohberger CommitterDate: Thu May 21 10:53:15 2009 -0400 rgmanager: Fix up multiple Oracle instance handling Note that you can only have one instance start/manage Enterprise Manager. You must set all other instances to "base" type (see metadata). Resolvs: 471226 Signed-off-by: Lon Hohberger --- rgmanager/src/resources/oracledb.sh.in | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/rgmanager/src/resources/oracledb.sh.in b/rgmanager/src/resources/oracledb.sh.in index b702052..6bf382d 100644 --- a/rgmanager/src/resources/oracledb.sh.in +++ b/rgmanager/src/resources/oracledb.sh.in @@ -217,8 +217,8 @@ meta_data() - - + + @@ -294,6 +294,7 @@ start_db() grep -q "failure" $logfile if [ $? -eq 0 ]; then echo "ORACLE_SID Incorrectly set?" + rm -f $tmpfile echo "See $logfile for more information." return 1 fi @@ -356,7 +357,8 @@ force_cleanup() declare pids declare pid - pids=`ps ax | grep $ORACLE_HOME | grep -v grep | awk '{print $1}'` + # Patch from Shane Bradley to fix 471266 + pids=`ps ax | grep $ORACLE_HOME | grep "ora_.*_${ORACLE_SID}" | grep -v grep | awk '{print $1}'` initlog -n $SCRIPT -s " Not all Oracle processes exited cleanly, killing" @@ -804,7 +806,6 @@ status_oracle() { declare -i subsys_lock=1 declare -i last - declare -i depth=$1 # # Check for lock file. Crude and rudimentary, but it works