Bug 458481

Summary: oracledb.sh does not correctly handle multiple Oracle instances
Product: [Retired] Red Hat Cluster Suite Reporter: Matthew Whitehead <mwhitehe>
Component: rgmanagerAssignee: Lon Hohberger <lhh>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: cfeist, cluster-maint, edamato, sbradley, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-18 20:39:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 471226    
Attachments:
Description Flags
Patched oracle database agent that supports multiple instances (but has this bug)
none
Fix, pass 1 none

Description Matthew Whitehead 2008-08-08 19:27:06 UTC
Description of problem: when using the /etc/init.d/oracledb.sh script that handles multiple oracles instances, it kills ALL oracle processes when shutting down an oracle service.  


Version-Release number of selected component (if applicable): rgmanager-1.9.80-1


How reproducible: 100%


Steps to Reproduce:
1. Create 2 oracle clustered services
2. Run them on the same cluster member
3. Fail one over to another node
  
Actual results: All oracle processes get killed and restarted


Expected results: Only the moving service processes should be killed and moved.


Additional info:

Comment 3 Lon Hohberger 2008-10-27 20:40:25 UTC
Created attachment 321658 [details]
Patched oracle database agent that supports multiple instances (but has this bug)

Comment 4 Lon Hohberger 2008-11-11 19:21:12 UTC
Shane noted that changing the 'pids' line in force_cleanup to this might fix the problem:

pids=`ps ax | grep $ORACLE_HOME | grep "ora_.*_${ORACLE_SID}" |grep -v
grep | awk '{print $1}'`

Comment 7 Lon Hohberger 2008-12-09 22:14:20 UTC
Created attachment 326415 [details]
Fix, pass 1

Comment 8 Lon Hohberger 2009-02-18 20:39:47 UTC
Based on customer reports, I have copied the above script to my notes page here:

http://people.redhat.com/lhh/oracle-rhel5-notes-0.6/oracle-notes.html

However, due to limited feedback, I am closing this.