Create at runtime a job to run at the central instance with high priority

Hi All
Using the function modules  (  job_open, job_submit and job_close )  or ( job_open, submit via job  jobname number jobcount, job_close) I need that this job runs in the central instance and with high priority.
I would like to know how to  inform  it using the statements above?  How to pass the parameters to make the job run in the central instance with high priority?
I would appreciate any help.
Thanks in advance.
João Gaia

Hi
I hadn't realized about the parameter TARGETSERVER of  the function module JOBCLOSE. I am going to make some tests.
thanks in advance

Similar Messages

  • Creating a simple batch job to run every month and perform a deletion

    dear all;
    This is just for learning purposes
    I have created a simple table below
    create table t1
      vid varchar2(30),
      quantity number(6,2),
      primary key (vid)
    insert into t1
        (vid, quantity)
    values
        ('G1', 2);
    insert into t1
        (vid, quantity)
    values
        ('G2', 3);
    insert into t1
        (vid, quantity)
    values
        ('G3', 0);Now, I would like to create a simple batch job, that runs every month which is used to delete all vid that has a quantity of 0...How do i go about doing that. I have searched the web but can't seems to find any useful info so far..
    Edited by: user13328581 on Sep 8, 2010 8:32 AM

    you are missing a semi-colon in your package procedure call inside your begin ... end.
    begin
      dbms_scheduler.create_job
        job_name => 'jobdeletezeroquantity'
        , program_name => 'PLSQL_BLOCK'
        , job_action => 'BEGIN mfg.testpkg.deletezeroquantity END;'             <-- missing semi-colon on mfg.testpkg.deletezeroquantity
        , start_date => systimestamp
        , repeat_interval => 'freq=monthly; byday = 1'
        , end_date => null
        , enabled => True
        , comments => 'used to run a delete procedure every month'
    end;should be:
    begin
      dbms_scheduler.create_job
        job_name => 'jobdeletezeroquantity'
        , program_name => 'PLSQL_BLOCK'
        , job_action => 'BEGIN mfg.testpkg.deletezeroquantity; END;'
        , start_date => systimestamp
        , repeat_interval => 'freq=monthly; byday = 1'
        , end_date => null
        , enabled => TRUE
        , comments => 'used to run a delete procedure every month'
    end;

  • How to: Schedule a job to run on the first business day of the month

    In Oracle 10.2.0.3, is there a way to schedule a repeating job to run on the first business day of the month? For example, if the first of the month falls on a weekend (such as Saturday, 11/01/2008), I would like the job to run automatically on Monday (for example, 11/03/2008) instead.

    set serveroutput on
    begin
      print_dates('FREQ=MONTHLY;BYDAY=MON,TUE,WED,THU,FRI;BYSETPOS=1;',
          to_timestamp_tz('01-JAN-2008 12:00:00','DD-MON-YYYY HH24:MI:SS'), 12);
    end;
    Gives:
    TUE 01-JAN-2008 (001-01) 12:00:00 -07:00 -07:00
    FRI 01-FEB-2008 (032-05) 12:00:00 -07:00 -07:00
    MON 03-MAR-2008 (063-10) 12:00:00 -07:00 -07:00
    TUE 01-APR-2008 (092-14) 12:00:00 -07:00 -07:00
    THU 01-MAY-2008 (122-18) 12:00:00 -07:00 -07:00
    MON 02-JUN-2008 (154-23) 12:00:00 -07:00 -07:00
    TUE 01-JUL-2008 (183-27) 12:00:00 -07:00 -07:00
    FRI 01-AUG-2008 (214-31) 12:00:00 -07:00 -07:00
    MON 01-SEP-2008 (245-36) 12:00:00 -07:00 -07:00
    WED 01-OCT-2008 (275-40) 12:00:00 -07:00 -07:00
    MON 03-NOV-2008 (308-45) 12:00:00 -07:00 -07:00
    MON 01-DEC-2008 (336-49) 12:00:00 -07:00 -07:00
    and the print_dates function is (10.2):
    create or replace procedure print_dates
      cal_string in varchar2,
      start_date in timestamp with time zone,
      nr_of_dates in pls_integer
    is
      date_after timestamp with time zone := start_date - interval '1' second;
      next_execution_date timestamp with time zone;
    begin
      dbms_output.put_line('  -->');
      for i in 1 .. nr_of_dates
      loop
        dbms_scheduler.evaluate_calendar_string
         (cal_string, start_date, date_after, next_execution_date);
        dbms_output.put_line(to_char(next_execution_date,
                        'DY DD-MON-YYYY (DDD-IW) HH24:MI:SS TZD TZH TZR'));
        date_after := next_execution_date;
      end loop;
    end;
    [\pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Can I create a custom SCSM task that runs on the server?

    I'm new to SCSM (got roped in as the developer/Powershell guy). I see instructions for adding a custom task to SCSM, which I know generally run from the user's console, under their security context. I also found a reference to "runtime tasks" which
    run from the server. Is there a way for me to make a custom task that runs from the server?  
    If it helps, I'll be creating a task that implements the Poweshell script found
    here that converts an incident to a service request. I'd much rather the conversion take place on the server so that we don't need to deploy the SMlets Powershell module (and another dependency) on each user's workstation. 
    Thanks!

    I'm new to SCSM (got roped in as the developer/Powershell guy). I see instructions for adding a custom task to SCSM, which I know generally run from the user's console, under their security context. I also found a reference to "runtime tasks" which
    run from the server. Is there a way for me to make a custom task that runs from the server?  
    If it helps, I'll be creating a task that implements the Poweshell script found here that converts an incident to a service request. I'd much rather the conversion take place on the server so that we don't need to deploy the SMlets Powershell module (and
    another dependency) on each user's workstation. 
    Thanks!
    Not sure what capabilities you have, but would something like this be useful?
    http://scsmlab.com/2013/12/09/how-to-create-a-custom-scsm-console-task-by-using-some-c-and-xml-magic/

  • Cron job not running - script uses rsync, ssh (with id_rsa)

    Does anyone know how to get cron to run a rsync/ssh script which uses id_rsa for passwordless logins?
    I have a backup script I have slaved for months over that works wonderfully when running it from the command line.
    It uses rsync and connects with SSH (passwordless using ssh keys). I have setup id_rsa and id_rsa.pub for passwordless logins (this is my user account, and connects using root@ to the server)
    As stated all works find when run from the command line. But when I setup a cron job to run this file (exact same line I run from the command line) it does not execute. Actually, it does run, as I have an email notifiction which sends to me. It is just the rsync/ssh part that does not run.
    I have spent days and days trying to figure it out. No error messages occur, nothing.  Took me a while to find out cron is emailing the user account on Lion the messages (not to a proper email address).
    The error shows a permission denied, which I believe to be the cron user cannot use the id_rsa/ssh connection.
    Cron is running the script as my user, the same I use on the command line. I even tried copying the id_rsa to the root user .ssh folder in case cron is running as root but that does not work either.
    So does anyone know how to get cron to run this rsync/ssh script which used id_rsa for passwordless logins?
    Thanks a lot

    YES! Got it working, finally!
    So the issue is indeed cron/launchd not being able to access the ssh-agent which holds the key.
    So this is the solution...
    Download keychain for Mac:
    http://www.funtoo.org/wiki/Keychain
    Then once its installed and configured, the script to run needs this added to the top:
    eval `keychain --noask --eval id_rsa` || exit 1
    Note I am using id_rsa whereas keychains instructions refer to id_dsa so I just changed it and it works OK.
    When the script runs the first time it asks for the key password. Then it works from then on.
    What I do not know yet is will I need to re-enter the password when I logoff/logon again. That will cause an issue as I auto restart the Mac every day which means if I am off for a few days backup will stop (can you see the madness in this issue!).

  • How do we create a variant for report which runs in the background?

    Hi,
    I want to create a report which will have some variants and will be running in the background?
    The main intention is to transfer the data from one database into another. Please explain the step by step process.
    Regards
    Amit

    Hi Amit,
          When you run a report program in foregorund(If you have a selction-screen), by pressing F8 button, it takes you to the screen where when you press execute button, the report is executed.
          In this screen, you can enter the requirec values which you wish to store in the variables in the selection-screen and press SAVE button, then a variant will be created. You can create the required variants for your report and then when executing the same report in background, the process goes in this way,
    Go to SE38->Program-> Execute->Background, there you can give the variant name and press EXECUTE IMMEDIATELY and your program runs in background for the given variant.
    Hope this is helpful to you. If you need further information, revert back.
    Reward all the helpful answers.
    Regards
    Nagaraj T

  • Having two background brarchive running at the same time with -f 1 options

    Good morning,
    I need to run two brarchive in parallel as background  process.
    I would like to have on for the save and one for the copy.
    I need that because they would have different files.
    1. Is this configuration supported or not?
    As a file is created for the locking (.lock.bra) I have the feeling that a single process is supported?
    2. Just to double check, can I run two brarchive with two different config file in a serial manner
    (lauch the 1st one, wait for its end, launch the 2nd one, waits for its end).
    3. If you are using that kind script on your systems, could you please provide them?
    4. If brarchive is launched by a script how do you shut it?
    Do you do just a kill of the script or do you kill it and send another signal to the brarchive if it is currently running?
    Thanks in advance for your answers.

    Good afternoon Eric,
    > Why do you want to use option -f 1? what are the reasons being this?
    -f makes it run in background.
    For me, there two advantages for doing that.
    1. You start it once, when you start sap, and it runs regularly
    2. When you stop sap, you stop braarchive.  Then you are sure that no crontab jobs are going to be started when you have stopped SAP.
    > you want to stop  brarchive with option -f running? try:
    >
    > brarchive -f stop
    This is what is currently done right now.
    It works well.
    I can use it because we do a single copy of the archive log up to now.
    We are going to run two brarchives (one to save to a tape robot with backint and one that scp).
    I would like this to run as daemon.
    Now, that you have answered that I can not have two brarchives running at the same time (thanks for your answer),
    I need to write my own daemon in sh or perl that would do:
    1. Run brarchive first run (with -p backint init<SID>.sap file)
    2. Wait for the en of the brarchive process and log
    3. Run brarchive second run (with -p scp/stage init<SID>.sap file)
    4. Wait for the end of the brarchive process and log
    5. Sleep during a few minutes
    6. Handle stop signal so that it ends the forked brarchive that may be running.
    I am sure that people on this forum have already wrote such scripts.
    I may open another thread as it divert a little from my original question.
    Thanks in advance for your help.

  • HT5625 Here's my story: I "signed out" of my account on my IPAD. Then I DID NOT hit "create a new ID" - I simply filled in the top information with new email and password (the ipads new owner) - this got all set up but now when it wants to update anything

    I gave my second IPAD to a friend.
    I also recently changed the email associated with my own account
    because I will be moving and will be unable to use that address much longer...
    now I am not yet sure I can update my own apps (will it ask for old email and password?)
    on the given IPAD - with the new Apple ID and password it is asking for
    my present but soon to be disabled email with password - but it does not
    recognize the password (i dont think it will recognize it when i upgrade as well!)
    QUESTION
    How do I straighten this mess out to be able to update all future apps on two
    iphones and two ipads each having one different their separate Apple IDs?
    and how can I get it to recognize the password that was at one time associated
    with that email address
    WSD

    Apps are forever tied to the Apple ID under which they were purchased. If your friend wants to be able to manage apps on their device using their own Apple ID, they will need to delete all the apps purchased using your Apple ID and buy their own.
    Hopefully, you just updated your own Apple ID with the new email and didn't make the mistake of creating a new Apple ID. If you created a new ID, stop using it now, don't buy anything using it and go back and update the ID under which you purchased your apps.

  • "Sorry, you don't have access to this page" when creating a sub site. I am in the owners group with full control access

    cannot provisioning a SharePoint 2013 site with full control access, I get the page with the "Sorry, you don’t have access to this page”. Any help will be greatly appreciated.

    Hi,
    Which template did you use for the parent site?
    Please check whether the site collection administrator could create a subsite.
    Please grant permissions on the Device Channels list
    http://sitecollection_URL/DeviceChannels/AllItems.aspx -> List -> List Settings -> Permissions for this list -> granted Read rights for the Everyone group, compare the result as
    it.
    Please navigated to the hidden list "TaxonomyHiddenList" on the site collection i.e.
    http://somdnetsp/lists/TaxonomyHiddenList/AllItems.aspx and check permissions on this list. Check whether the list has unique permissions and there were no users added to the list. If yes,
    add "authenticated users" in the list permissions.
    Then, try to create sub site, compare the result.
    If this issue still exists, please check the log file to find whether there are some message about this issue.
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback
    for TechNet Subscriber Support, contact [email protected]
    Wendy Li
    TechNet Community Support

  • Countdown widgets run at the same page with a preview widget

    Hi
    I try to run  a countdown html widget (created with dashcode) at the same page (iBA) with a preview widget, but the coundown widget runs on full screen and I can't do it.
    Any suggestions?
    Kind Regards
    haris

    As I answered in your original thread (https://discussions.apple.com/message/22826247), all HTML widgets run full-screen.
    Also, this is the discussion forum for iAd Producer, not Dashcode. You can ask Dashcode questions on the developer forum:
    https://discussions.apple.com/community/developer_forums

  • Run in the same time with watching the result?

    I have a question
    how can I get 2 or more VI's in the same program run simultaneously, each has several SubVI, and if I press a button then I get the result of a VI and without stopping at the same time on another button and I get the result from other VI?

    Natsheh,
    thank you for your interest in learning LabVIEW. There are two possible ways of approaching your task:
    a) using global or shared variables which store the data and can be accessed from the subVIs as well as from the main VI, or
    b) using VI Server methods to query the actual values of indicators from the subVIs in your main application window.
    Using global variables is the easiest implementation, and a good starting point. When your LabVIEW skills advance, you will want to also look at VI Server technologies, as they provide a more flexible way to access subVI data.
    To get you started, let me please recommend the following introduction to LabVIEW:
    Getting Started with NI LabVIEW Student Training
    http://zone.ni.com/devzone/cda/tut/p/id/7466
    Module 6 of this online training deals with global variables, and should give you a first overview.
    If you are already familiar with LabVIEW Projects, you may as well use Shared Variables. They are introduced here:
    Using the LabVIEW Shared Variable
    http://zone.ni.com/devzone/cda/tut/p/id/4679
    Also, I would like to point you to our "real-world" training courses which are held thoughout the world. The LabVIEW courses Basics I & II together not only cover these aspects (SubVIs, Variables, VI Server calls, ...), but also give you a good start in "thinking LabVIEW" :-)
    Best regards,
    SFK

  • I use iphone 4 ios 6.1. i want to buy whatsapp app buy i cant buy it cos it says the email Id is for U.S why am in Nigeria. if i created another apple id using Nigeria country, will the app work with ma iphone that already have another id to purchase app

    i use iphone 4 with ios 6.1. i want to buy whatsapp app but my previous apple id is for U.S using to get free app while i live in Nigeria. if i create another id for Nigeria region to buy Whatsapp app, will it work with my iphone that already have id?

    Hello Emmanuel,
    It sounds like you are trying to purchase an app on your iPhone while in Nigeria.  You do not need to create a new Apple ID to do this.  You will just need change the iTunes Store country in your iPhone settings and update your billing information to match the country you are in:
    Change your iTunes Store country
    Sign in to the account for the iTunes Store region you'd like to use. Tap Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region.
    Follow the onscreen process to change your region, agree to the terms and conditions for the region if necessary, and then change your billing information.
    You can find the full article here:
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/ht1311
    Thank you for posting in the Apple Support Communities.  
    Best,
    Sheila M.

  • Will Logic Pro X run on the latest MBA with i5 and 8GB RAM?

    Hi,
    want to buy the new Logic Pro X but I´m not sure if it will rum smoothly on my MBA 2013 with i5 and 8GB Ram.
    I saw some very promising posts on the i-net regarding Logic Pro 9 which seems to run nice. But does the latest version of Logic require more hardware power?
    Can anybody share any experience on this?
    thanks!

    Logic Pro X has got some system requirements, and your MacBook meets all of these requirements > https://www.apple.com/logic-pro/specs/
    Have a look at the Logic forum and read experiences. Also, there are reviews over the Internet, but if Logic Pro 9 works properly in that MacBook, Logic Pro X will also run properly

  • How does Autodesk Maya run on the MacBook Pro with Retina Display?

    Hello there,
    I'm interested in using the MacBook Pro with Retina Display for Autdesk Maya and wanted find out what people's experiences with that are. It'd be great if anyone can help share their experiences!
    Thanks!

    One thing I do know, is the the UI is very small and menu items/buttons are hard to see. Someone posted a video of a now removed autodesk forum response on how to adjust font sizes .cfg file style, but I tried and it did nothing to the small text in Maya 2014. If you plan on it and don't have button and menu locations memorized by feel, I wouldn't use this software on a macbook pro without an external display, or change the resolution out of retina to use Maya.

  • Does anyone know autodesk Mudbox run  on the MBPR 15 with iris pro?

    I want to buy MBPR 15 to using Autodesk MAYA,Mudbox....some 3D softwares.
    Does anyone know what should I choose?
    MBPR 15 650M  or new MBPR 15 with intel iris pro.
    Please give me some suggestions.
    Thanks!

    One thing I do know, is the the UI is very small and menu items/buttons are hard to see. Someone posted a video of a now removed autodesk forum response on how to adjust font sizes .cfg file style, but I tried and it did nothing to the small text in Maya 2014. If you plan on it and don't have button and menu locations memorized by feel, I wouldn't use this software on a macbook pro without an external display, or change the resolution out of retina to use Maya.

Maybe you are looking for

  • Authorization for Z Program for creating entries

    I have created a dialog program to maintain employee details with menus Create, Change, Display My concern is that i want to restrict some user for creating entries in database table through this dialog program those users only authorize to display d

  • Crystal Reports 2008: "convert DB null values to default"

    All: Quick question on CR 2008; Which default value will be set when you enable u201Cconvert DB null values to defaultu201D using report option in CR - based on Database default value setting or Crystal Report's? Thanks. Sathish.

  • What happens when the external icon jumps on top on the hard drive icon on the desktop?

    The external drive icon jumped to the hard drive icon on the desktop and after that happen the iMAC started running slow. Not sure how that happen or what is happening to the iMAC after it happen. All my applications are running and launching slow. 

  • WLC 5760; bloated output on client debug

    Hi all, recently I tried to debug a client on the 5760 WLC. When I entered the debug client mac <MAC_addr> command the WLC immediately started to throw WCM related debug outputs which did not have anything to do with the client debugging itself. It m

  • LIst header option in ME2L

    Hello, In ME2L transaction there is a option in "system > list>list header". I would like to know what is the significance of this option for the report & also how we can activate this as when I use it, system is calling an ABAP object  for an author