Deadlock - can you make both transactions rollback?

My understanding of Oracle (11.2.0.3) is that if the engine detects a deadlock, it picks one transaction to rollback and one to succeed.
Is it possible to configure a system or session setting that would instruct the engine to roll back both transactions?
Long story short...I'm being asked this question because developers' code isn't perfect

Hi Raindog,
> My understanding of Oracle (11.2.0.3) is that if the engine detects a deadlock, it picks one transaction to rollback and one to succeed.
It is not the engine - it is the database session itself. The documentation states, that the session is picked randomly, but this is not true in fully manner. The session, that is waiting the longest time will do the statement level rollback and raise an ORA-00060. Why? The timeout for enqueues (in that context) is 3 seconds and so the sessions that are waiting for that enqueue will wake up every 3 seconds and check the lock states. However as all of the other guys already mentioned "a statement rollback is performed" and not a "full transaction rollback". So it is up to your application to react on the ORA-00060 and do something useful (which is not that easy).
> Is it possible to configure a system or session setting that would instruct the engine to roll back both transactions?
No nothing "by Oracle default", but ideally your application reacts on the ORA-00060, identifies the other session and kills both for example (which performs an implicit rollback).
> I'm being asked this question because developers' code isn't perfect
... then help your developers to make it better by explaining the error handling and its following actions
Regards
Stefan

