How to limit the duration of a scheduler could run?

I scheduled a procedure A with HOURLY frequency. Normally, A could complete within 20 minutes. However, there are exceptions that it could run more than 60 minutes. In order to minimize the impact of next execution of A, I want to kill/stop the process when it has run more than 50 minutes. There is no guarantee of stop the process immediately and completely when using "alter system kill session ...". How could I make the limitation.
Thanks in advanced!
Best wishes,
Satine

>
I scheduled a procedure A with HOURLY frequency
In order to minimize the impact of next execution of A, I want to kill/stop the process when it has run more than 50 minutes
>
Make sure you think this thru. Is the next execution of A going to have to repeat the work that the current execution of A is doing? If so then you are not minimizing the impact of A you are likely making the situation worse.
When you kill A there might be a lot of work that has to be rolled back and this uses resources. What is A is almost done when you kill it.
What if it is really going to take 1 hr 5 minutes to do whatever A is doing. You will just keep putting off the job by killing one that is almost done and then making the next one try to more work which might take 1 hr 20 minutes so you kill it after 50, undo the work it did and run it again making it take an hour and a half.
When will this stop? I think you need to assess why A is taking so long before you just kill it and launch it again. Otherwise you are trying to treat the symptom instead of the problem.
I suggest you alter the procedure to do some progress logging so you can determine what stage the processing is in (start, middle, end).
Another commonly used approach is to use a control table that keeps track of the state of your procedures. When Proc A starts it checks the control table to see if it is already running and if so, exits. That will keep the proc from being executed again when it is already executing.
The Proc changes its control status from IDLE to RUNNING and then to COMPLETED or IDLE AGAIN. There would usually also be a log table that would have the start time, end time and status so you can track how the proc performs over time. Sometimes this table will also have the number of rows processed.

