Starting and Stopping BPEL via opmnctl

Hi All,
This should be easy - but I'm having some problems...
What I want to do is to script a nightly purge of my BPEL DB tables.
I have a working script that stops the whole App Server (opmnctl stopall), runs my SQL script and starts the app server again (opmnctl startall). The problem is that we have another application that is continually trying to write data to the OC4J JMS topics. By taking the whole app server down, the other app starts throwing exceptions because it can't write to the JMS topics.
I would think there would be a way I can take down only the BPEL process while I purge the DB - and still allow the JMS topics take in new messages. I tried the following...
$OAS_HOME/opmn/bin/opmnctl stopproc application=orabpel
<sql script >
$OAS_HOME/opmn/bin/opmnctl startproc application=orabpel
But after running this, my BPEL Console showed no processes loaded. I had to restart the whole app server to get them back.
I also tried ...
$OAS_HOME/opmn/bin/opmnctl stopproc ias-component=orabpel
<sql script >
$OAS_HOME/opmn/bin/opmnctl startproc ias-component=orabpel
But this kicked back errors saying " No processes or applications match the specified configuration."
I suppose I could create a new OC4J instance for my JMS Topics. Then I should be able to start/stop either OC4J without affecting the other one. Is this the best solution?
Any help is greatly appreciated!
Lon
Oracle Consulting

Yes - after looking at this option - I think that's the direction I am going to go. It probably makes sense to give my JMS topics and my BPEL server their own OC4J instances anyway - for a number of reasons.
Lon