Similar Messages

  • Action Links vs. HTML Links - Can you make both open in a new window?

    We are creating some reports that and are trying our best to keep them short and to the point. My requirement is that I pull a list of top accounts based on prior year revenue values. That piece is covered. Now that I'm trying to make sure the sales force can get at the details faster I've linked the Account Name field to pull up the account details.
    I have done this first using the HTML method and it worked just fine but I found I ended up with a column that had to say something like "Go". Again I'm trying to keep the number of columns down as this is to be a dashboard type report at some point. I simply passed the target=top command to keep the list in the background and just pop open a new window which was ideal as they like keeping the list open behind the drill.
    Then I went in and swapped it out to an action link because it looked like I could just have the Account name hyperlinked and it would save me a column. The only thing now is that it seems to want to open in the same window.
    I guess my question is that can I either force the Action Link to open a new window when drilled or can I somehow put in an expression into the HTML HREF method to still drill off the account name. I didn't know if there was a way to do this via expressions or not.

    There is no such option in InDesign CS6. It has to be accomplished in Acrobat by use of a JavaScript, as I recall. You should ask in the Acrobat forums for more informations.

  • I have an old iPhone and my new phone that I'm using currently. The old one isn't being used. Can I make both of the phones receive all of my text messages?

    I have an old iPhone and my new phone that I'm using currently. The old one isn't being used. Can I make both of the phones receive all of my text messages even though my old one doesn't have service but there is wifi?

    You can activate iMessage on the old one so it can get your iMessages. The old phone will NOT recieve SMS/MMS messages sent to your number.

  • Can you setup both VPN server and Back to My Mac on Lion Server?

    I have been trying to figure out if this is possible for some time. Can you use both Back to My Mac and VPN server services at once on a OS X Server?
    So far here is what I have found:
    - According to http://support.apple.com/kb/TS1629  Back to My Mac and VPN use the same UDP ports(500,4500)
    - I have been able to get my VPN service working by removing all access for Back to My Mac(in System Preferences->iCloud) as well as removing all "Mobile Me" access on our AirPort Extreme.
    The moment I try to add an account to access the network via Mobile Me(ie Back to My Mac) on the Airport Extreme, I am no longer able to make a VPN connection.
    Checking the Service VPN Logs, no log entry is shown for the failed connection.
    So, my questions are:
    1. Has anyone been able to get these two working on the same server/network?
    2. Is there any way to change the default ports used by the VPN server service on Lion Server?
    Thank you to anyone that can provide any suggestions.

    Just as FYI....I just started using iCloud and tried the "back to my mac" on a mac server that is my VPN server.
    Enabling "back to my Mac" prevents the VPN from being useable.
    Disable "back to my mac" and the VPN works again, as verified from both another MAC and an iPhone.

  • Can you make itunes sync random music from your libary to iphone?

    Can you make itunes sync random music from your libary to iphone?

    You sync both to your computer.
    Everything should be on your computer, just sync it ot the iphone.

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • How can you make the iPod tell the diff between a movie and music video

    Greetings!
    How can you make iPod tell the difference between a Music Video and Movie? Everything I put up on the iPod falls into Movie. So is it something I have to do in iTunes?
    Thanks for the help!

    Rightclick the video in iTUnes, hit Get info then the "Options" tab. Beside kind you can set it to movie. music video. or TV show

  • Is there a way to view earlier messages in a thread without going through each day? Also, can you make a photo album from the same text thread without going back to the beginning?

    Is there a way to view earlier messages in a thread without going through each day? Also, can you make a photo album from the same text thread without going back to the beginning?

    Turn Settings > General > Accessibility > Zoom to ON.

  • Do you have to down load from the internet using apple's recover partition, every time you need to do a clean install? or can you make a copy of Mt Lion onto a USB stick and install off that?

    Do you have to down load Mountain Lion from the internet every time you need to do a clean install? or can you make a copy of Mt Lion onto a USB stick and install off that?
    Thanks

    Yes you can make a USB stick of Lion or Mt Lion. Use Lion Disk Maker after you download OS X from the internet.
    For Lion you have to point the download to an external drive and watch when it completes and reboots the system to start the install disconnect the external. If you bought Mt Lion from the Mac App Store then you can download it from there and just cancel the install when it comes up on the desktop.
    If you are downloading from the Recovery HD or from the Online Internet Recovery system, slightly different then the built in Recovery HD, then again you need to point it to an external drive and discoonect that drive when the system reboots to start the real install.
    Then use Lion disk maker to create either a DVD disc or USB thumb of the install files.

  • How can you make your persona show on the top and bottom? Also can you make it bigger at the top to show more of the picture?

    How can you make your persona show on the top and bottom?
    Also can you make it bigger at the top to show more of the picture?

    Add extra empty toolbars if you want to see more of the persona.<br />
    You can create extra toolbars to get extra space via View > Toolbars > Customize<br />
    You have to put something on a toolbar (drag a Space item onto it) before closing the Customize window because empty toolbars are automatically removed.<br />
    See http://kb.mozillazine.org/Toolbar_customization

  • Can you make an animated gif from edge animate?

    Can you make an animated gif from edge animate?

    not natively. edge exports html and javascript files, not video files, or frames.
    however, you could use a third-party program that has a video screenshot function and make one that way.

  • Can you make an existing document into a .pdf file?

    can you make an existing document into a .pdf file? I used to use pdf factory before my system recovery. I do not want to reinstall that program. Can I do this in Acrobat Reader 7?

    Adobe sell Acrobat (in various versions) to do this.
    Aandi Inston

  • Can you make captions for a slideshow?

    can you make captions for a slideshow? otherwise how can i rename the photo so that i can select view titles in the slideshow and use it as a caption?

    Jim lo:
    Welcome to the Apple Discussions. You can't make captions with iPhoto. You can edit the title of a photo by selecting it and then going to the Info window at the bottom of the Source pane, the "i" button, clicking on the title field and enter what text you'd like.
    If you plan on using the slideshow in iDVD then those titles will not show as they will be lost in the "overscan" area that is common to all movies played on TV. You can create the slideshow in iMovie and have lots of control over titles and subtitles and greater control of the audio track, cut, fade in/out, etc.
    Do you Twango?

  • Can you use both an employee discount and a military discount on one account?

    Can you use both an employee discount and a military discount on one account?

    No.
    You can only have one ELEU (Employee Corporate Discount) on an account
    So choose the one that has the greater percentage which is probably the military.

  • I just bought a used Macbook Pro. How do I make the changes to make it personal. Example the iTunes comes up as the old user and I have to have his password to make changes on the laptop. Can you make any suggestions?

    I just bought a used Macbook Pro. How do I make the changes to make it personal. Example the iTunes comes up as the old user and I have to have his password to make changes on the laptop. Can you make any suggestions?
    Also I cant make a right click on the pad. Is that normal?

    Your first going to have to remove all your personal data off the machine to a external storage drive, do not use TimeMachine when it asks as this will copy the entire drive and is unnecessary at this time (also takes too long).
    You need to drag and drop copy your personal data folders (Music, Pictures, Movies etc) to a external storage drive, once done, unmount and disconnect this drive.
    Most commonly used backup methods
    Next your going to follow the Zero Erase and install method for your OS X version, either 10.6 or 10.7, here
    How to reinstall just OS X or erase/install OS X
    10.7 requires your AppleID and password to install, so make sure to have that ready.
    Once you reboot your into the real setup of OS X, which will require your name etc, so it's now your machine.
    Install your programs, iLife package is only free for the owner of the machine.
    If you have the 10.6 machine specific disks, then it's on there.
    If your using 10.7, then you'll have to purchase it from the App Store.
    Last, return your files from the storage drive, consider setting up a TimeMachine or clone on the external drive.

Maybe you are looking for

  • ITunes won't sync music to my iphone.

         A little context. I've always shared an itunes account with my cousin and all our songs would be the same. But to make this possible i would have to meet him and sync my iphone on his computer. But i have my own computer now with alot of differe

  • Missing option dhcp

    Hi, I have been a few days following entries in my server log: +Apr 27 22:45:14 fileserver bootpd[14498]: server starting+ +Apr 27 22:45:14 fileserver bootpd[14498]: interface en0: ip 192.168.1.5 mask 255.255.255.0+ +Apr 27 22:45:14 fileserver bootpd

  • CAD Desktop - DMS Integration

    Hi, We wish to integrate CAD desktop with DMS. Could you share the integration aspects that need to be considered for parameter mapping for the sa,e?

  • PM Error Message " FM Account assignment is incomplete (Funds center) messa

    Dear PM Experts. We use PM module for both Preventive maintenance and Breakdown maintenace. While creating an breakdown maintenance order, the system gives me an error message: " FM Account assignment is incomplete (Funds center), error  message numb

  • Acrobat Reader 9 Asian fontpacks

    Hello, did someone located the asian fontpacks for the new reader 9 version? If yes, please provide this link regards muell