How to call multiple routines that do not return.

I need to create a script (pl/sql, sql*plus, unix, or whatever is best) that starts 18 instances of a stored procedure that continutes to execute without returning. (The proc wakes up periodically, looks for a file in a directory, processes it if it exists and otherwise goes back to sleep for awhile - doing this continually unless it finds a stop command in a table.)
The fellow who developed this proc just manually starts 18 command windows in pl/sql developer. I have been asked to come up with a way to automate the startup.
I could start sql*plus in 18 unix jobs but I was hoping to find a way to make one call to a SP to kick it all off.

if it is already running continously why do you need to automate the process running
We need a way for server maintenance folks to stop and restart this process in an orderly manner without knowing anything about Oracle. They call operations and say "we need to take the server down for maintenance." Ops say "ok, we need to run this stop process. Let us know when we can restart it."
Ops can only run a Unix script. I don't want the Unix script to leave 18 instances of sqlplus running 24x7.
But this thread gave me the answer. The Unix script calls a S.P. that kicks off the jobs to start the 24x7 processes. The unix script terminates nicely after calling the startup routine. Voila! (the shut down process is a totally different beast and much simpler)

Similar Messages

  • How to call a routine that returns a pointer using jni

    hi this is ravi kiran,
    i have a situation where i need to call a c-routine from my java program that returns a pointer.
    how can i get the content of the pointer that the routine is returning.
    plz help me
    thanx in advance

    Return it as a java long.
    When you need to use it again then pass it in as a long and cast it to a pointer.
    If you need to free it then you should consider writing a finalize() method (one of the few times it is appropriate) and a destroy() method as well.

  • How to call multiple strus actions froma single jsp

    how to call multiple strus actions froma single jsp, and that actions should be automatically called pls help me
    Thanks in advance

    how to call multiple strus actions froma single jsp, and that actions should be automatically called pls help me
    Thanks in advance

  • How to call the application that submitted with the ipod touch 5?? is a ninja

    how to call the application that submitted with the ipod touch 5?? is a ninja

    You should not discuss beta software here at all.
    This is a developer only question and should be posted in the developer forum

  • How to call a class that extends a frame from a panel ?

    How to call a class that extends a frame from a panel ?
    I am trying to create an application say "Videoshow"
    Videoshow has a panel which in turn consists of 2 components : 1]a textarea( to show the contents of a page) and 2] a mediaclip(to show the video).
    Now I have an application "MediaApplication"(to show the videoclip) which extends Frame (Code from Java 2 Unleashed, Chap 21). I want to show this MediaApplication in Component 2 of the above panel. But when I do this, I only see the MediaApplication frame instead of the whole SlideShow.
    I want to do something likethis.
    VideoShow :
    |---------------------------------|-------------------|
    | |
    | (Comp 1) | (Comp 2)
    | TEXTAREA | Video Clip
    | |(MediaApp entends Frame)
    |---------------------------------|-------------------|
    What is the best way to achieve this ? Also which component can I use to show the videoclip ?

    im not familiar with the code you mention from Java 2 Unleashed, but your best bet is to read up on Swing a bit - so you get an idea of how Swing containers and components work - then im sure you'll find a solution to your problems. Then if you encounter any difficulties whilst your attempting to do that, post your code in the Swing forum and im sure someone will help you.

  • How to call a procdure that will return me list of values(JSF,ADF BC)

    hi all,
    any one can help me how to call a procedure that will return me list of value with using adf and jsf

    I did this with a LoginModule that returned a list of user roles. Below is the Java call
    stmt = conn.prepareCall(authquery);
            stmt.registerOutParameter(1, OracleTypes.CURSOR);
            stmt.setString(2,username);
            stmt.setString(3,new String(password));
            // realm is null if not set
            stmt.setString(4,_application_realm);
            stmt.execute();
            rolesResultSet = (ResultSet)stmt.getObject(1); 
            stmt.close();authquery is the name of a procedure that returned a ref Cursor
    CREATE OR REPLACE PACKAGE "DBPROCLM" IS
      TYPE principal_ref IS REF CURSOR;
      function get_user_authentication(p_username in varchar2, p_password in varchar2, p_realm varchar2) return principal_ref;
    END;
    CREATE OR REPLACE PACKAGE BODY "DBPROCLM" IS
      FUNCTION get_user_authentication (p_username in varchar2, p_password in varchar2, p_realm varchar2)
      RETURN principal_ref
      AS
        var_username varchar2(100);
        var_userid number(10);
        var_password varchar2(100);
        role_cursor principal_ref;
        FAILED_AUTHENTICATION exception;
      BEGIN
        select userid, username, password into var_userid, var_username, var_password from sec_users where username = p_username;
        if (var_password = p_password) then
          begin
            if (p_realm is null) then
              open role_cursor for
                select rolename from user_roles_view where userid = var_userid;
            else
              open role_cursor for
                select rolename from user_roles_view where userid = var_userid and realm=p_realm;
            end if; -- p_realm check
          end;
          -- if password doesn't match, raise Excpetion for LM to
          -- abort the authentication process
        else raise FAILED_AUTHENTICATION;
        end if;
        RETURN role_cursor;
      END get_user_authentication;
    END;You only ned to expose the call to teh procedure in a method (e.g. on ADF BC Application Module) and create a method binding for it.
    Frank

  • How can I display images that are not included in any collection?

    How can I display images that are not included in any collection (some filter or smart collection)? A smart collection with parameters "Collection - contains - empty field" does not work. Lightroom 5.

    Thank you! Good idea! I ordered letters of the alphabet (space separated), and it works.

  • How can I find photos that are not assigned to any collection?

    Hi !
    I'm using LR 5.7.1 on a Mac.
    When I've retouched raw pictures with PS CC (and do not need the PSD file any longer) I export the PSD (that is in my catalog) as JPG and let it add to my catalog automatically. After that I delete the PSD file. That works fine.
    But .... the new JPG file is not assigned to any collection. That's no problem unless I forget to do it manually after that export (and import).
    That brings me to my question.
    How can I find photos that are not assigned to any collection?
    I tried it with a smart collection after I found nothing suitable in library filter. The search criteria I tried are Source -> Collection with any of the conditions. One with an empty value field, then with just a space and so on.
    Has anybody a good hint for me?
    Thomas

    You can also add numbers if you have collections that don't use alphabet characters.

  • HT1420 how to deauthorize a computer that is not with me anymore?

    how to deauthorize a computer that is not with me anymore?

    If you log into your account via the Store > View Account menu option on your computer's iTunes then on your account's screen (under the 'Apple ID Summary' heading) there should be a 'Computer Authorisations' line with a 'Deauthorise All' button to the right of it - you can only 'deauthorise all' once every 12 months.

  • I have started a photo book in iPhoto (OS 10.7.5). How can I add photos that were not in the original album?

    I have started a photo book in iPhoto (OS 10.7.5). How can I add photos that were not in the original album?

    Thanks for your quick response. I thought I had tried that but I must not have because it worked perfectly.

  • How do I get ringtones that are not listed in the phone

    how do I get ringtones that are not on the phone's list?

        Thanks so much for providing that information sidmorgy. There are options available to do a media retrieval that may provide help with retrieving available ring tones that were previously purchased. You can access the steps here http://vz.to/102YOjg to see if that option will work for you. Please keep us posted on the outcome.
    CandiceH_VZW
    Follow us on Twitter @VZWSupport

  • How to remove an app that does not have an X

    how to remove an app that does not have an X
    i.e.  stocks

    @greg1424
    Who needs newsstand ? It depends if you enjoy reading the newspaper or magazines in your spare time.  Back in the day, you find that small child delivering your morning newspaper.  You open the door, you found out that the next door neighbor stole your daily newspaper, now you have to buy a new one at the neighborhood deli.  Now Newsstand, fix that by delivering the news you love to your iOS device.  Drink some coffee, while flipping pages on your phone or iPad.  Guess what?  You saving the earth, no one stealing your paper and is available anytime you want.   Plus their subscriptions are cheap, so view the link to read more about it.
    Use Newsstand on your iOS device - Apple Support
    Is pages and numbers free?  Is free, you activated or purchased on or after September 1, 2013. Read the link below for more details
    Free Apple apps for your iPhone, iPad, and iPod touch with iOS 8 - Apple Support
    Cheers,
    Wilkie

  • My other laptop crashed with adobe lightroom installed on it.  How can i de-authorize that computer (not able to boot up) and install it on this computer?

    My other laptop crashed with adobe lightroom installed on it.  How can i de-authorize that computer (not able to boot up) and install it on this computer?

    There is no de-authorize process for Lightroom. Just download the latest version and use your License key to authorize on the new computer. 

  • Error while calling COM routines via application program (return code 40028

    Hi ,
    When i am doing these steps i am getting the following error.
    1.from SAP menu...Demand Planning>Planning>Interactive Demand planning
           2.after the transaction gets loaded...click on the 2nd button that is selection window from the left ALV menu..on the top.
            3.type the below
    show -  Material
    APO Planning Version - K01
    Material  - 12345
    4.Material 12345 will be loaded
    5.Double click and i am getting  ''error Error while calling COM routines via application program (return code 40028)''
    Note : Observed that this is not happening everytime, but happening alternatively.
    Can any one say what is the problem for Error.
    Thanks
    Gerard

    Hello Gerard, Hello Krishna,
    -> The liveCache application failed with COM error::
                                   40028 Illegal timestamp in rough timegrid
    More details about COM error 40028 you will see in TA /n/sapapo/om10
         -> Return code: 40028 -> execute ::
    Invalid time stamp in the time buckets profile relation     
    ( om_ts_tgrelinvalidstamp )     
       < click on '?' mark >
    -> Open an OSS message in accordance with SAP note 167280 if further help
         needed to solve the issue on your system.
    Thank you and best regards, Natalia Khlopina

  • Error while calling COM routines via application prog(return code 1028533-)

    Hello Expert,
    In Interactive Demand Planning ( /SAPAPO/SDP94 ), when I'm trying to load data in a planning book , error
    'Error while calling COM routines via application program (return code 1028533-)' is encountered.
    In my selection id, i have only two locations....there is no material selection. 
    When I select the 1st location and load the data its getting loaded properly.....but when i select the 2nd location and try loading data ...the above error is coming.
    I did run /SAPAPO/TS_LCM_CONS_CHECK but the problem persist.
    Any advise to fix this issue would be much appreciated.
    Thanks.
    Tom

    Hi Tom,
    Please see if below exiting threads help you.
    COM error 40134 in Interactive Planning on SCM 5.0 Support Pack SAPKY50011
    Error for COM Routine application program (return code 40028)
    Thukral

Maybe you are looking for