Similar Messages

  • Starting and stopping applications via a Java-application on Windows/Unix

    Hello,
    I want to start java and other applications via a java application.
    This java application should start several different applications on windows and
    on unix systems and take care of their current state (e.g. running/not running).
    For all applications to be started there are .sh-scripts for unix and .bat-scripts
    for windows. In the scripts there could be a java call, e.g. "java someApplication",
    or some executables could be called. These scripts set the applications' environment etc.
    and start the application finally.
    My java application calls these scripts via the ProcessBuilder API, which is working fine.
    But there is the following problem: on windows, when executing a script that starts
    some other application, the ProcessBuilder gives me process-handle to the started
    process. If calling destroy() on this handle, only the cmd.exe gets killed which
    started the application. The application itself is running on. This is undesired behaviour
    since I want to be able to control the started applications, at least start and stop it which
    is impossible that way.
    On unix, it is working when using
    "exec java someApplication"
    instead of just
    "java someApplication"
    in the .sh-scripts. The exec command substitutes the shell process with the underlying
    process started in the script, so everything is working as expected on unix.
    But how could I get this working on windows systems? Is there any equivalent to the exec
    command on unix? Any suggestions appreciated.
    If something's unclear in my description, please let me know.

    Yes - after looking at this option - I think that's the direction I am going to go. It probably makes sense to give my JMS topics and my BPEL server their own OC4J instances anyway - for a number of reasons.
    Lon

  • Start and Stop bpel using APIs

    Dear All,
    we have a production on 10.1.3.4
    we have a requirement to start and stop a list of BPELs including their adapters without shutting down the SOA Server.
    I could see in Process table there are values for life_cycle and active.
    is that the best way to inactivate a service ?
    Is there any API which can be used for the same ?
    Thanks for your advise.
    Best Regards
    Arc

    Hi,
    You can do certain things via IBPELDomainHandle (see [http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/com/oracle/bpel/client/IBPELDomainHandle.html]) but BPEL and the adapters are really no more than j2ee applications that run in an oc4j container. If you want to stop bpel or adapters you can stop the applications from the enterprise manager website. I think there are also oc4j administration java api's but i have no experience with them. I would certainly not update dehydration store tables.
    Kind Regards,
    Andre

  • Pump Start and Stop?

    While making the I/O list, I have identified theDigital Ouput,  Port0/line1 as start for the pump and Digital Output, Port0/line1 for stop i.e is two port, lines, of the pump...but while making the software, VI, I am using the verticle toggle switch to consider the start of pump as up and stop as down of the toggle switch which works at one DO port line.
    How can I give two signal start and stop to the pump?
    Should I use two buttons? Which ones?
    I am confused. Please let me know.

    What do the two DO lines do?  Ultimately there will be one device (contactor, relay, thyristor, ...) which has two states (like a single boolean) to turn the pump on and off.  How do the two digital lines connect to that control device?  Are they inputs to some kind of electronic pump controller or are they simulating the standard industrial Start and Stop buttons via relays? Something else?
    You can use the single switch on the front panel and the boolean Not function to create the two lines for your DO.
    Lynn

  • Lightning to 30 Pin Adapter Charging Starts and Stops Intermittently

    I purchased two Lightning to 30 Pin adapters, and both are exhibiting the same problem.  They seem to start and stop charging intermittently on my iPhone 5, which, to be clear, is not in a case, nor is the adapter obstructed in any way.
    I purchased one for a dedicated iPhone/iPad charging station that I keep by my nightstand.  The adapters fit flush with the 30 pin connector on the charging station side.  At least three or four times during the night, the phone vibrates twice with the "you've just connected to power" alert and wakes me up. Trying the same thing in the car with the other adapter, the iPhone charging starts and stops while connected to my 12v power converter via a Twig cable.  When I connect the standard Lightning cable to either the charging dock (through its included USB ports) or directly to the same 12v converter plug in my car's cigarette lighter, I have no trouble charging at all.
    Has anyone else seen this behavior?  Could I have two faulty adapters (which doesn't seem likely), or is there something in the nature of the adapter that makes it turn on and off the charging on occasion?

    I have the same problem. I bought the same type of Speck Candy Shell case that I had for my 3GS iPhone. The $34.00 Lighting to 30-pin adapter will not fit through the case and into the IPhone 5. I just talked to Apple support and after being on hold 5 mins while the tech talked to her supervisor, the Apple solution is "take your case off the phone when you want to use the adapter". I hope thousands of us complain and Apple fixes this. If Apple had not been so secretive and talked to accessory manufacturers they would of know that the Adapter they designed was faulty. Now I how to drive to an Apple store to return the Adapter to get my money back. Only the USB cable will fit through the case into the iPhone 5.
    Bad Adapter design my Apple. Thats what happens when you design a product for millions of people - in a secretive bubble.

  • Start and Stop Apache

    Hi All,
    We are using Oracle Apps 11i, Can someone tell me how to start and stop Apache, I mean what are the commands.
    Thanks
    J

    Hi,
    I have no idea or visibilty about your system. In fact the script you mentioned must be running the apachectl start/stop command to start/stop apachectl.
    So your solution may be good for you (local scripts) but it is not a actual solution.
    In Oracle App, we use opmnctl startall/stopall to start/stop all processes including apatche.
    Regards

  • Starting and Stopping OBIEE 11g services in AIX

    Helllo Experts
    Could you pls. let me know how to start and stop OBIEE11g services in AIX.
    Here I mean , do I need to update my . profile with all the paths OR setDomainEnv.sh will take care of that.
    How to start Admin and BI server, Node manager ......what is the exact nohup command , do I need to put some parameter while starting Admin and Managed server.
    Regds
    Shahzad

    Hello User,
    Below the way you can start:-
    To start the Weblogic Server:-
    Go to the below directory location
    $OBIEE_HOME /user_projects/domains/bifoundation_domain
    Command:
    $nohup sh ./startWebLogic.sh -Dweblogic.management.username=weblogic -Dweblogic.management.password=<Password> > wls_start.log &
    $tail –f wls_start.log
    To start the Node Manager:
    Go to the below directory location
    $OBIEE_HOME/wlserver_10.3/server/bin
    Command:
    $nohup ./nodemanager.sh &
    To Start OPMNCTL:
    Go to the below directory location
    $OBIEE_HOME /instances/instanceN/bin
    Command:
    ./opmnctl startall
    ./opmnctl stopall
    ./opmnctl status
    Please mark helpful/Correct.
    Thanks,
    OBIEELearner.

  • Starting and stopping stream capture repeatedly

    Hi,
    I am building a vmail server that captures an incoming, continuous RTP voice stream from a hardware phone and records portions of that stream to disk, based on control messages received (like record/stop buttons for a continuous RTP stream).
    The first time I record, the sound file on the file system is well formatted. Subsequent recordings result in headerless audio files (although the audio data is correctly output to file otherwise).
    The problem is that I need to get header information written to the audio files for subsequent recordings.
    Here is a bit of source code to show how I am starting and stopping recording. At this point, the processor is already created and realized and the MediaLocator is previously initialized:
         MediaLocator recordedML ;
         public void startRecording() {
              try {
                   processor.start();
                   DataSource ds = null;
                   ds = processor.getDataOutput();
                   recordingDataSink = Manager.createDataSink(ds, recordedML);
                   recordingDataSink.open();
                   // starts sticking captured data into a file
                   recordingDataSink.start();
              } catch (IOException e) {
                   e.printStackTrace();
              } catch (NoDataSinkException e) {
                   e.printStackTrace();
         public void stopRecording() {
              try {
                   recordingDataSink.stop();
                   recordingDataSink.close();
                   recordingDataSink = null;
                   processor.stop();
                   processor.deallocate();
              } catch (IOException e) {
                   e.printStackTrace();
    Calling startRecording() and stopRecording() the first time results in a properly formatted sound file on the file system, captured from my incoming RTP stream.
    Calling startRecording() and stopRecording() subsequent times results in headerless audio files.
    So the problem seems to be that subsequent calls to processor.getDataOutput() result in a DataSource that doesn't print a file header.
    What I have tried includes:
    -recreating the processor, but this doesn't work because it seems you can only do this once for a single incoming stream - the processor never reaches the configured state a second time.
    -reconfiguring the processor or re-realizing the processor, which doesn't do what I want either.
    One way that I think this would work would be to write out the audio header manually after the capture is complete, but this seems like a gross hack and I would rather do it through JMF.
    Is there a way to fix this via JMF? Is this a JMF bug or is it intended to work this way?
    Cheers,
    -Jeff

    Hi, I am unfortunately unable to help you but perhaps you could help me. I have a Java GUI that I want to enable to record voice from a mic at the click of a button (stopping automatically if possible) and save to a defined file in the code. Would you be able to help me here? I have tried different source and rejigged things but I cannot seem to get anything working.
    Any help gratefully apreciated.

  • Cmdline start and stop separate OC4J

    Hi,
    We are working with OAS 10.1.2.0.2 (J2EE and Web Cache)
    On that OAS we have 7 OC4J's with different Webservices
    Is it possible to start and stop a OC4J sepratly using commandline functionalitt without using "opmnctl stopall" and startall
    Based on an event I just want to start and stop one component and not all components.
    Maybe the answer is already given here but please help.
    Hugo Perfors

    i found it in the manual

  • Start and Stop Apex from linux

    I have tried to find out which script is used to start and stop apex, but i hadn't been able to find it. If i do a netstat i do not see the 8080 port open but i can use apex. If i do "service oracle-xe start" oracledb starts correctly but i cannot use apex. Thanx in Advance

    here are windows script...
    First stop db, then listener then opmn (Apache)
    net stop OracleServiceXE
    net stop OracleOraDb10g_home1TNSListener
    C:\oracle\product\10.2.0\db_2\opmn\bin\opmnctl stopproc ias-component=HTTP_ServerTo start:
    net start OracleOraDb10g_home1TNSListener
    net start OracleServiceXE
    C:\oracle\product\10.2.0\db_2\opmn\bin\opmnctl startproc ias-component=HTTP_ServerOn linux you start lister through lsnrctl start/stop "name of listener"... opmn is started the same way as shown here...
    db can be started/stopped as
    ORACLE_SID=XE
    sqlplus '/ as sysdba' @start/stop_script.sqlwhere start/stop_script.sql has:
    <b>startup</b>
    or
    <b>shutdown immediate</b>
    in it.
    Hope this helps a little

  • Start and Stop Trigger using PXI-6120 and DigitalSta​rtAndStopT​rigger.vi not working :-(

    Hello,
    I've been trying for a while now to get my PXI unit to capture a waveform between a Start and Stop (Reference) Trigger using the NI example DigitalStartAndStopTrigger.vi downloaded from the NI website. However, whilst the start trigger and stop trigger seem to be working i.e. the VI runs and stops at  the correct times there is never any data read from my DAQmx compatible PXI-6120 card. So I can see the VI is running around the aquisition loop but the Property Node AvailSampPerChan is always returning zero... this has me slightly puzzled. I thought this might just be a driver issue so I've updated my box to the following software versions (see below) and installed the latest drivers e.g. DCDNov07.exe (also from the NI site) but nothing has changed.
    my software as of now.
    Labview 7.1 (with the 7.1.1 upgrade applied)
    Max 4.3.0.49152
    DAQmx 8.6.0f12
    Trad DAQ 7.4.4f7
    before I updated I had the same problem but with the following versions:
    Labview 7.1 (with the 7.1.1 upgrade applied)
    Max 4.2.1.3001
    DAQmx 8.5.0f5
    Trad DAQ 6.9.3f4
    So to cut a long story short I still have the same problem with the triggers... does anybody have any ideas what is going wrong?
    To add insult to injury it the traditional DAQ example ai_start-stop_d-trig.vi was almost working correctly before I did the upgrade. It had the strange behaviour of capturing the AI0 channel but on the wrong edges (e.g. if I set Start on Rise and Stop on Fall it would do the opposite, Start on Fall and Stop on Rise).
    I'm going to leave my box doing a mass compile over night but i'd really like it if someone could suggest a solution or point me in the right direction.
    Many thanks,
    Mike

    Hi Graham
    I'm out of the lab today but I'll try and answer your questions as best I can...
    1) What are the values you have set for Buffer size, Rate, samples per read and post trigger Samples?
    At the moment I have all the values (e.g. sample rate, buffer size etc) unchanged apart from the ones I mentioned in my previous post (see above). I have in the past played around with changing the buffer sizes and rates in the example VI but as this appeared to have no effect on the behaviour I now have them setup as in the download.
    2) Does the program end after the stop trigger is implemented?
    Yep, if I toggle the trigger line high then low I see the program exits the read loop and the VI stops running as expected.
    3) Lastly can you give me the details of triggering method. Are you
    using a digital train of users set digital pulses? how long is the
    program running.I'm using the WriteDigChan.vi to manually toggle the first digital line of the PXI-6733 card which is wired directly to PFI0 of the PXI-6120 card. Generally, I just start the VI running  and then toggle the line high, wait a couple of seconds and then toggle it low.
    To me it all looks like it should be acquiring samples but as I said yesterday it just refuses to fill the buffer with any data (and hence no samples are read).
    Any ideas? and thanks for you help,
    Mike

  • I do not have the 'Advanced' tab on the menu bar. I am trying to change ringtone on my iphone 4s. Have done the following: Right cick on song, entered the start and stop times, but unable to proceed as need 'Advanced' tab in order to change to option.

    I do not have the 'Advanced' tab on the menu bar. I am trying to change ringtone on my iphone 4s. Have done the following: Right cick on song, entered the start and stop times, but unable to proceed as need 'Advanced' tab in order to change to option.

    You don't need to upgrade your software.  But if you're struggling with Spry, IMO you should cut your losses and switch to something better for the longrun.
    If you have a budget to work with, I highly recommend Project Seven's Pop-Menu Magic 3.  It's easy to use in DW CS4, 5, 6 or CC.  More importantly, it's bullet proof and works in all devices. 
    Pop-Menu  Magic3 by PVII (commercial DW extension)
    http://www.projectseven.com/products/menusystems/pmm3/index.htm
    If you don't have a budget to work with, you can roll your own menus with jQuery plugins.  A bit more effort on your part, but they perform better than Spry.
    jQuery Superfish
    http://users.tpg.com.au/j_birch/plugins/superfish/
    jQuery MegaMenu2
    DEMO:
    http://www.geektantra.com/projects/jquery-megamenu-2/
    DOWNLOAD:
    http://code.google.com/p/jquery-megamenu/
    Nancy O.

  • Need help getting Tomcat 5.0.28 to start (and stop, eventually)

    Hi!
    I am such a newbie to the Terminal and writing scripts, so please forgive my naiveté. I have successfully installed Tomcat in my /usr/local directory, but I am having trouble creating files to start and stop Tomcat, per the instructions on the following page:
    http://developer.apple.com/internet/java/tomcat1.html
    I've followed the directions but continue to get the following error after I execute ~/bin/start_tomcat.
    -bash: start_tomcat: command not found
    My file contains the following code:
    #!/bin/sh /n
    export CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.28 /n
    export JAVA_HOME=/usr /n
    $CATALINA_HOME/bin/startup.sh /n
    If anyone can help me, I would really, really, really appreciate it!
    Thanks!
    PowerBook G4 12"   Mac OS X (10.4.5)  

    Why are there all those "/n" there? Either you or the place you copied from has the wrong slash. But still, it's wronger than that to have them at all: "\n" means a newline (i.e., press "return") not the actual "backslash en" characters. Sometimes people post code with those \n visible: by making it explicit where a line-break should be, one doesn't have as much trouble when a web browser reformats the text and puts line breaks where they don't belong.

  • Editing Loop Start and End times via automation / MIDI controllers?

    I'm trying to play a sample in EXS24 and have the Sample Start, Loop Start and End times manipulated over the course of the song. I've tried to open up the EXS sample editor, click on the numerical value of the Loop Start, and then attempt to Learn Automation. All it does is assign the knob for the instrument Volume Level. Is there any way to do this? It's basically how an Akai S612 works: http://www.vintagesynth.com/akai/s612.shtml
    I switched gears and tried it also with Battery, and there's a way to map the Start and End times in there, but it's not seeming to work as I've intended. I can't seem to make the loops move as they should and there's ways to use up to 4 loops, but not a way to target each loop's start and end points via separate controllers.
    I could use my S-612 [and probably will], but in moments where I don't have one available, I'd love to find a solution to this.
    Thanks,
    +odd

    Anyone with any thoughts? would be great to solve this.

  • Report on active sync actions (like starting and stopping the sync)

    Is there a way to report on who stopped or started an active sync? I'm guessing it has to be stored somewhere, but I can't find it.
    Thanks!

    Hi Smit,
    I believe you are talking about FMS AWS instance and you may be using a centos 4.0.2 instance AMI or lower?
    Well ... earlier,  options for stopping a centos AWS image was not available, but recently they are there in place, so I suppose if you use a new centos 4.5.1 AMI then probably you can start stop the aws instance on yuor will. Give ut a shot and let me know.
    Regards,
    Shiraz Anwar
    I again cross-checked and found that you were right, start and stop is not supported there .... an alternative method is to take a snapshots of the runinng instnace and terminate that instance after that, later you can use your snapshot to attach to the EBS volume to run your system again. You may need to use the Elastic IP address, because you wont like your users to update each time you terminate the old instance, and create new instance from snapshot. I have never used it in this way, but this is one of the approach.

Maybe you are looking for

  • Creation of 2 new company codes in continuation with existing compny code.

    Hi Our company has got 2 locations but we are using only one company code for both the locations from the last 4 years. Now due to expansion of business we have extended our business to one more location. So.now are planning to use 3 company codes. N

  • PSE or LR on the move

    I currently do most of my editing at home on fast desktop PC My job has changed and i'm spending a lot of time away from home great for photography but leaves little time to catalogue and edit etc. I want to be able to access my catalogues, PSE and L

  • HT203167 i synced my iPhone 4 onto my iMac and i lost over 90 songs HELP

    i had 138 songs after i synced my phone it left me with 44. and they were my most recent purcheses. now the only thing in iTunes is like 30 sum songs. HOW DO I FIND THE LOST MUSIC???? please this is so important. im a dj i have to have my music

  • Error Message 1603

    I've followed all the instructions to upgrade my ISScript Installer but I still get error message 1603, and can't upgrade iTunes to v6. I also can't purchase songs until I upgrade. You would think that Apple would take care of this asap. Once and for

  • Illustrator 10 installation woes

    Hi, I just installed Illustrator 10 on my windows 7 x64 PC. The installation went smoothly & s/n accepted without error messages. Unfortunately, when I go to run the program, I see the initial splash screen for a split second, and then nothing. The p