Roll back process after certain time limit

Hi All,
  I am using Oracle 11g. I am calling one stored procedure (MainProc) from my application. Through this procedure I am calling internally three more procedure (Insert recordProc1, InsertRecordProc2 and DeleteRecProc).
The third stored procedure (DeleteRecProc) is taking more than 5 minutes. But if these process crossings more than 5 minutes, have to stop the process and roll back all three stored procedures functions.
I don’t have any commit statement inside of these stored procedures. But I have EXECUTE IMMEDIATE Inside of stored DeleteRecProc.
Help required: Help me to make a counter / Timer. I have a parameter, which has the assigned time limit. How to check whether the process crossing the time limit? How to stop the process and call Rollback?
Thanks in advance.
Manian

Don't know if this helps your situation.
http://docs.info.apple.com/article.html?artnum=301579
here is the entire thread
http://discussions.apple.com/message.jspa?messageID=1237801#1237801

Similar Messages

  • How to stop a while loop after certain time using Elapsed time vi

    how to stop a while loop after certain time using Elapsed time vi.

    Hi Frankie,
    Just place the Elapsed Time VI inside the WHILE loop, and wire the 'Time Has Elapsed' output to the conditional terminal in the lower right corner (which should be set to 'stop if true' by default).
    In the future, please post your LabVIEW questions to the LabVIEW Forum.  You have a much better chance of getting your questions answered sooner, and those answers can then help others who are searching the LabVIEW forums.  Thanks!
    Justin M
    National Instruments

  • Memory requirement is continiously increased when i am running my application program in an infinite loop,after certain time it shows an error called low virtual memory

    memory requirement is continiously increased when i am running my application program in an infinite loop,after certain time it shows an error called low virtual memory

    What are you doing with your program. Lots of improper programming techniques can cause this - building arrays, concantanating strings, opening but not closing refrences, etc. Need more details or post your VI. Also, have you looked at "LabVIEW Performance and Memory Management"? It's part of the shipping documentation and available from Help>Search the LabVIEW Bookshelf.

  • Web Service in JDK 6 - client resends request after certain time ?

    Hi,
    I am using the JAX-WS in JDK 6 to build a web service.
    The client sends a request to the server and server starts processing the request. The Server side processing is time consuming.
    I am not sure what exactly happens, but after a certain time, a new thread gets started for server-side processing. I have not used any multi-threading in my coding .
    Does JDK WS include a built-in timeout after which the client automatically resends the request to the server ?
    Thank you.

    Hi Andy,
    I found a workaround: I added some additional resources using a link "http://localhost:8079/"NAME"/:x/:x/:x/:x/:x/:x/:x​/:x/:x/:x/:x/:x/:x/:x/:x/:x" for each type (PUT, GET, POST, DELETE) where I handle the error message with the "Set HTTP Response Code VI"
    Attachments:
    ws_error.PNG ‏9 KB

  • Logoff scrip doesnt work ..after certain time threshold.

    Hi im setting up PCs for general use in computer lab, with internet cafe like structure where one main computer will control every activity of the rest.
    One of thing i made is setting up the script to force windows to shut down if user log off the windows;(so the computer would not stuck in remote-admin-unreachable limbo; where the control client isn't running and the PC isn't off either to receive WOL command
    to restart and regain control.)
    I noticed that the script will run if the windows being logged off shortly after login. when user clicked the log off button briefly after being logged in, it will actually shut down the PC.
    but if it being used for some time or simply left idle until certain time (still unclear) threshold, the script will not run.
    When the user clicked the log off button, it just log off as usual and returns to user selection screen; instead of initiating shutdown script. (and I have to manually login back or restart to regain control). 
    what causes this script 'timeout'?

    Hi Razi,
    I have deployed a simple script for all users to implement what you mentioned without no issue:
    Please clarify the settings are configured to all users on your GPO server or the local computer policy.
    configure GP for user groups by referring following link:
    Edit Multiple Local Group Policy
    http://technet.microsoft.com/en-us/library/cc731758.aspx
    Kate Li
    TechNet Community Support

  • How can I get back the 15 minute time limit when making an iTunes purchase with out having to put in password again and again?

    HHow can I get the 15 minute time limit back instead of putting in iTunes password on every purchase?

    Settings > General > Restrictions > Require Password (Password Settings on iOS 8)

  • TS3212 Itunes 10.7 Rolls back installation after attempting to install on Windows Vista 64bit.

    I downloaded the version in this link, presumably for Vista 64:
    http://support.apple.com/kb/DL1577 . It goes through the process but rolls back the installaion and reports "error in installation". I turned off kaspersky Suite but got the sam emessage. Any ideas?

    To clarify, I already have iTunes 10.6. Also, I just checked back on the iTunes installer (the manual one) and it now says: "iTunes Installer Completed
    The installer encountered errors before iTuens could be configured.
    Errors occurred during installation. Your system has not been modified.
    Please run the installer again, or click Finish to exit."

  • Script or anything that will auto quit app after certain time of inactivity?

    I am searching for a way to make apps auto quit after a certain time of inactivity.
    For exmaple, if i open the app store, i would like it to close automatically after a certain amount of time, with the possibility of adding exceptions to the list.
    Is this in any way possible?
    Thanks/.

    The above checks lsof every 30 seconds;
    -) if it's been only inactive for half a second at exactly that point, it'll close it.
    -) You can `while sleep 30;`
    Systemd doesn't seem to have this exact behavior. Autofs does though, it has a timeout option. (Systemd's StopWhenUnneeded is for when services don't need it, and its timeout option is for how long to wait before giving up trying to mount it.)
    Now I wonder if autofs can also trigger a command after unmounting...
    Edit:
    You can use the intofiy-tool's package's inotifywait to wait for an unmount event.
    Last edited by Blµb (2014-03-14 09:52:59)

  • Modem disconnection after certain time

    I am using my nokia phone for getting Internet connection to my computer. As you know the phone acts as modem. The modem gets disconnected when the time reach 2 hours. It disconnects automatically when it is 2 hours. I had tried in different sim card and different settings etc  but the result is same. I tried installing latest PC suite and nokia OVI suite but the result is same. The modem automatically disconnects when it is 2 hours. I can't find a way to extend the time limit. I called sim card support, but they are not able to get the exact reason. When the connection is established in the phone using wap, it stays long for more than 14 hours. But when it acts as modem it correctly disconnects when the time is 2 hours. Please help to to increase the time limit of modem connection. I am using windows 7 32 bit. My phone software is up to date and I had tried after restoring the phone to factory settings also. I want to know how to adjust the time limit of the modem to stay connected for long. How to change the time limit for modem connection in the computer?
    Thank you.

    Hi again:
    (Chuckling at myself), that is very true!
    As you know, you can tell the computer to shut down on a schedule (energy saver), but I do not know of anything that would do what you want.
    Barry
    P.S. I hunted a bit, but could not find anything relevant (other posts).

  • Switch playlist of itunes dj automatically after certain time

    hello,
    i have 2 playlists in itunes.  i would like to do the following:
    1) itunes plays the first playlist by playing the songs in a random order and continues to do this, until
    2) after a certain time (say 30 minutes), itunes switches to the second playlist and plays these songs in a random order and continues to do this for another 30 minutes. 
    now, for the randomization, i could use shuffle with repeat, but the problem with that is that after all songs are played in the playlist, the exact order repeats again.  i don't want this.  i want itunes to choose a random song from the playlist each time, even if it is the same one twice in a row.  as i understand it, the itunes dj allows this possibility.
    for the automatic switching, i read that i can use apple's automator to accomplish this.  however, this is my first time using it.  i chose workflow, and then music under 'actions'.  i see a bunch of stuff for itunes but there is no itunes dj. 
    i don't know where to go from here or if there is an easier way to do this.  does anyone have any ideas?
    thank you.

    In my first script : if the user press the "Camcel" button in the dialogue, the script will give an error.
    Here is the corrected script.
    global tPlaylists, DJ_Playlist, tIndex, firstTime
    property durationTime : 1800 --seconds, equal 30 minutes
    on run
        set tPlaylists to {}
        set tIndex to 1
        set firstTime to true
        tell application "iTunes" to set {tnames, uPlaylists} to {name, it} of (user playlists whose its special kind is none)
        set j to (count tnames)
        repeat with i from 1 to j
            set item i of tnames to "" & i & " -  " & item i of tnames
        end repeat
        set n to my choosePlaylist(tnames, "first")
        if n is not "" then
            set end of tPlaylists to item n of uPlaylists
            set item n of tnames to missing value
            set tnames to text of tnames -- remove name of first selected playlist from tnames
            set n to my choosePlaylist(tnames, "second")
            if n is not "" then
                set end of tPlaylists to item n of uPlaylists
                tell application "iTunes"
                    set DJ_Playlist to (first playlist whose special kind = Party Shuffle) -- iTunes DJ playlist
                    tell front browser window to if exists then set view to DJ_Playlist
                    activate
                end tell
                my mixTracks() -- add random tracks in the iTunes DJ playlist
            end if
        end if
        if n is "" then quit -- the user pressed the Cancel button
    end run
    on idle
        -- set the next index
        if tIndex = 1 then
            set tIndex to 2 -- the second playlist selected by the user
        else
            set tIndex to 1 -- the first playlist selected by the user
        end if
        my mixTracks() -- add 30+ minutes of random tracks from the next playlist
        return durationTime
    end idle
    on mixTracks()
        set selPlaylist to (item tIndex of tPlaylists)
        tell application "iTunes"
            set b to running
            if b then
                set tTime to durationTime + (duration of DJ_Playlist)
                set trackIndex to (count tracks of DJ_Playlist)
                -- add tracks to iTunes DJ playlist until its duration > (aproximately 30+ minutes of added tracks)
                repeat until duration of DJ_Playlist > tTime
                    duplicate (some track of selPlaylist) to DJ_Playlist
                end repeat
                if firstTime then -- play immediately the first added track in the iTunes DJ playlist
                    set firstTime to false
                    play track (trackIndex + 1) of DJ_Playlist
                end if -- else continues to play tracks normally.
            end if
        end tell
        if not b then quit -- iTunes is closed by the user, quit this script
    end mixTracks
    on quit
        continue quit -- quit this application
    end quit
    on choosePlaylist(l, t)
        activate
        set x to (choose from list l with prompt "Select your " & t & " playlist") as string
        if x is not "false" then return (word 1 of x) as integer
        return ""
    end choosePlaylist
    Also, I added a condition to exit the script if the user quit iTunes, but the script only works once every thirty minutes.

  • Re-trigger failed proxy message after certain time automatically in CRM

    Hi experts,
    Can anyone tell me if we can automate the process of re-triggering failed proxy messages in SAP CRM sxmb_moni, say after a certain period of time.
    Thanks
    Swapna .

    Hi Gigi,
    As stated in one of the blog (/people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically):
    For automatic qRfc failure recovery, Schedule the report RSQIWKEX to run periodically. This report enables automatically resets the queues.
    Also, refer the following threads for more information on this topic:
    Re-Process failed XI Messages Automatically
    /people/krishna.moorthyp/blog/2006/04/08/reconciliation-of-messages-in-bpm

  • I lose the back button after a time (about 45mins). Any help?

    I lose my back button (upper left on tool bar) after about 45 minutes on line
    == This happened ==
    Every time Firefox opened
    == several months ago

    I was referring to the search box in Google's page. I also use the search box to the right of the address box up on the navigation toolbar. I never search from the address area itself. Is that where it is getting blanked out?
    It's probably not a problem with Windows. More likely you have an add-on that is causing the problem. You can restart in Firefox's Safe Mode to test that theory.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, this article describes how to start in Safe Mode from various versions of Firefox:
    [https://support.mozilla.com/kb/Safe+Mode Safe Mode].
    If that works as expected/intended/designed, then one of your add-ons likely is the problem.

  • How to send automatic "reminder mails" after certain time

    Hi Experts,
    There is a problem which I am not able to solve, Please help !
    Requirement: 1. After the creation of a certain task, a mail should go to the user... this I have done using the Java Mail API.
    *2. After 2 days if the user don perform certain task, a reminder mail should be send to him EVERYDAY after the INITIAL 2 days.*
    how to achieve this in the Java mail.. I have heard of Java mail Schedulers but I am not able to find it.. If you can give me some guide or some steps or some article for this I would be very very gratefu to you.
    Please treat it as urgent and give your valuable suggestions.
    Thanx in advance.
    Regards,
    Rajat

    Nope. It means that if you want to schedule something, use code which does scheduling. Like Quartz for example. Bear in mind that the "something" in this case would involve sending an e-mail, but your scheduler wouldn't care about that.

  • Since upgrade can surf past first tab can not back up after short time then whole program freezes not happy

    XP Pentium 4 since upgrade cant surf past first tab. finally cant backspace, finally freezes entire firefox. really not happy tried fixed in troubleshooting didnt work ran malware ran total virus scan no listed problem worked before upgrade although was beginning to get crash notices at closing on an increasing tempo. have used fox for years. this making me unhappy. dont want to have to switch. please come with and fix. cant seem to return to 6 whicxh had its own problems but worked

    Something is going on: My own topic, same problem:       Kernel panics MacBook Pro mid '12             Someone else's topic, same problem:        IMac 2013 doesn't wake up after putting in 16 GB R...             Yet another:        Crucial memory causes restart during sleep mode             And another:        Kernal Panic after wake from sleep after installin...              I've just contacted the retailer and they're going to switch it - again. Hopefully it'll be fixed this time, otherwise I guess there's a fabrication error in these chips and we'll have to wait for Crucial to fix this (or we're going to have to look for another manufacturer). 

  • Move to error queue after certain redelivery limit

    Hi,
              I am newbie to Weblogic. I am currently using Weblogic8.1.4.
              I have written an MDB say mdbx which listens on a specific queue say QA, once it receives a message it will send this message to another queue QB. I have configured the queue QA such that it will try to redeliver the message 3 times to QB, if it fails in its first attempt. I have also configured an error queue to which the message should finally be placed when all the 3 attempts fails.
              My problem is, i find the redelivery limit and error queue i have configured for queue QA doesn't take effect. Please help me to resolve this.
              More Info:
              I am trying to send message from mdbx on the onMessage() method.
              Thanks and Regards
              A.SathishKumar

    Please refer : http://www.javaoracleblog.com/java/How_to_set_minimumDelayBetweenMessages_for_delay_between_messages_for_JCA_adapters.jsf

Maybe you are looking for

  • Transferring email addresses from one account to another

    I'm not sure if this is a good place to post this but after spending a good bit of time on the phone with FiOS customer service and technical support I just feel like venting my frustrations and hope that maybe someone could give me a valid explanati

  • What's a good MAC washer software program to daily clean up my MAC?

    hi there, i'm having trouble locating a really good MAC washer software program. is there one? if i go to Staples, or some such store, what software should i buy? is there a Norton for instance for MAC? my eMac is running really slow because i can't

  • Can't edit in Chart Data Editor

    I am trying to make a pie chart and I cannot edit the data in the data editor once I get the chart on the working page. Double clicking in the data editor does nothing. The slider bars can't be moved. I can't move the data editor window but the rest

  • Assigning budget profile to already existing project

    Hi All, Please suggest how can we assign budget  profile to already existing project .

  • Is the cache shared between process ?

    Hi, When I set the cachesize to 200MB in each process, does it mean that each process will need 200MB ? Or is there a chance that it will be shared ? As I use PHP scripts in a multi-process environnement to access the database I want to know the cons