Logic for automatic update

Hi,
I have a table say, order_items with the following structure:
id number(10)
item varchar2(10)
line_no number(10)
order_id number(10)
If the data looks like this:
id item line_no order_id
1 PEN 1 4
2 PENCIL 2 4
3 BOOK 3 4
4 ERASER 4 4
If I have a requirement where I have to update the PENCIL item at line_no 2 and move it to line 3, I want to shift the rest of the items down by one number, how do I do it?
Due to the way my application is set up I cannot do that update in my application code. It HAS to be a database trigger. If I use a trigger, I would get Mutating error. Is there a way around that Mutating error? If I put it in a statement-level trigger it would iterate indefinitely (I think)...
Thanks in advance
Alex

Can you explain a bit as to why this needs to happen in a trigger? Are you sure it can't happen in a stored procedure that the application calls?
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • How do I get a reliable schedule for automatic update in Windows Server 2012 R2?

    I don't understand why MS broke the automatic update in Windows Server 2012 R2. In previous versions, I used to set it for automatic updates - Saturdays at 2AM. I can no longer pick a weekly update in the GUI and the time seems to have no impact on its capricious
    reboots due to updates.   It might happen 2 days later at noon.   The best option for now is to just shut off the automatic updates but I'm reading this issue has been around since 2012 R1.   There supposedly is a fix/patch for
    2012 but it doesn't say if the patch is for 2012 R2 and the automatic updates haven't installed a fix that actually fixes what is broken with the automatic updates.
    Why even leave the GUI for automatic updates if it doesn't mean anything?
    Is there a simple registry key I can change so updates occur according to the schedule that you created in the GUI?      Please no powershell - worst crutch MS ever created to not fix their own gui.
    I'm seeing people have tried some advanced work around using GPO but many said those don't work reliably either on hosts or domain controllers.

    This may explain:
    http://blogs.technet.com/b/wsus/archive/2013/10/08/enabling-a-more-predictable-windows-update-experience-for-windows-8-and-windows-server-2012-kb-2885694.aspx
    http://blogs.technet.com/b/wsus/archive/2013/06/11/wsus-blog-managing-updates-with-deadlines-in-an-era-of-automatic-maintenance.aspx
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Registry path for Automatic Updates in Windows 8

    Hello,
    I have a requirement to uncheck the check box shown in image below. 
    Is there any registry path that I can edit or any script to do the same.
    Thanks in advance. 

    Hi,
    See this thread with the exact same question:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/742fe303-0531-482e-b60c-df69925d16ba/registry-path-for-automatic-updates-in-windows-8?forum=ITCG
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)
    This is funny.  The answer points back to the question because the two threads were merged. 
    Thank you Bill and KhushbooPatel.  You have created a black hole.  The Internet will never be the same.
    is KhushbooPatel like "Baby Boo Boo"?  I thought "Khush" was spelled "Kush".  You know...K2 and all that.
    ¯\_(ツ)_/¯

  • How to set applications for automatic updates?

    Some apps are updated automatically and others require approval before the update takes place. Is there a way to change an installed app from the approval-needed mode to automatic updates?

        sgmccunn, We can understand the importance wanting to chose to do an automatic update for your applications. Unfortunately, if the application does not give the ability to auto update it cannot be overridden. Some app creators want people to know what they are chosing to upgrade. It does require approval beforehand.
    RobinD_VZW
    Follow us on twitter @VZWSupport

  • Any way to set iTunes for automatic updates?

    For example, if I have a "My Music" folder, and I copy over some MP3 files from wherever, is there a way to set iTunes to automatically "watch" that folder for new files and add them to the library when it finds them? I haven't been able to find a feature that does this.
    If not, why not? "Watch folders" have been in use for years on my other music players.

    No. Itunes has no such feature

  • Why do some sites say my browser is out of date (v 3.6) when I am using Firefox 17.0.1 and am on the release update channel for automatic updates?

    In Facebook and while trying to access an online support mechanism at HP, I receive messages telling me that my browser is out of date. The HP site identified my version as 3.6, when I am actually using version 17.0.1. At least when I click on Help, About Firefox, it tells me I am using v. 17.0.1. Why does this happen? On the HP site, I could not fill in the online registration info as I was receiving javascript errors, along with the browser outdate error.
    Even your own analysis below, sees my browser as v. 3. What gives?

    Try the steps at [[Websites say that Firefox is outdated or incompatible even though it's the latest version]], your user agent is corrupted

  • How to get automatic updates for P750 custom build

    I recently purchased a custom built P750 and want to sign up for automatic updates. There is no option for just a P750 which is my complete model number.
    8GB ram
    I7 2.20GHz
    Windows HP SP1 with all updates installed at this time.
    How can I get automatic updates for this machine and operating system and if so, how do I get signed up for those?
    Should I just choose a model number and pretend it is the model I have? Which number should I choose?
    Jon
    Solved!
    Go to Solution.

    Satellite P750 (PSAY3U-0RF03H)
    All computers in the same part-number family (PSAY3U) are essentially the same. The drivers and utilities for this one should work.
    Satellite P750-BT4G22 (PSAY3U-08703H)
    So go here.
    Hmm. Not many there. So let's go to the equivalent part-number family in Europe (PSAY3E).
    Get those here.
    Lots of ways to wiggle.
    -Jerry

  • Why Firefox made automatic update even if I had specially unchecked "check updates for firefox" option?

    I hate when software wastes my time for updates. Usually this happens when you are most hurry.
    I always uncheck option for automatic updates.
    But Firefox still wasted my time and made unwanted update.
    Therefore I know now that Firefox is a malware and removed it from my system.

    Sorry, it's been like this for over 6 years now, ever since the update feature was added in Firefox 3.0 - right, wrong, or indifferent. If you want the ultimate "say" as to if and when Firefox is updated by other than a definitive "click" by your hand, you need to say '''''Never check for updates ...''''' and then remember to check for updates yourself every 6 weeks so that you don't fall too far behind on security fixes for Firefox.
    One change that was made since this thread was started 3 months ago, is that opening '''''Help > About Firefox''''' no longer checks and then downloads an update, if one is available. There is now a '''Update to ...''' button in the About Firefox dialog window.

  • Automatic Update Problem

    Every morning I receive the following message "Sorry, your scheduled  automatic update did not complete successfully because a connection could not be established. 4626." I  When I disconnect the Treo from the changer, the phone then turns off and restarts again.  I don't know what the automatic updated message refers to means and I don't know what I have set up for automatic update. the phone turning on and off again wastes minutes that I need!  Any ideas? Thanks!
    PS I noticed that this problem has appeared on other Palm devices but the advice in the other posts doesn't work for my Palm 700p device.
    Post relates to: Treo 700p (Sprint)
    Post relates to: Treo 700p (Sprint)

    Hi, and welcome to the Palm Community Forums.
    Using the Search function here (searched on "scheduled automatic update")  resulted in a bunch of threads including this one.  Hope it solves your problem.
    Post relates to: None
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • Help! I dowloaded an automatic update & now can't login to my Mac!!!

    I started with Mac OS X v10.4 on my computer, but set it up for automatic updates. After downloading the latest update yesterday, after I type in my password on the login screen, I briefly see a "blank desktop" view (i.e., I can see the wallpaper that I normally have displayed) and then the screen goes to a "blank light blue" screen before returning me to the log in screen. I've tried running the disk utility but no luck... Does anyone have a suggestion???

    If you are ok with using the terminal you can try this, copied from another thread
    +FIXED WITHOUT REINSTALLING OS X+
    +Found the install disk, booted from it, and instead of doing archive/install, went to Utilities | Terminal. Note that my laptop's HD is called "Laptop HD", not the standard "Macintosh HD" ...+
    +I didn't have a USB drive handy, so I had to get the installer package over using another networked computer and HTTP:+
    +On another computer, downloaded the installer package, opened the disk image, and copied the package itself to my ~/Sites folder. Renamed it "fix.pkg" to make for less typing. Right-clicked and selected "make an archive of fix.pkg" to make "fix.pkg.zip". Made sure web sharing was on in the System Prefs.+
    +Back on BustedMac, typed the following:+
    +cd "/Volumes/Laptop HD/Users/myuserid"+
    +../../usr/bin/curl http://myothercomputeraddress/~myuserid/fix.pkg.zip -o fix.pkg.zip+
    +../../usr/bin/unzip fix.pkg.zip+
    +Now, having the package on the machine, I then did as suggested in a few other related threads:+
    +../../usr/sbin/installer -pkg package.pkg -target "/Volumes/Laptop HD"+
    +The package installer then ran (in the Terminal window). It said "Installer: Package name is Mac OS X Update (Intel)" and then another line ... sat there for a minute, then gave lots of errors about kexts not containing code for the architecture specified (which seems odd ... are these PPC-only kexts maybe?). Again, it sat for a few minutes with the fans on and periodic disk activity. Finally, it gave the following message:+
    +"installer: The install was successful".+
    +Quit Terminal.+
    +Force-Rebooted (the installer disables the usual system restart menu option, so that's the only choice).+
    +For giggles, I held down Command-V while rebooting ... got to the point of the "diskarb isn't ready yet" messages (and actually something which looked a bit alarming about giving up waiting for diskarb), and about 5 minutes later I had my login screen.+
    +So, if you are at all adept with the command line, this will give you a way to re-run a failed OS X update without trashing the entire system!+
    +15" MacBook Pro Mac OS X (10.4.10)+
    If not I would suggest an Archive and install from the cd. And then run the updates.

  • HT4922 How do I stop automatic updates of Microsoft Silverlight on MacBook?

    Microsoft Silverlight keeps trying to update on my computer and is really slowing it down.  How do I stop these pop up boxes for automatic updates?

    Do you actually need it? Not many websites have Silverlight content, Netflix being perhaps the most notable exception. The best way to stop the updates would be to get rid of it.

  • Automatic updating of ipod software - saying I'm not connected to the Net

    Hi There, Please help me. I bought a game for the ipod and it wouldn't play, I needed to update the itunes, which I did. Then the ipod software needed to be updated and I opted for automatic updates. when I connect the ipod to the computer it says there is an up to date version of ipod software available and do I want to update when I click ok it says that it cannot update as I am not connected to the internet but I am !! My broadband shows as connected and I'm online ???? Please help! Yours very confused ...

    Try this.
    http://docs.info.apple.com/article.html?artnum=304468

  • Firefox 9.0 keeps downloading automatically, even though I unchecked the automatic update box. I don't want 9.0. How do I stop this?

    I cannot use FF 9.0 on my work computer--it cannot connect to any site. FF 8.0 works great, and I want to keep it. But no matter how many times I uninstall 9.0 and re-install 8.0--UNchecking the box for automatic updated--9.0 keeps re-installing automatically after a day or two. How do I stop this?

    Sorry, Swanarva, It didn't work as it was supposed to. I downloaded, saved file, clicked the download to open, clicked 'run' then got an error message that it couldn't find the file(!) . No idea what happened or why. Should I have uninstalled Firefox first, then downloaded Firefox 8 using another browser or downloaded, uninstalled Firefox 09 beta then tried installing Firefox 8?
    At this rate, IE is looking good, despite its shortcomings.

  • TS4083 Is there a way or a setting my folders in Mail to automatically update across all devices? if I transfer an email to a folder for follow-up on my PC, my folder in Mail on my iPhone doesn't update until I actually go into the folder and update manua

    Is there a way (or a setting) for my individual folders in Mail to automatically update across all devices? For example, if I transfer an email to a folder for follow-up on my PC - say 10th of the following month - the same folder in Mail on my iPhone doesn't update until I actually go into the folder and update manually.  Interestingly though, if I create a new folder on any of my devices they automatically appear on the other devices so it is just the actual contents that I am referring to here.  Appreciate any help or guidance.
    Regards
    Justin

    You can turn mail off in the settings but then you can't use it for anything, including the "test" that you want to perform.
    Settings>Mail, Contacts, Calendars>Account Name>Mail>Off. That totally turns off the mail account.
    As long as mail is turned on and you launch the app, it will look for an download new mail.

  • How do you reset the Apple ID to a new one for the automatic updates download tool?  It defaults to my old Apple ID, even though I have changed the Apple ID to the new one everywhere I can find.

    I have an original Apple ID from my personal iPhone and iPad.  I bought a MacBook Pro for business and the Apple Store clerk told me to use the old Apple ID to make setup faster and that I could change to a new one later.   So... I did all that and changed the Apple ID everywhere I can find a place to do so.  And everything seems okay, except the Automatic Updates download tool defaults back to my original Apple ID.  That old Apple ID is grayed out in the login, so I cannot seem to change it to download and update under my new, business-related Apple ID for my MacBook Pro.  What to do?

    Yes, absolutely, you can still use the old ID to update, etc., but I understood the OP to want to simply discard the old one and use only the new one. Maybe I misunderstood...
    And, actually just now re-reading the first post, it could be that the ID had only been associated with the iDevices, so if he established a new ID and associated that with the new MBP, I frankly have no idea if he can still use the old ID on that machine (based on him saying that the old ID is greyed out) - have not come up with this type of situation before.

Maybe you are looking for

  • What can I do to edit and add or delete PDF document

    I do not use many functions of acrobat PDF except converting word document into PDF or vice versa. Recently, I have a document in PDF format with pages of writing. What do I if I want to edit the document in PDF format, and to add or to delete certai

  • T41 23739FU - wireless card connects to WEP, but not WPA

    I have a T41 that has, according to Device Manager, a Toshiba Wireless LAN Mini PCI card. The system's product id is 23739FU. The problem I have is the system will not connect to a router using WPA encryption, but will connect to an open network or o

  • Case-sensitive wild-cards in Select Query

    Hi, I have to make a search help for Portal like it is in standard SAP's Who's Who search help in HR-ESS. I have to fetch data (wildcards) from Portal & on the basis of that I need to give them the actual no. of matching data. In short, I'll take onl

  • Dbassist generates XML how can I use

    The dbassist tool in 9i generates XML files for the template definitions. Are there any DTD for this XML? How can I use this templates in silent mode (without GUI) to generate the creation scripts.

  • Line-in for microphone

    Having an issue with the line-in for a microphone. Cannot get any sound out of the microphone. Went to preferences and all is set ok. Any other thought?