Play it again, Sam (ie. retry the statement)

there is a merge statement that causes ORA-08006 error from time to time: specified row no longer exists. I found out that the main solution cited on the internet is to retry the operation:
ORA-08006: specified row no longer exists
Cause: the row has been deleted by another user since the operation began
Action: re-try the operationSo I thought about wrapping it into pl/sql the way so that the merge would be re-tried after some time and then, if it failed again, the exception would be thrown to upper layer of application (here: shell). I came up with the following code below. I would appreciate your opinion, especcially if there should be something else incorporated to improve the code or maybe some other approach would be better, or maybe I should pay attention to other aspects.
thank you
create or replace
package tst as
  procedure main;
end tst;
create or replace
package body tst as
  do_merge_cnt pls_integer := 0;
  ora08006 exception;
  pragma exception_init(ora08006, -08006);
  /* here the exception is simulated */
  procedure throw8006 is begin raise ora08006; end;
  /* this procedure will include original merge statement */
  procedure do_merge is
  begin
    do_merge_cnt := do_merge_cnt + 1; -- increase "failure" counter
    case
      when do_merge_cnt < 10 then throw8006;
      else null;
    end case;
  exception
    when ora08006 then
      case when do_merge_cnt < 2 then -- if counter < 2 then re-try after a nap
        dbms_lock.sleep(5);
        do_merge;
      else
        raise;
      end case;
    when others then raise;     
  end;
  procedure main is
  begin
    do_merge;
  end;
end tst;
/

