Scheduler Program Definition Issues

I am new to Oracle Scheduler and have some basic questions on its capability. Having worked with the Oracle Apps Concurrent Manager, I sort of assume that Scheduler probably supports some of these.
1. When defining programs of type 'Stored Procedure', can we call a procedure within a package or does it need to be a procedure only?
2. Can I define programs/jobs with OUT parameters? If one of my stored procedures has an INOUT or OUT parameter, does scheduler provide no ability to use the value of such parameter to control movement within a job chain.
3. We have a need to control the number of concurrent executions of a stored procedure that is defined as a program. Does scheduler provide an ability to control the number of concurrent run instances of a program. For example, if two jobs calling the same program are invoked, we'd like one to wait until the first one completed.
Thanks,
Raj

Hi Ravi,
Thanks so much. Just a few other questions then...
1. Can I build a Chain rule to use the value of the INOUT parameter after the program step that has the parameter as an argument?
2. For concurrency control, you are suggesting that we build a custom table to log current runs of a program and then modify the program code itself to check if the limit has already been reached. If so, stall or do whatever else, correct?
On another note, good to see someone from Oracle be so active and eager to questions on the forum. I used to be an Oracle Employee, for 7 years actually...
Thanks,
Raj

Similar Messages

  • SAP R/3 ( SM 37 ) Schedule Program :: 2 calls in 1Sec.

    Hi
    We are running one schedule program ( 1 min. interval ) which is calling the RFC to pass the message to Web Service Business System using SAP XI as middleware. This is a Synchronous scenario in which WebService is providing the response back to SAP R/3.
    As per the schedule logs in SAP R/3 the program is running in 1min. interval ( TCode : SM37 ) but as per SAP XI logs sometime we can see the RFC is getting called 2 times through schedule program in 1sec. & sometime within 1sec. 2 calls are happening  & same is in WebService logs. But this is intermittent, means this is happening at any time, we tried to investigate on the basis of payload ( RFC Data ) coming from RFC like based on size or some specific data and on the basis of some specific time but nothing is similar.
    Can you pls. tell me what can be the reasons that program is initiated by itself or any other with which can identify what is the cause of this.
    Regards
    - Lalit -

    Hi Agasthuri
    Now that is also the mystery because that is the scheduled job & not dependant on any other job which can actually invoke it.
    I mean for the whole process this program is the Prime Initiator. And then also somehow it is getting called by itself 2 times in 1sec.
    Only similarity we found between all such calls is the time difference between 2 calls it is either 1sec or within a second.
    I mean once the first process completes, second process starts.
    In SXMB_MONI, <i>EndTime</i> of first process & <i>StartTime</i> of second process is always same.
    - Lalit -

  • SAP R/3 Schedule Program :: 2 calls in 1Sec.

    Hi
    We are running one schedule program ( 1 min. interval ) which is calling the RFC to pass the message to Web Service Business System using SAP XI as middleware. This is a Synchronous scenario in which WebService is providing the response back to SAP R/3.
    As per the schedule logs in SAP R/3 the program is running in 1min. interval ( TCode : SM37 ) but as per SAP XI logs sometime we can see the RFC is getting called 2 times through schedule program in 1sec. & sometime within 1sec. 2 calls are happening  & same is in WebService logs. But this is intermittent, means this is happening at any time, we tried to investigate on the basis of payload ( RFC Data ) coming from RFC like based on size or some specific data and on the basis of some specific time but nothing is similar.
    Can you pls. tell me what can be the reasons that program is initiated by itself or any other with which can identify what is the cause of this.
    Regards
    - Lalit -

    Hi Agasthuri
    Now that is also the mystery because that is the scheduled job & not dependant on any other job which can actually invoke it.
    I mean for the whole process this program is the Prime Initiator. And then also somehow it is getting called by itself 2 times in 1sec.
    Only similarity we found between all such calls is the time difference between 2 calls it is either 1sec or within a second.
    I mean once the first process completes, second process starts.
    In SXMB_MONI, <i>EndTime</i> of first process & <i>StartTime</i> of second process is always same.
    - Lalit -

  • How can i add email notifications to a scheduler program

    Hi,
    We have a scheduler chain that calls 2 scheduler programs.
    The chains are controlled by a scheduler job that has job_type as CHAIN.
    My challenge is how to add email notfications on the failure or success of the programs.
    I know about this procedure DBMS_SCHEDULER.ADD_JOB_EMAIL_NOTIFICATION, but this is only applicable to jobs and not programs(i believe).
    Is there an alternative way to trigger off emails for scheduler programs please?
    Thank you

    Hi gloria79,
    Mail uses Contacts to store email addresses and group addresses.  You would need to create the desired group on your MacBook.
    This article discussed how it works.
    Mail (Mavericks): Address messages
    http://support.apple.com/kb/PH14922
    Thank you for using Apple Support Communities.
    Nubz

  • Handling exception logging in a Java task scheduler program?

    I need to design a Task Scheduler Where
    1) User should be able to schedule multiple task at the same time.
    2) There should be proper error handling on failure of any task and should not affect the other running tasks.
    I found the related programme at http://www.roseindia.net/java/example/java/util/CertainAndRepeatTime.shtml
    My concern is about handling of point 2 in program provided at above link. Say I schedule a recurring mail send process in above program which will be run first time on 12 september 2011 at 2 am, and will be repeated after every 2 hours Say a one process fais at 8 am. I want to log it in log file with task name and time details. Now if I look at above programme i.e CertainAndRepeatTime.java. This program will exit once it schedules all the tasks. Where and how should handle the logging?
    Posted at http://stackoverflow.com/questions/7377204/handling-exception-logging-in-a-java-task-scheduler-program but folks suggesting Quartz scheduler . My Limitation is that i can't for quartz because my project allows me to use only standard java library. Is there any way we can handle logging in the same programme in case of exception.

    Well, first of all I wouldn't trust any code from roseindia. So you might want to look for more reliable advice.
    As for your logging, you can add it for example to the TimerTask itself. I don't recommend adding logging to that roseindia cr*p though.

  • How to create a  schedule program in java

    Hello Friends ,
    Can any one provide me with an example how to create a schedule program using java.util.timer etc . I am in need of a program which should run as a schedule job that searches for a file in a directory and read the latest files from that directory in every minute of time as a schedule job .
    Thanks
    mahesh

    I don't feel like writing my own example, but google will be happy to provide you with an example.

  • Schedule Programming (Jobs)

    Hi
    What is Schedule Programming (Jobs?)
    How to set the Schedule Programming (Jobs) please give me the detailed program
    Thanks
    Mahesh

    Hi Kumar,
    Do you mean the Scheduling of the Batch Jobs in SAP System? If so, then you can have a look at the following link:
    http://help.sap.com/saphelp_45b/helpdata/en/c4/3a7ef8505211d189550000e829fbbd/content.htm
       1. Job scheduling: Before the background processing system can do anything, background jobs have to be scheduled. This can occur in transaction SM36 (job scheduling), in the ABAP editor (transactions SA38 and SE38, the "start program in the background" execution option), or through the programming interface or external interface of the background processing system. Many R/3 applications use the internal programming interface to schedule long-running reports for background processing.
       2. Job storage management: Jobs are stored in the R/3 database. Principal tables in the background processing system include the following:
              o TBTCO: The job header table (job management data)
              o TBTCP: The job step table (individual processing steps in jobs)
              o TBTCS: The control table for the time-driven job scheduler
              o BTCEVTJOB: Jobs scheduled to wait for an event
    Job logs are held in the R/3 "TemSe" (Temporary-Sequential Objects) database. The TemSe is set always to hold job logs as files in your host systems.
    Accessing job logs for display and managing job log storage is transparent for you. You can display or delete job logs by way of the job overview (transaction SM37) or the graphical background monitor. Old job logs are removed automatically together with the jobs to which they belong by the ABAP program RSBTCDEL, which should always be scheduled to run periodically (see Required Basis Background Jobs).
    Let me know if you need something else.
    Hope this will help.
    Thanks,
    Samantak.

  • Fireworks CS3 Program Switching Issue

    In the office we have 3 machines using Fireworks CS3 (part of Studio CS3). All the machines are experiencing the issue I am about to describe. Each machine is an Intel Core 2 Duo with 4GB ram. All 3 machines are using Windows Vista.
    We all had the old Vista Aero problem with brushes, and we quickly overcame this by using the "disable desktop composition" fix.
    However, one problem we have never been able to solve occurs when switching between ANY application and Fireworks. There is a delay of at least 20-30 seconds (sometimes more) when trying to swap back to Fireworks. We have being doing various Google & Adobe forum searches regularly over the past 2+ years, looking in vein for a fix, but as yet have still not managed to find a solution or even a record of someone else with the same issue (mainly because out searches are dominated with the old "disable desktop composition" fix). We assumed it was a problem fundemental to CS3 yet still hold out hope for a solution.
    Normally it's not a problem, but when working on websites which involve a lot of graphics edits and/or switching in and out of Fireworks it can quickly add a very frustrating hour or more to a job.
    Recently, I was forced to upgrade to a new computer with Windows 7, and transfered my old CS3 install to the new machine. I was surprised to find that I can switch in and out of Fireworks instantly, much to the frustration of the other guys in the office who are unfortunately stuck with Vista for the time being.
    Is there a fix for this horrible switching delay on Vista and has anyone else here even sufered with the same issue?
    TL:DR - This is not the desktop composition problem with brushes which seems to domnate results when we try to search for a fix, this is a very noticable delay when swapping in and out of Fireworks.

    I'm affraid that didn't help. It actually slowed down the inital launch of the program and it took around 5 minutes for Fireworks to finally start. Once started the program switching issue was still present

  • Scheduled Programs in Oracle Applications Env

    Hello,
    I wonder to retrieve the scheduled programs in an Oracle Applications Environnement.
    Could any one help.
    Thank you,
    Best Regards.

    Please find the script from following MOS note.
    How To Find All Scheduled Requests Or List Of Requests in a Particular Status? (Doc ID 554380.1)

  • Program delay issue

    1. Once or twice a week but not necessarily every week I will turn on my TV and the box will stuck playing a program from an hour before. I will try pushing the Fios TV button to go to live programming and it will flash the correct program info but will then change the info to the earlier program and stay showing the earlier program. Turning the box on and off will do nothing and I will have to unplug and reboot the box to see current programming. I have a Motorola QIP6416-2 hd-dvr. I figure I'm probably going to have to get a new box.
    2. However, I had a newer box when I first had my fios hooked up and had all kinds of issues with it.
    So, I guess I have two questions,
    1. Any suggestions on the program delay issue?
    And
    2. Have they fixed the problems with the sound/etc on the new boxes?
    "If your problem has been solved, please mark it as such. Don't forget to hand out your Kudos!"

    Thank you. I have not tried a 2 channel move, only 1. Hopfully they get the newer boxes fixed. The ability to record 2 programs and watch a third using the buffer is very useful.
    "If your problem has been solved, please mark it as such. Don't forget to hand out your Kudos!"

  • Scheduled Program Does NOT Change Times with Guide Changes

    When a program is scheduled from the Guide and then the Guide changes the start and end times, the scheduled program times do NOT shift AUTOMATICALLY with the Guide changes. Frequently the Guide program start and end times for a show move a minute, two, or three, sometimes more. The DVR scheduled program times do NOT keep up with these shifted Guide times but stick to the start and end times when scheduled. The DVR will often throw a yellow triangle up on the program indicating a conflict but the only conflict is with the Guide times. The DVR should AUTOMATICALLY shift the start and end times the few minutes and ONLY flag a conflict when the new times for the scheduled program conflict with another scheduled program, NOT with the Guide. This occurs most often on USA, FX, FXX, TBS programs which are frequently 61 or 62 minutes long. It is very frustrating to miss pieces of a recorded program, usually the end, because of these few minute time shifts.

    Hello Venkata,
    The components item category is TAE, that means the item category for the header item will be TAQ. Also the pricing will be carried out at the header item level only.
    Now for your query:
    The standard item category controls of TAQ will not have any connection between the header & the item level quantities in the delivery. If you change the quantity of the header item in the sales order, the quantity of the compnenets will be automatically adjusted. But this will not happen in the delivery with the normal settings of TAQ.
    Solution:
    Go to transaction code VOV7 - select TAQ - double click - In the Bill of Material/Configuration section , there is a field "Create Delivery Group" - select "X - Form delivery group with one delivery date".
    Save the settings. Now create a new sales order & then create the delivery & try to change the quantity of the header item, the system will automatically change the quantity of the components. (the system may not change the quantity of the components in the delivery of the old sales order - change it manually)
    With best regards,
    Allabaqsh Patil.
    Idhasoft Ltd.

  • FNDLOAD doesnt modify concurrent program definition

    Hi Here is what I do.
    Using FNDLOAD to move concurrent programs from Development to UAT instance. Here are steps to recreate
    1.) Use FNDLOAD to DOWNLOAD concurrent program definition from development instance.
    FNDLOAD apps/apps@instance 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct PROGRAM_XXXX.ldt PROGRAM APPLICATION_SHORT_NAME="XXAPP" CONCURRENT_PROGRAM_NAME="XXPROGRAM"
    2.) Use FNDLOAD to UPLOAD concurrent program definition to UAT instance. ( Brand new concurrent program)
    FNDLOAD apps/apps@instance 0 Y UPLOAD $FND_TOP/12.0.0/patch/115/import/afcpprog.lct PROGRAM_XXXX.ldt
    3.) Everything work fine, concurrent program gets migrated to UAT instance when moved first time.
    4.) Make change to concurrent program in Development instance, change like add new parameters or modify existing parameters.
    5.) Use same cammand as in step 1 to download the cocnurrent program definition again.
    6.) Use same commanad as in step 2 to upload the concurrent program definition. The command workd fine and there are no errors but the changes made to the concurrent programs are not reflected in UAT instance.
    I verified the LDT file was correct, newly created parameters were present in the new ldt file.
    Thanks
    Manu

    lev12d is the test instance.
    I meant if I use the ldt file to load in same instance where it was downloaded from, it works. Only when ldt from test instance is taken to UAT instance for loading, it doesn't work.
    1.) lev12d istance - program with 5 parameters, fndload to creat ldt i.e. ldt has 5 params.
    2.) lev12d instance - Delete two parameters and save - only 3 params left in lev12d instance conc program definition.
    3.) Use ldt created in step 1 to load the parameters, it works, after FNDLOAD UPLOAD conc prog in lev12d has 5 params in application.
    Same ldt created in step 1 ( with 5 params) when moved to UAT instance where conc prog has 3 params, after FNDLOAD UPLOAD the conc prog still has 3 params, it did not add new parameters.
    Let me know if it makes sense, any help or direction is highly appreciated.
    Thanks
    Manu

  • My Java Scheduler Program - A question

    Hi all, I have just started experimenting with java after programming a lot in ANSI c++. I am writing a GUI scheduler program (cuz i sure need it! and... to get me familiar with aspects of Java such as Swing, multi-threading,etc. My program is going fine and i am almost done. I just had one question about the scheduler program:
    1. My scheduler uses a Jlist to display all events that the user. Now if the user closes the scheduler completely, and then restarts the program, i want the events to be displayed again and all my internal data structures to be filled in again as they were when the user closed the program. As of now, the only way i know how to do this would be to keep a separate text file, which would store all the scheduled events in it when the user closed the program, and every time the program was started, it would read in from the text file and replinish the data structures and my visual Jlist.
    This method, though possible, seems a bit cumbersome and not so elegant. Can anybody give me another way for me to do this?...I would much appreciate any comments/ideas.

    Sounds like you want to serialize some of your classes. See this link to a Sun tutorial:
    http://java.sun.com/docs/books/tutorial/essential/io/providing.html

  • I want degugg that background Scheduled program.

    HI all,
    I have Scheduled a job in background(SM36) and runned sucessfully..(Sm37)
    Now i want degugg that background Scheduled program.
    can any body plz tell me....

    Hello Sultanbi,
    I have deleted many of your posts - you will have noticed this...
    Please read "the rules" at the top of the forum page before you post any further - particularly before searching...!
    Search term "debug job Sm37" will help you further for example... you will find "JDBG".
    Please confirm that you have read "the rules"?
    Cheers,
    JUlius

  • Scheduler program:

    Is there any other solution or procedure is the best one
    I want to execute this one for every one day in unix environment how can i do with the scheduler program
    Update test set name=replace(name,’,’,’  ‘);

    Anill wrote:
    Hi Nikolay,
    Is there any table available in database having details of scheduled jobs to find the status?
    Regards,
    AnillFrom Documentation :
    [url http://docs.oracle.com/cd/E14072_01/server.112/e10595/scheduse008.htm]Monitoring Jobs
    You can view information about job runs, job state changes, and job failures in the job log. The job log shows results for both local and remote jobs. The job log is implemented as the following two data dictionary views:
    •*SCHEDULERJOB_LOG
    •*SCHEDULERJOB_RUN_DETAILS

Maybe you are looking for