Clusterware 10g: what kicks off 3rd-party failover script?

I am trying to use Oracle Clusterware 10g (installed on two identical Dell Linux boxes,
OEL 5.2) to failover a 3rd-party application, specifically websphere MQ. I have a ksh
script that is supposed to start/stop/restart the application.
Clusterware will fail over the IP address fine to the other box if I yank the primary box's
cable, but the app itself doesn't fail over. If I knew what (in Clusterware) did the
"kicking off" of the ksh script I could troubleshoot it more. I used the instructions in:
http://www.oracle.com/technology/products/database/clusterware/pdf/TWP-Oracle-Clusterware-3rd-party.pdf
and I'm pretty sure I did it right.
Any ideas?

Here is the action script:
#!/bin/ksh
LOG="/san1/var/mqm/config/Controlmq.log"
echo "script started at `date` from `hostname`" >> $LOG
############################### func_stopMQ ######################################
func_stopMQ () {
QUEUENAME=$1
while [[ `ps -ef | grep $QUEUENAME | grep -v grep | grep -v Control| awk {'print $2'} | wc -l` -gt 1 ]]
do
echo "DEBUG : `ps -ef | grep $QUEUENAME | grep -v grep | grep -v Control` " >> $LOG
echo "there are `ps -ef | grep $QUEUENAME | grep -v grep | grep -v Control| awk {'print $2'} | wc -l` processes running associated with $QUEUENAME on `hostname`" >> $LOG
endmqm $QUEUENAME
endmqlsr -m $QUEUENAME
## echo "sleeping for 10 seconds before checking again"
sleep 10
done
## echo "All set, there are no processes associated with $QUEUENAME "
echo "stopped $QUEUENAME at `date` from `hostname`" >> $LOG
return 0
################################ func_startMQ ######################################
func_startMQ () {
QUEUENAME=$1
case $QUEUENAME in
MECM|MEQM)
PORT=1414
MEQA|MEQB)
PORT=5077
esac
## echo "starting $QUEUENAME"
strmqm $QUEUENAME
sleep 5
## echo "STARTING listener for $QUEUENAME"
runmqlsr -t tcp -p $PORT -m $QUEUENAME &
sleep 5
runmqsc $QUEUENAME < /san1/var/mqm/config/startCH_$QUEUENAME.DEF
echo "started $QUEUENAME at `date` from `hostname`" >> $LOG
return 0
################################ func_checkMQ ######################################
func_checkMQ () {
QUEUENAME=$1
PROCESSCOUNT=`ps -ef | grep $QUEUENAME | grep -v grep| grep -v Control| awk {'print $2'} | wc -l`
if [ $PROCESSCOUNT > 1  ]
then
echo "there are $PROCESSCOUNT processes associated with $QUEUENAME" >> $LOG
echo ":::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::" >> $LOG
echo "Status of $QUEUENAME : " >> $LOG
runmqsc $QUEUENAME < /san1/var/mqm/config/ChannelStatus.DEFS
return 0
else
echo "there are $PROCESSCOUNT processes associated with $QUEUENAME" >> $LOG
echo ":::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::" >> $LOG
echo "Status of $QUEUENAME : " >> $LOG
runmqsc $QUEUENAME < /san1/var/mqm/config/ChannelStatus.DEFS
return 1
fi
ACTION=$1
# QUEUENAME=$2
case $ACTION in
start)
## func_startMQ MECM
## func_startMQ MEQA
func_startMQ MEQM
func_startMQ MEQB
stop)
## func_stopMQ MECM
## func_stopMQ MEQA
func_stopMQ MEQM
func_stopMQ MEQB
check)
## func_checkMQ MECM
## func_checkMQ MEQA
func_checkMQ MEQB
echo "Sorry, the proper usage for this command is ControlMQ.sh start|stop|check"
exit
esac