Similar Messages

  • How to limit the max dialog no that one user can use at the same time?

    Hi,
    I meet one performance problem that one user can open 6 sessions in the GUI and he/she can run 6 reports at the same time witch could occupy 6 dialogs in the sap R/3 instance. It makes poor performance for other users.
    Would you pls tell me how to limit the no. of sessions one user can create at the same time or how to limit the no. of dialogs one user can occupy at the same time?
    Thanks a lot!
    I used this parameters in the default profile as blew:
    rdisp/rfc_check 1
    rdisp/rfc_use_quotas 1
    rdisp/rfc_max_own_used_wp 20 (means: 20%)
    It still didn't work.
    Sean

    Hello,
    We can reserve DIA W.P by giving value to the parameter :- rdisp/rfc_min_wait_dia_wp=1(default)
    that have to necessarily remain free for other users.
    This parameter is used to reserve a number of dialog work processes for Dailog mode.
    For eg. If 10 dialog w.p. are configured for the instance(rdsip/wp_no_dia=10) and the parameter rdisp/rfc_min_wait_dia_wp=3 is set,parallel RFC's can occupy a maximum of 7 DIA W.P.3 DAI W.P. always remain free for dialog mode.
    But now the question is how we assign/restrict this free dialog w.p. to the specific user.
    Reply...
    Regards,
    JUNAID

  • How to get the Deliver Quantity against Schedule Line Quantity

    Hi,
    I have specific requirement for a report where we need to determine the delivery qty against the schedule line qty for a sales order. In sales order in schedule line tab system shows the delivery qty. The field is VBEPD-VSMNG. VBEPD is a structure and I could not find the table in which this is actually stored. Does anybody know how to get the delivery qty for schedule line?

    Hi,
    U can check the following tables:
    VBEP (Sales ScheduleLines) VBEP-VBELN =VBAP-VBELN and VBAP-POSNR = VBEP-POSNR
    LIPS (SalesDoc:Delivery Items) LIPS-VGBEL =VBAP-VBELN and LIPS-VGPOS =
    VBAP-POSNR
    VBEH (Schedule LineHistory) VBELN POSNR ETENR
    Regards
    Kannaiah

  • How to limit the number of items in a KPI Status list web part?

    How to limit the number of items in a KPI Status list web part? There is no paging option for Business Category Status list or any limit can be made by changing the Item limit in default view unlike other SharePoint List web parts. So How to achieve it?
    Kindly help.
    Regards,
    ZA
    zzzSharePoint

    Hi,
    According your post, I know you would like to set the item display limit in Status List web part.
    In the web part, the number of items to display is based on the view which you selected when configuring the web part. The default view for status list is status list view.
    However, I am not able to limit the items’ display number of the status list view. After changing the items limit, the list item displayed would not match the number specified by Item Limit. Thus, it is not possible to limit the number
    of items in the Status list web part.
    It could be a potential issue in SharePoint 2010.
    We will log this issue to our suggestion box. As after the submission, we may not have any time guarantee when the fix may be released, but it may come out on next cumulative update.
    Appreciate your time and efforts.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How to limit the number of items that a list control can hold?

    Hi,
    I am using a Flex3 List control for one of my projects.
    I add drag & drop functionality to it, so that i can drag & drop elements from one control to another.
    How to limit the number of items that a list control can hold / can be dropped in a list control ?
    - Sen.

    1. Listen for the dragdrop event on the control you are dragging onto.
    2. check the length of the items in the dataprovider - if it exceeds your maximum override the default drop action with e.preventDefault(); (assuming you used e for the event on the handler).
    Regards,
    Mark.

  • How to limit the number of rows in a smart form , sap script.

    Can anyone tell me how to limit the number of rows in the output of a sap script/smart form. I have tried "protect/endprotect" in sap script but have no idea of how to do in smart form. In sap script the only way it has happened is by reducing the size of the main window.

    Hi,
    In Smartform also, why dont you try reducing the size of the window if you want to limit the rows in it. Also if you are printing Line Items in a LOOP, you can write
    LOOP AT T_ITAB FROM 1 TO N in the LOOP Node if you know how many records exactly you want to display in 1 Page processing.
    regards,
    Mahesh

  • How to limit the number of boxes to tick in LC

    I would like to know the "javascript" in Lice Cycle to limit the number of boxes ticked
    for example i have 20 boxes and i would like that the client can only tick 5 boxes
    thank you

    Thank you Steeve
    But my problem is that i don't know which boxes the client will want to tick so all boxes have to be available at the beginning.
    When the client will have ticked 5 boxes in this case and only in this case, all others boxes must become unavailable so it is very difficult to set up
    if you have any idea
    thanks anyway
    Date: Fri, 15 May 2009 09:44:33 -0600
    From: [email protected]
    To: [email protected]
    Subject: How to limit the number of boxes to tick in LC
    This is a form validation issue. For example, you may have a text field and the value entered into that field determines which checkboxes must be completed to satisfy a validation or business rule. The attached sample requests the value "foobar" to be entered into a text field. If you enter "foobar" and exit the field, 2 of 3 checkboxes have the access property changed to "protected", meaning a user cannot no longer select those checkboxes.
    // form1.page1.subform1.input::exit - (JavaScript, client)
    if (this.rawValue == "foobar") {
        form1.page1.subform1.cb2.access = "protected";
        form1.page1.subform1.cb3.access = "protected";
    Steve
    >

  • How to limit the number of search results returned by oracle text

    Hello All,
    I am running an oracle text search which returned the following error to my java program.
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    #### ORA-29902: Fehler bei der Ausführung von Routine ODCIIndexStart()
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    java.sql.SQLException: ORA-29902: Fehler bei der Ausführung von Routine ODCIIndexStart()
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
    When i looked up the net, one suggestion that was given is to narrow the wildcard query, which i cannot in my search page. Hence I am left with the only alternative of limiting the number of results returned by oracle text search query.
    Please let me know how to limit the number of search results returned by oracle text so that this error can be avoided.
    Thanks in advance
    krk

    Hi,
    If not set explicitly, the default value for WILDCARD_MAXTERMS is 5000. This is set as a wordlist preference. This means that if your wildcard query matches more than 5000 terms the message is returned. Exceeding that would give the user a lot to sift through.
    My suggestion: trap the error and return a meaningful message to the user indicating that the search needs to be refined. Although it is possible to increase the number of terms before hitting maxterms (increase wildcard_maxterms preference value for your wordlist), 5000 records is generally too much for a user to deal with anyway. The search is not a good one since it is not restricting rows adequately. If it happens frequently, get the query log and see the terms that are being searched that generate this message. It may be necessary to add one or more words to a stoplist if they are too generic.
    Example: The word mortgage might be a great search term for a local business directory. It might be a terrible search term for a national directory of mortgage lenders though (since 99% of them have the term in their name). In the case of the national directory, that term would be a candidate for inclusion in the stoplist.
    Also remember that full terms do not need a wildcard. Search for "car %" is not necessary and will give you the error you mentioned. A search for "car" will yield the results you need even if it is only part of a bigger sentence because everything is based on the token. You may already know all of this, but without an example query I figured I'd mention it to be sure.
    As for limiting the results - the best way to do that is to allow the user to limit the results through their query. This will ensure accurate and more meaningful results for them.
    -Ron

  • HT5100 How to limit the number of downloaded videos in parallel to one.i want my iPad itunesu to download only one video at once at time and when finished from downloading it to pass to the second queued one.

    How to limit the number of downloaded videos in parallel to one.i want my iPad itunesu to download only one video at once at time and when finished from downloading it to pass to the second queued one.

    @Tylerdowner: hmm.. maybe yes.. I just want to use the DOWNTHEMALL AddsOn for the saving file not the default download.. because my costumer download MP3 files and save it 3 or more files at a time so my Internet Connection goes down :( so I just want to limit them to save 1 file at a time.
    or if there is another way to limit it to 1.. please tell me :(

  • How to limit the number of TCP connections beeing used concurrently while a page is beeing loaded?

    We manufacture industrial small-footprint control modules with embedded web server. The resources of these modules are very limited, especially in RAM. We have problem, that FF opens 15 parallel TCP connections while loading a web page (main html page first, then all icons simultaneously). We can not handle such behavior because of lack of RAM memory needed for TCP buffers.
    Question is how to limit the number of concurrent TCP connections the browser will use? We need to do it somehow directly from the page, we can not push our customers to change the general settings of their browsers (they would not understand such things anyway).
    Do anyone have any suggestion?

    Sorry, one other thought. Many web designers now combine all icons into a single image and use CSS to clip the image so that only the desired portion is displayed. This minimizes the number of required connections and increases the probability that the image can be retrieved from cache.
    More info:
    * [http://www.w3schools.com/css/css_image_sprites.asp CSS Image Sprites - W3Schools]
    * [http://www.alistapart.com/articles/sprites/ A List Apart: Articles: CSS Sprites: Image Slicing’s Kiss of Death]
    * [http://coding.smashingmagazine.com/2009/04/27/the-mystery-of-css-sprites-techniques-tools-and-tutorials/ The Mystery Of CSS Sprites: Techniques, Tools And Tutorials | Smashing Coding]
    No idea whether this is practical for your application.

  • How to change the duration of a sequence of stills all at once

    Hi.
    I know how to change the duration of one still, but changing the duration of many seems elusive.  I've gone to the Help menu and typed "Duration."  That points me to the menu where I would change the duration of one still.
    Thanks for your help!
    Roxane

    edit:
    For items already in the timeline, Select the each item in the timeline, right click and select "change speed" from the popup menu. You can not change the duration of a group of slides, only one at a time.
    To change images that are already imported but not in the timeline, there are two ways to go - the brute force method and the item by item method.
    Brute Force: Delete the stills from the Browser, change the duration of still setting in User Preferences>Editing to what you want, then reimport the stills. They will come in with the new duration. Changing the User Preference setting only affects stills imported after the change, it has no effect on material already in the Browser.
    Item By Item: Go to the still in the Browser and change the duration for it. Right click on the time and copy it. Select the next still image time, paste the new time in, rinse and repeat. If you have a lot of stills and they are well organized (ie all in the same folder), the brute force is probably faster.
    x
    Message was edited by: Studio X to correct factual errors in the original post

  • How to change the duration of multiple paint strokes

    Hello everyone! Newbie here.
    I should've set the paint properties to first frame instead of constant. Where properties of multiple clone stamps are easily modified at once, the duration shows as a percentage and so I can't figure out how to reset the duration to the first frame of the clone stamps.
    I should've read the paint chapter of the After Effects manual before I made a mess but I haven't found my answer there.
    I'll also appreciate any suggestions for scratches and noise removal filters.
    Thank your for your help!

    edit:
    For items already in the timeline, Select the each item in the timeline, right click and select "change speed" from the popup menu. You can not change the duration of a group of slides, only one at a time.
    To change images that are already imported but not in the timeline, there are two ways to go - the brute force method and the item by item method.
    Brute Force: Delete the stills from the Browser, change the duration of still setting in User Preferences>Editing to what you want, then reimport the stills. They will come in with the new duration. Changing the User Preference setting only affects stills imported after the change, it has no effect on material already in the Browser.
    Item By Item: Go to the still in the Browser and change the duration for it. Right click on the time and copy it. Select the next still image time, paste the new time in, rinse and repeat. If you have a lot of stills and they are well organized (ie all in the same folder), the brute force is probably faster.
    x
    Message was edited by: Studio X to correct factual errors in the original post

  • How to limit the number of pages a PDF can print?

    Hi,
    Does anyone know how to lime the number of pages a PDF can print? For example, if a PDF has 100 pages, it only allow the user to print no more than 100 pages.
    Any software can achieve this ?

    But once I purchased a ebook, which required be opened with Adobe digital edition, the ebook only allow to print 57 pages out of 300+ pages total. 
    Are there any way to convert a PDF to a ebook and encrypted by the printing limits?

  • Why i cannot know how much is the duration of the call WHILE calling someone?

    Why i cannot know how much is the duration of the call WHILE calling someone?

    You can. Look at the screen.

  • How to measure the duration

    Hi all
    I would like to know how to measure the duration for which the "over temperature" is in on state in the example "Temperature system Demo.vi"
    i would also like to measure the transisent in a sine waveform.
    thanks in advance.
    with regards,
    McFerra
    Attachments:
    Temperature System Demo.vi ‏49 KB

    Hi McFerra,
    Find the attach vi that can solve your question..
    enjoy..
    DoN't FoRgEt To cLiCk KuDoS.....!!!
    Greeting from India,
    Malhar
    Attachments:
    Temperature System Demo.vi ‏46 KB

Maybe you are looking for

  • Images aren't being displayed in the links panel

    I am trying to locate the source file for images in an InDesign CS6 document, so that I can use them within another project (Muse). I had planned to use the links panel to see the path for each image. However, only a few of my graphics/images are bei

  • Cross Currency Credit memo application

    Hello, Customer on 11.5.9 is applying a Canadian Dollar Credit Memo to a US Dollar Invoice and the Journal Import of such applications fail with EC12 'The entered amount must equal the accounted amount in a functional or STAT currency journal line' Q

  • EP7.31 integration with Sharepoint 2010

    Hi , we are integrating EP 7.31 with Sharepoint 2010 server, we can able to see in HTTP header in MYSSO2 ticket cookie,but Sharepoint application can't able to parse the ticket, Here is the Log : [Thr 10788]     Initializing SSF Library Version [Thr

  • DDL in hibernate

    how to do DDL Operation in hibernate like creating table,creating sequence,droping table, how to get sequence value from table like select next.val from dual;

  • How to propogate SOAP fault from JPD to JWS

    Hello, I am new to weblogic and i am facing a problem with propogation of SOAP Fault from JPD to Process Control to JWS. I need to throw a custom SOAP Fault from JPD to the client of the JWS which wraps this JPD. Currently when i set and throw the so