> {quote:title=TPD Opitz-Consulting com wrote:}{quote}
Sorry but this doesn't make any sense. You would throw an error even if there was no error, just to be able to wait 5 seconds and run the merge again? THis second merge would probably merge like.... 0 rows?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • "Play it again, Sam" feature

    What am talking about is this. Say you just applied a levels command to a layer. With this function (and a convenient shortcut) you could simply select the next layer and repeat the last used function with the exact same parameters.
    A number of functions have their own "Play it again, Sam" function already (Ctrl+F for last used filter, Shift+Ctrl+T for the last transform, etc...). But there is no grand-daddy of them all - a one-stop-shop for the last function used so it could be repeated on multiple objects
    The engine that tracks the last function is already there, running the Fade command. It seems to me the road is already paved for adding the function that could be very useful when doing repetitive tasks rather than having to create an action each and every time.
    I even suggest a shortcut: Shift+Alt+Ctrl+F (as opposed to fade which is Shift+Ctrl+F). Photoshop erroneously claims it's being used for "New Document with last used settings", which has been deprecated since Photoshop started tracking that by default in the File/New dialog box. Unless there is an image in the clipboard that is, which can be purged by going to Edit/Purge/Clipboard.
    I have been expecting this as a logical upgrade for years now, and I'm really surprised to see no one asked for this in here. Although I heard a source say it has been brought up to the Adobe team in the past.

    It's called Actions...
    As you can see, I mapped the Play it Again, Sam Action to the F3 key.

  • If I erase a game and I want to play it again, do I keep the same profile?

    I have no intentions in starting over again. Because I erased some of my games (Contract Killer, Reign of Dragons, ect.) and I want to play them again. So if I download them again, do I have the same profile?

    Darn it! And if I bought a game, do I have to buy it again?

  • While playing back a video file the sound goes sort of like an echo and stopping the video and playing back again it sound great, the video is recorded live with an AJA system and plays fine on the units;any clue to what is going

    While playing back a video recorded on a AJA system we transfered it to the macbook pro played it with quicktime works great and sometimes it sounds like an echo same file track and it plays fine on the aja system.Tried it on another macbook pro and it did the same issue.Any clue to what is going on.Thank you.

    Thank you supermacmom!
    I have the LifeProof case for the iPhone5, and I remember the instructions saying that any protective screen cover should be removed before enclosing the phone into the case, but I left mine on with no ill effects.
    But I should have taken off the back protective film, which was covering the video mic!

  • Hey. I use my iPad to watch videos while I exercise. For some reason, most of my videos show an iCloud and will not play. Is there a setting that will make my videos play normally again and not through the iCloud?

    Why have my videos switched from playing no problem at all to not playing and the iCloud is the "play" button?

    No it's not stealing. They have an allowance that you can share with so many computers/devices. You'll have to authorize her computer to play/use anything bought on your acct. You can do this under the Store menu at top when iTunes is open on her computer.
    As far as getting it all on her computer....I think but I am not sure (because I don't use the feature) but I think if you turn on Home Sharing in iTunes it may copy the music to her computer. I don't know maybe it just streams it. If nothing else you can sign into your acct on her computer and download it all to her computer from the cloud. Not sure exactly how to go about that, I haven't had to do that yet. I wonder if once you authorize her computer and then set it up for automatic downloads (under Edit>Preferences>Store) if everything would download. Sorry I'm not much help on that.

  • HT1711 I backed up my iphone5 in the morning and later again on the same day, in the afternoon. I then restored an older backup from the morning. Now all my music files refuse to play even though they still appear on iphone. How can I resolve this?

    I backed up my iphone5 in the morning and later again on the same day, in the afternoon. I then restored an older backup from the morning. Now all my music files refuse to play even though they still appear on iphone. How can I resolve this?

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • HT202159 Error message while downloading. :Compressor Failed to Download. An Error has occurred. Use the Purchases page to try again." After retrying, I receive same message.

    Error message while downloading. :Compressor Failed to Download. An Error has occurred. Use the Purchases page to try again." After retrying, I receive the same message. I have uninstalled compressor and tried again. I get same results.

    Anti-viral siftware and firewalls can interfer with the MAS.

  • How to play one clip multiple times at the same time?

    I am writing a little game where a certain sound has to be played quite frequently. I load it as a Clip and play it with
    myClip.setFramePosition(0);
    myClip.loop(0);If the sound has to be played again but is still being played by another event, the setFramePosition() method resets the sound and the first playing instance is cut off.
    A workaround would be that each object that needs to play this sound would get its own copy, but that is not feasible due to heavy memory consumption.
    So here it goes: How can I play a single sound multiple times at the same time? Is that possible?
    Edited by: andrasz on Feb 27, 2009 12:37 AM

    If the sound has to be played again but is still being played by another event, the setFramePosition() method resets the sound and the first playing instance is cut off.
    A workaround would be that each object that needs to play this sound would get its own copy, but that is not feasible due to heavy memory consumption.
    So here it goes: How can I play a single sound multiple times at the same time? Is that possible?Ummmm, if you're using a clip, you'll have to maintain one copy per object that needs to play the sound concurrently. You could keep one master copy, and then create copies of the clip as necessary to play them, and then just dump the copies to decrease memory consumption.
    A second idea would be to write your own Clip class. Esentially, all you would need to do is dump some sound data onto a TargetDataline to play it. It'll handle the buffering and playing at the correct speed itself. If that's all you did, you should be able to dump multiple times from the same instance and play it multiple times.
    Obviously, that's just a theory. In practice, it may not work that way...

  • HT1399 Why cant I create a playlist for my music/song videos? Continuous play is also not possible in the video app on the phone!!!! previously, prior to IOS 6, it was possible to have both music videos & songs mixed in the same playlist in the music app

    Why cant I create a playlist for my music/song videos? Continuous play is also not possible in the video app on the phone!!!! previously, prior to IOS 6, it was possible to have both music videos & songs mixed in the same playlist in the music app

    I am back with an update. I turned off Match on both the ipad and the iphone 5. By doing so I was able to sync my Iphone and ipad to itunes and store the music on my devices rather than the slow streaming.  So far this has fixed my problems with the iphone I have all my music, playlist, most of the album art and so on.  But the ipad is a different story.  I have the music and artist but not one playlist  I am sure Apple will have an upgrade soon that will address these issues they are usually very good about this. 
    Now have any of you experienced another problem that has existed as long as I have used faces in Aperture.
    I have over 200 faces and they are organized a-z problem is I have this going on A-Z folowed by a few that start over A-Z followed by another few A-Z and again a 4th time A-Z.  Imagine how difficult it is while I am showing someone the great features of my iphone, ipad and imac.  Which I do talk highly of all the time.  But how do I explain that even though their name starts with a or b or what ever they are not important enough to me to be in the first list of A-Z or even the 2nd or 3rd list of A-Z someohow they are in the 4th section of the list!!!!
    I have managed to get the Imac to fix this but for some reason the IOS devices do not.   Any ideas?
    Thanks Al

  • I have two albums (RCA Sweeny Todd 2 discs set and RCA Into the Woods 1 disc) where the songs are listed as being on the same album on the list view, but do not group together on the iPod, so the songs can't play consecutively, or in the proper order.

    I have two albums (RCA Sweeny Todd 2 discs set and RCA Into the Woods 1 disc) where the songs are listed as being on the same album on the list view, but do not group together on the iPod, so the songs can't play consecutively, or in the proper order. The "Apply Sort Field" and "Same album does not work, but ti is only these two RCA albums that do this. All other albums remain intact. Need help with this minor problem. Thanks.

    UPDATE: This behavior (to an extent) still happens when "Repeat Album" is off. Instead of an infinite loop, it goes through all the tracks on the album (unsuccessfully) and kicks me out to the Album overview screen. Going back to list of Albums and tapping the Album again brings up "No Content: You can download music from the iTunes Store" but that screen immediately kicks me back to list of Albums.
    So I am just even more confused now.

  • I got a new home dock station and it does not play my music while its in the dock. my neighbor has the same phone and hers works fine in my dock station.wondering why?

    I got a new dock station and it will not play any of my music while my iphone 3gs is docked. my neighbor has the same exact phone and hers plays fine..what could be the problem?

    Try This...
    Close All Open Apps...  Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • HT201272 How do I remove DRM-protected tracks?  I've purchased iTunes match and followed all of the directions for redownloading and I still can't play some of my tracks on the DJay 2 app.  Please help!  Do I need to purchase these tracks all over again?

    How do I remove the DRM-Protection from tracks so that I can play them on my DJay 2 app.  I've followed the directions for removal and it's not working...
    Will I have to purchase these tracks again?

    Apple's official advice is here... HT2905 - How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group of identical tracks to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin. This can happen, for example, if you start iTunes with a disconnected external drive, then connect it, reimport from your media folder, then restart iTunes.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background. Please take note of the warning to backup your library before deduping, whether you do so by hand or using my script, in case something goes wrong.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    tt2

  • Hi guys, a game I'm trying to play keeps unexpectedly closing every time I try to play. When I try reopening, the same thing keeps popping up so I don't really know how to fix that problem. Can you help?

    Hi guys, a game I'm trying to play keeps unexpectedly closing every time I try to play. When I try reopening, the same thing keeps popping up so I don't really know how to fix that problem. Can you help?

    Plus this showed up when I looked up the details of why it quit unexpectedly.
    Process:         launchd [458]
    Path:            /Users/USER/Library/Application Support/Steam/*/Starbound.app/Contents/MacOS/starbound
    Identifier:      com.chucklefish
    Version:         ??? (???)
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [154]
    Date/Time:       2014-01-06 19:19:28.898 -0500
    OS Version:      Mac OS X 10.7.5 (11G63b)
    Report Version:  9
    Interval Since Last Report:          1786 sec
    Crashes Since Last Report:           23
    Per-App Crashes Since Last Report:   23
    Anonymous UUID:                      6F40DBC0-08A7-4A21-A80E-185F669D1C93
    Crashed Thread:  Unknown
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x00007fff5fc01028
    Backtrace not available
    Unknown thread crashed with X86 Thread State (64-bit):
      rax: 0x0000000000000055  rbx: 0x0000000000000000  rcx: 0x0000000000000000  rdx: 0x0000000000000000
      rdi: 0x0000000000000000  rsi: 0x0000000000000000  rbp: 0x0000000000000000  rsp: 0x0000000000000000
       r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x0000000000000000  r11: 0x0000000000000000
      r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
      rip: 0x00007fff5fc01028  rfl: 0x0000000000010203  cr2: 0x00007fff5fc01028
    Logical CPU: 2
    Binary images description not available
    External Modification Summary:
      Calls made by other processes targeting this process:
        task_for_pid: 1
        thread_create: 0
        thread_set_state: 0
      Calls made by this process:
        task_for_pid: 0
        thread_create: 0
        thread_set_state: 0
      Calls made by all processes on this machine:
        task_for_pid: 1095
        thread_create: 0
        thread_set_state: 0
    Model: MacBookPro8,1, BootROM MBP81.0047.B27, 2 processors, Intel Core i5, 2.3 GHz, 4 GB, SMC 1.68f99
    Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 384 MB
    Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
    Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.198.19.22)
    Bluetooth: Version 4.0.8f17, 2 service, 18 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en1
    Network Service: BlackBerry (en3), Ethernet, en3
    Serial ATA Device: TOSHIBA MK3265GSXF, 320.07 GB
    Serial ATA Device: MATSHITADVD-R   UJ-8A8
    USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8509, 0xfa200000 / 3
    USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0xfa100000 / 2
    USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0252, 0xfa120000 / 5
    USB Device: BRCM2070 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 4
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821a, 0xfa113000 / 7
    USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0xfd100000 / 2
    USB Device: RIM Network Device, 0x0fca, 0x8013, 0xfd120000 / 4
    USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd110000 / 3

  • When I get ready to burn my dvds they tend to be blurred. Even with pictures they do the same thing. When I preview them they blur while playing. But when I stop the video it becomes crystal clear.

    When I get ready to burn my dvds they tend to be blurred. Even with pictures they do the same thing. When I preview them they blur while playing. But when I stop the video it becomes crystal clear.

    Lamontsplace
    Thanks for asking for clarification. Appreciated. I did not see you post 8 until after I posted my post 9.
    Important that we define the issue as being related to just preview or to preview and export.
    Project Preset....
    When you start a new project, a project preset (project settings) need to be set by you or the project. The program
    is designed to do that based on the properties of the first video file that you drag to the Timeline. Sometimes the program
    does it right, sometimes not. If not, then you set the project preset manually assuring that the description of the project preset
    matches your video properties for at least frame size, frame rate, etc. A major function of the project preset is to direct
    the program to give you the correct space in the Edit area monitor for editing. If you select a project preset which includes
    1920 x 1080 in its description, then the space in the Edit area monitor will reflect that 16:9 format.
    If you or the program have set the correct project preset, then, when you drag your video to the Timeline for the first time, there
    will be no colored line over its content. That means that you are getting the best possible preview in the monitor. Once you
    edit that video, you will get an orange line over it. That is the program telling you that you no longer have the best possible preview
    and to get it you Timeline render using the Render button above the Timeline. When that Timeline rendering is complete, the orange
    line turns to green. That is the program telling you that you have the best possible preview which will be in effect until you edit the
    file again. Then orange to green again.
    Right now I would prefer to stay with trying to get your photos to an acceptable preview stage. No matter what the project preset,
    these will need Timeline rendering after they are dragged to the Timeline. Several have reported that the use of the DSLR project preset results in sharper images pre and post export. I want to see if any of that can enhance your situation.
    Please review and consider and then let me know if I am going in the right direction for the explanations. I will adjust
    my instructions/suggestions accordingly.
    More later.
    Thanks again for the follow up.
    ATR

  • Our iPad air keep kicking out of the Apple TV. None of the other iPads we have on the same network and the same content do this. The program kicks off the AppleTV and starts playing on the iPad about every 10 minute

    We have used the 2 Apple TVs and the 5 different IPads successfully on both Apple TVs. But the iPad air, on the same content, on the same network, on the same Apple TV drops off the Apple TV and the content starts playing on the iPad. When we choose Apple TV on the AirPlay button, it starts playing on the TV again. It does this about 6-7 times an hour. We have the latest software update. We have also deleted and reinstalled the App to play the context (iView) and it still does this.

    Hey there TandViv,
    It sounds like your other iPads work correctly when Airplaying to your Apple TV, but one disconnects about ever 10 mintues or so. I have a few thoughts for this issue you are seeing. First, try closing all the apps:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that restart the phone and test it again:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists try resetting the network settings on the phone and see how that works:
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including:
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings
    From: iOS: Troubleshooting Wi-Fi networks and connections
              http://support.apple.com/kb/ts1398
    If the issue persists, I would next backup your device to iTunes, and restore it:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

Maybe you are looking for

  • TM - External Disk Drive Not Detected in Recovery Mode

    Hello Apple Lovers, I am using the My Passport for Mac 500GB disk drive with time machine on my MacBook Air to create data backups. I checked the disk for any corruption using Disk Utility. No issues were found. I find the disk works excellantly in t

  • Error table

    Hello , I need to know where can i find name of table with all my errors when i run a deploy mapping. I found the table wb_rt_error but in this table i see just a execute error. Thanks

  • TRANSFER_DATA_FROM_SUBSCREEN

    Hi, I added a new tab using BADI  LE_SHP_TAB_CUST_HEAD, from where I have a field where the user selects a value. I store its value on a local variable within my TRANSFER_DATA_FROM_SUBSCREEN method, using GET PARAMETER ID... FIELD... . The question i

  • Where Used List for Master Data Entries

    Hi folks, I am looking for a FM, method, etc. that gives me a list, that shows, where a certain master data entry of an InfoObject is used. The BW system makes this check implicitly, when trying to delete master data, but I couldn't get behind the lo

  • Use of WDIslandLibrary30-debug.swc and sap-wd-flashDebug

    Hi I've had a look around the web and SDN in particular but cannot seem to find any concreate examples of using WDIslandLibrary30-debug.swc and the sap-wd-flashDebug parameter. The closest I got was this link below: [Debug - sap-wd-flashDebug=X ? |Re