Similar Messages

  • What is twin sign? what kick off (in implementation project)

    what is twin sign? what kick off (in implementation project)
    regards
    ramana

    Hi,
    Twin Sign means Both the CLIENT and the COMPANY(IMPLEMENTING) signing on the Project papers by defining various project related things.
    Once it is signed the Project Will KICK OFF means literally starts,
    With the required resources, software and hardware.
    Regards,
    Anji

  • What is twin sing? what kick off in implementation project

    what is twin sing? what kick off in implementation project
    regards
    ramana

    Hi,
    Twin Sign means Both the CLIENT and the COMPANY(IMPLEMENTING) signing on the Project papers by defining various project related things.
    Once it is signed the Project Will KICK OFF means literally starts,
    With the required resources, software and hardware.
    Regards,
    Anji

  • What is a 3rd Party System?

    Is a "3rd Party System" anything that isn't developed by Apple?
    IF so, since I updated to Mavericks, I have a "mac" compatible program that I can't get into, eveb though it had a new dmg to download making it OK for Mavericks. (Same thing happened going from Tiger to Lion with another program.)
    Problem is, Apple doesn't make all kinds of programs, like Genealogy, Languages, Cameras, etc. SO, what's a user to do?  & Why does mac just "dump" what ever it is to keep these programs running on a new OS?
    just frustrated, as I can't access my Genealogy data, nor a language program... aguh!
    Thanks all... for any help... answers

    WoW that was quick!
    Kappy,
    1. ..."never upgrade an operating system or critical system software without knowing that your job-critical software is compatible."
        - But as often goes with "updates" - that Info is not made available to the user beforehand!
    2. "Apple provides all the necessary information to interested developers that is needed for their software to be compatible. If the developer chooses not to keep up,"
      - AH HA - the Genealogy program I have, iFamilyForLeopard DID update it's compatiblility!! It was ALSO Updated to Sno Leopard > then to Lion > then to Mountaia Lion > & ALSO to Mavericks TOO! & Yes, I DID talk with / emailed & Downloaded the upgraded (according to Apple's Specs) the dmg to run it!
       News flash, it does not. The developer's trying to "fix" it ... or did Apple revise it's specs, after letting other's know & the release? Hmmm (used to be Micro-Swift's modis aporendi)
    Chris, read  # 2 on Kappy's did that already.
    Tom, What do you mean "duplicated posting"? Where? What does "duplicated posting have to do with my software problem?

  • What is the 3rd party player that will open a windows media player on the MAC

    What 3rd party player provides the ability to open .wmv file on a Mac? We have QuickTime Player but it does not recognize the file.

    Thanks for responding Barney-15E. I did install the free version of Flip4Mac prior to sending my question out to the community. I still could not open the file. After I installed Flip4Mac a window opened stating QuickTime Player does not recognize the file. How do you make it go through Flip4Mac instead of QuickTime Player?

  • What is the 3rd party software installation procedure

    Hi,
    I am new to mac, so this may be a basic question. Third party software installation files usually have the dmg extension. What is the procedure to install apps that come in this form? I know that once I double click the dmg file, a virtual disk appears on the desktop. Can I copy the disk to the applications folder and delete the dmg file? Actually I have tried to do this and mac wont allow me to delete the dmg file beyond trash. What is the procedure that should be followed?
    I also realize that my understanding of this disk image and disk utility concepts is weak. If you can, please explain these terms too.
    Thanks.
    Regards,
    Murali
    MacBook   Mac OS X (10.4.6)  

    What you've done is copied the .dmg to your applications folder, not the application itself.
    a .dmg file is a 'disk image' which will mount a 'virtual disk' when double-clicked. A virtual disk behaves as though it was a real physical disk - even though it's all software.
    In your case the virtual disk contains the Firefox application. The window you posted on Flickr is the contents of this virtual disk - with a useful (or confusing) diagram telling you to drag the application to your Applications folder.
    Since you've put Firefox into your dock without first copying it to your Applications folder, OSX is running it from the virtual disk, not from your real disk.
    When running 3rd party applications normally, you shouldn't need to have any virtual disks on your desktop.
    What you need to do is this:
    -Take Firefox out of your dock
    -find the .dmg file you downloaded and double click it to mount the virtual disk
    -drag the Firefox application (.app file) into your Applications folder
    -drag the virtual disk to the trash to unmount it
    -drag the .dmg file to the trash to delete it
    -put Firefox back in your dock, from your Applications folder
    Hey Presto
    PowerBook G4 1Ghz 15   Mac OS X (10.4.1)  

  • Can I move an iTunes library from Comp1 to Comp2 through Home Sharing?  What happens with the first sync?  What happens to 3rd party app data (specifically, game scores/levels)?

    I need to move an iTunes library from Computer 1 to Computer 2.  Can I do this through Home Sharing, by dragging and dropping library items from one to the other?  The library consists of iTunes purchases, home shared items and music/movies from our personal collection.  Both computers have had all the accounts authorized, so I don't anticipate an issue there.  I'd like to do this so that my son's ipod is impacted as little as possible -- specifically, his game scores/levels and other 3rd party data remain intact after the 1st sync and the organization of his icons remain intact.
    Is there a way to do this smoothly and easily, protecting his ipod data/organization?

    Sorry, I obviously wasn't clear. If you replicate the library from Computer 1 to Computer 2 by copying it, then all will be well. I routinely sync my iPhone and iPad both at home and at work using a single library that I migrate between the two locations via an external drive which is kept up do date using SyncToy.
    Backup the iPod touch on Computer 1.
    Copy the entire iTunes folder from Computer 1 to Computer 2, replacing any existing iTunes folder on Computer 2.
    Check that content is accessible in the migrated library. (Won't be a problem for a standard iTunes library where all the content is inside the iTunes Media folder which in turn is inside your iTunes folder).
    Connect iPod touch to Computer 2.
    Sync.
    In the unlikely event that something goes wrong (it won't) then you can connect the device back to Computer 1 to restore it.
    Note device backups are not stored within the iTunes library and stay on the machine on which they were created. It is theorectically possible to migrate them but there isn't really any point. Once you have synced the iPod with the copy of the library on Computer 2 then Computer 2 will make its own backup of the device.
    tt2

  • What are the 3rd  party text editors for oracle?

    hi guys,
    I was wonder does any one know any 3rd party text editor available for Oracle(for free!)
    Just like ot SQL server 2000 which provides a nice texteditor to type all the SQL commands, is there a one liek that for Oracle?
    Message was edited by:
    user502781

    Oracle provides SQL Developer for free. It is quite adequate for my purposes.

  • What is the 3rd party Vender (SMS)

    Verizon finally replied me and explained $9.99 is for Premium SMS by third party vendor.
    But I don't sign on any third party vendor. 
    What is the Premium SMS by third party vendor.? Anyone has same situation like me?

    rcschnoor wrote:
    soisee wrote:
    Verizon finally replied me and explained $9.99 is for Premium SMS by third party vendor.
    But I don't sign on any third party vendor. 
    What is the Premium SMS by third party vendor.? Anyone has same situation like me?
    This can be done in several ways. You could have played a game on Facebook, where the terms and conditions said you would be charged this. You could have downloaded a free ringtone, wallpaper, app, etc... where the terms said in exchange for this you would be charged a monthly usage fee. You could have texted a # you saw on TV which included a charge. You could have donated to the charity of your choice by texting to a number you were given.
    Bottom line, there is no way for us to know how you signed up. If you have never had any charges of this type in the past, you should be able to call *611 and tell CS that you do not think you signed up for this charge and would like it removed. Then ask them to block ALL Premium SMS on your line. Lastly, sign into My Verizon and CONFIRM that this block has been placed on your line and any other lines you may have.
    Only thing different that i would do is to sign on and block all premium messaging first. You've probably already received another charge for Premium SMS. They did refund my charge several years ago before I learned to block all premium messaging.

  • Auto-kick off MaxL script after Oracle GL data load?

    Hi guys, this question will involve 2 different modules: Hyperion and Oracle GL.
    My client has their accounting department updating Oracle GL on a daily basis. My end-user client would like to write a script to automatically kick off the existing MaxL script which is for our daily data load in Hyperion. Currently, the MaxL script is manually executed.
    What's the best approach to build a connection for both modules to communicate with each other? Can we use a timer to trigger the run? If so, how?

    #1 External scheduler.
    I've worked on Appworx and it has build a chain dependent task. There are many other external schedulers like Tivoli,....
    #2 As Daniel pointed out you can use Windows scheduler.
    For every successful GL load add a file to a folder which is accessible for your Essbase task.
    COPY Nul C:\Hyperion\Scripts\Trigger\GL_Load_Finished.txt
    Create another bat file which is scheduled to run on every 5 or 10 mins (this should start just after your GL Load scheduled task)
    This is an example i've for a triggered Essbase job.
    IF EXIST %BASE_DIR%\Trigger\Full_Build_Started.txt (
    Echo "Full Build started"
    ) else (
         IF EXIST %BASE_DIR%\Trigger\Custom_Build_Started.txt (
         Echo "Custom Build started"
         ) else (
              IF EXIST %BASE_DIR%\Trigger\Post_Build_Batch_Started.txt (
              Echo "Post Build started"
              ) else (
              IF EXIST %BASE_DIR%\Trigger\Start_Full_Build.txt (
              Echo "Trigger found starting batch"
              MOVE %BASE_DIR%\Trigger\Start_Batch.txt %BASE_DIR%\Trigger\Full_Build_Started.txt
              call %BASE_DIR%\Scripts\Batch_Files\Monthly_Build_All_Cubes.bat
              ) else (
                   IF EXIST %BASE_DIR%\Trigger\Start_Custom_Build.txt (
                   Echo "Trigger found starting Custom batch"
                   MOVE %BASE_DIR%\Trigger\Start_Custom_Batch.txt %BASE_DIR%\Trigger\Custom_Build_Started.txt
                   call %BASE_DIR%\Scripts\Batch_Files\Monthly_Build_All_Cubes_Custom.bat
                   ) else (
                        IF EXIST %BASE_DIR%\Trigger\Start_Post_Build_Batch.txt (
                        Echo "Trigger found starting Post Build batch"
                        MOVE %BASE_DIR%\Trigger\Start_Post_Build_Batch.txt %BASE_DIR%\Trigger\Post_Build_Batch_Started.txt
                        call %BASE_DIR%\Scripts\Batch_Files\Monthly_Post_Build_All_Cubes.bat
    )So this bat file if it finds Start_Full_Build.txt in the trigger location, it'll rename that to Full_Build_Started.txt and will call the Full Build (likewise for custom and post build)
    Regards
    Celvin
    http://www.orahyplabs.com

  • Process Chains and 3rd party scheduling tools in 04s

    All,
    What, if any, 3rd party scheduling tools (Autosys, CTL-M, etc...) deliver certified connectivity with 04s BW?  I've had some experience with 3.x in prior lives in having to support a custom abap pgm to submit and monitor process chains via SM37.   Has the integration with 3rd party tools changed?  If we need to connect with a 3rd party tool, is a custom 'wrapper pgm' still required?
    Thanks,

    Hi Lonnie,
    SAP NetWeaver 2004s comes with the external scheduling tool Redwood Cronacle included. In the next release it will be integral part of the NetWeaver system.
    Please check the SAP Service Marketplace for further information
    <a href="http://service.sap.com/job-scheduling">SAP Service Marketplace /job-scheduling</a>
      Cheers
        SAP NetWeaver BI Organsation

  • Which 3rd party tools can support Open Hub Destination?

    Hi BI experts,
    In the Open Hub Destination Type, I have a choice between Database Table, File or Third Party Tool.  From what I read from SAP documentation, the Third Party Tool which is supported is Ascential.  Apart from Ascential, what are other 3rd party Tools can Open Hub Destination link up to ?
    Can Microsoft BI be linked up?
    Please let me know.
    Thanks,
    Anthony

    Hi Anthony,
    Yes, SSIS can be used with Open hub.
    Refer to below mentioned link:
    [Using SQL Server 2008 Integration Services with SAP BI 7.0|http://msdn.microsoft.com/en-us/library/dd299430.aspx]
    Regards
    Hemant Khemani

  • Favorite 3rd Party Plug-ins for FCP X?

    Hey, everyone.
    I was wondering what are some 3rd party plug-ins that you folks are using that you recommend?
    I'm using FCPeffects' Light Rays. Works well for me.
    Thanks!

    ShrinkRay from CrumplePop i cool.. and their splitscreen also..

  • Wildcards in 3rd party script

    I am trying to adapt a 3rd party calendar script for
    operation on my PHP
    site. I'm guessing that the script was writted for use with
    Access or
    something besides MySQL since it uses "*" as a wildcard in
    the SQL (which I
    can fix). But it also uses that wildcard in the body, e.g.,
    if (($val['day'] == $cellValue) && (($val['month']
    == $this->month) ||
    ($val['month'] == '*')) && (($val['year'] ==
    $this->year) || ($val['year']
    == '*'))) {
    How do I patch that - or do I even need to?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================

    Oh - I see. I thought it was a rather strange usage myself!
    Hmmm....
    OK - I'm going to have to look harder to see why I'm getting
    an error here -
    http://development.bayleys.com/test-calendar.php
    The referenced line is contained in this block -
    <?php
    class CreateQCalendarArray {
    var $daysInMonth;
    var $weeksInMonth;
    var $firstDay;
    var $week;
    var $month;
    var $year;
    var $counter;
    function CreateQCalendarArray($month, $year) {
    $this->month = $month;
    $this->year = $year;
    $this->week = array();
    $this->daysInMonth =
    date("t",mktime(0,0,0,$month,1,$year));
    // get first day of the month
    $this->firstDay = date("w",
    mktime(0,0,0,$month,1,$year));
    $tempDays = $this->firstDay + $this->daysInMonth;
    $this->weeksInMonth = ceil($tempDays/7);
    $this->fillArray();
    function fillArray() {
    // create a 2-d array
    for($j=0;$j<$this->weeksInMonth;$j++) {
    for($i=0;$i<7;$i++) {
    $counter++;
    $this->week[$j][$i] = $counter;
    // offset the days
    $this->week[$j][$i] -= $this->firstDay;
    if (($this->week[$j][$i] < 1) ||
    ($this->week[$j][$i] >
    $this->daysInMonth)) {
    $this->week[$j][$i] = "";
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "David Powers" <[email protected]> wrote in message
    news:[email protected]...
    > Murray *ACE* wrote:
    >> So, the "*" syntax is correct in PHP?
    >
    > No. I'm just commenting that the conditional statment is
    rather
    > meaningless. If * means anything, the condition boils
    down to this in
    > plain language:
    >
    > If the day is the same as the submitted value AND the
    month is either this
    > month or any other month AND the year is this year or
    any other year.
    >
    > If any month and any year are acceptable, all that's
    being checked is
    > whether the day is the same as $cellValue.
    >
    > --
    > David Powers, Adobe Community Expert
    > Author, "The Essential Guide to Dreamweaver CS3"
    (friends of ED)
    > Author, "PHP Solutions" (friends of ED)
    >
    http://foundationphp.com/

  • HT201304 does anyone know if there is an free or inexpensive app that will let me mange some 3rd party apps on my IPAD 2 that are soundiing pretty scary???  Im still green behind the ears after 8 montth.  Acutally, what are those apps (found by Battery Do

    I mean, why shouldn't those apps show up when I look for them,  since they are from 3rd parties and if they must be there, how about an idea of who they are and whate they do.  I would expect as the owner to have  some sort of explanation of who the 3rd party is, why there apps are apprearing on your ipad without permission, and maybe the ramifications of taking off or at least turning them off.  Its not rocket science, people.  It really about our rights as pople, right???

    Edgy44 wrote:
    I mean, why shouldn't those apps show up when I look for them,
    Most likely because they are not apps. They are background processes the OS is runnning.
    I would expect as the owner to have  some sort of explanation of who the 3rd party is, why there apps are apprearing on your ipad without permission, and maybe the ramifications of taking off or at least turning them off.  Its not rocket science, people.  It really about our rights as pople, right???
    I suggest you sell your iPad and not worry about it any longer.

Maybe you are looking for

  • Can't display time position on playhead

    I have iMovie 10.0.2 and Mavericks and I want to cut an hour long movie into about 5 min segments. I want to be able to browse the movie and find out where I want to split it, note the time positions, then import the 1 hour each time and delete the s

  • Selection screen in background MRP

    Hi all, Can anyone please tell me what is the meaning of 'selection screen', in background MRP variant? What does it contains and what is its significance? Thanks in advance Sumeet

  • SQL errors in SMS_STATE_SYSTEM - Trying to write NULL values to PropertyLocale

    Hi! We are getting a lot of the following error in the SMS_STATE_SYSTEM: Microsoft SQL Server reported SQL message 515, severity 16: [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyL

  • How to view View Objects or JSF locally?

    Hi I am very new to ADF and Fusion Applications. As the JDeveloper is running too slow, I would like to know if there is any way to view the view objects and JSFF definitions locally to understand and customize the seeded objects. Any pointers will b

  • HT204053 Same email address for apple devices

    Can I use the same email address for itunes and app store for my all my apple devices?