Update statement is taking for ever, has been running for the last 6 hours.

UPDATE PRODUCT_INTERIM A
SET PRODUCT_ID =
SELECT MAX(PRODUCT_ID)
FROM PRODUCT B
WHERE B.CHAIN_ID = A.chain_ID
AND B.x_id = A.x_id
WHERE EXISTS
SELECT '1'
FROM RET_PRODUCT B
WHERE B.CHAIN_ID = A.chain_id
AND B.x_id = A.x_id
Oracle Experts, The above query is taking for ever and ever. We do have 11 million records in product_interim table, for those 11 Million records, this query has been running for the last 6+ hours...in OEM, it still says, 89% percent completed and 2 hours waiting time.. it always shows 2 hours waiting time...
Can you guys give some ideas to get this run fast....Your time and help would be greatly appreciated...

>
Oracle Experts, The above query is taking for ever and ever. We do have 11 million records in product_interim table, for those 11 Million records, this query has been running for the last 6+ hours...in OEM, it still says, 89% percent completed and 2 hours waiting time.. it always shows 2 hours waiting time...
Can you guys give some ideas to get this run fast....Your time and help would be greatly appreciated...
>
Don't do anything yet!
Let it keep running until you know that you REALLY want to stop it. If you think the UPDATE is slow the ROLLBACK if you kill it may take much longer.
Now - how do you plan to get it to 'run fast' when it is already running? If you do a ROLLBACK the time it takes to apply the UNDO could take even longer than the time it has taken to get this far with the update. And if you interrupt the ROLLBACK you will have to do a recovery from backup. Don't go there.
Read the FAQ at the top of the thread list for how to post a tuning request and the info you need to provide. Some of that info is:
1. Ask for help BEFORE you start running the query. Once you start you should usually just let it finish.
2. Always provide your 4 digit Oracle version
3. Provide table and index DDL
4. Provide row counts for the table and for the query predicates
5. Provide info about the exact command you used to collect stats and say if the stats are current

Similar Messages

  • Help! Phone update stuck on 7% for the last 6 hours!

    I was told i needed to update my phone (curve 9360) to the latest software. so i did all the necessary things needed, and then it got down to the actually installing, and the screen was said:
    Backing Up Your Data
    social feeds: |                             0%                   |
    Overall Backup process: |                                 7%                |
    it was on this for 4 hours, so i took battery out to restart, when i did turn it back on, it got back to 7% and stopped. help, i need my phone urgently as i have NO way of contacting anyone - therefore wont be able to go to work, because i cant contact the person who gives me a lift. I cant contact anyone in an emergency. I was expecting an important call which obviously i have missed. HELP HELP HELP HELP HELP!!!!!!!!!!!!!!!!!!!!! PLEASE!!!!!!!!!!!!!

    Hey ChristyMolloy,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    Currently you will need to finish the update using a PC by going to www.blackberry.com/update
    Also check out this article on how to create a backup file properly without Social Feeds: www.blackberry.com/btsc/KB29522
    Let me know if you have anymore questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • I downloaded the os 6 by wifi and when the phone restarted it told me to plug into itunes. I did that and the iphone software update has been stuck on '70 hours remaining' for the last 3 hours. Help!

    I downloaded the os 6 by wifi and when the phone restarted it told me to plug into itunes. I did that and the iphone software update has been stuck on '70 hours remaining' for the last 3 hours. Help!

    it says " itunes has detected an iphone in recovery mode. you must restore this iphone before it can be used with itunes" so i restore it and after it gets finished it says " the iphone :iphone" could not be restored. the device cannot be found" but ive used this itunes since i got this phone.

  • HT201269 ive recently got a new iPhone 5s due to my old one breaking, it has been sync'd but has now been showing the black apple loading screen for the last 3 hours with less than a quarter of the bar filled. what do i do?

    ive recently got a new iPhone 5s due to my old one breaking, it has been sync'd but has now been showing the black apple loading screen for the last 3 hours with less than a quarter of the bar filled. what do i do?

    Take it back to where you purchased the device and get another device.

  • Downloaded the iOS 7 and my phone has been showing the iTunes icon and charger for the last 7 hours.  What to do?, Downloaded the iOS 7 and my phone has been showing the iTunes icon and charger for the last 7 hours.  What to do?

    Downloaded late set iOS 7 update and it's been just showing the iTunes icon and charger indicator with arrow for the last 7 hours, is this normal?  How long before phone reboots

    That means something went wrong with the update and the phone is in recovery mode.
    Connect it to your computer and use iTunes to restore it.
    ~Lyssa

  • HT1222 Have a new iPad trying to download iOS 6.0.1 but it seems to have stopped. Has been going on saying estimating time remaining for the last 5 hours!!

    Have a new iPad trying to download iOS 6.0.1 but it seems to have stopped. Has been going on saying estimating time remaining for the last 5 hours!!

    Try a reset:
    Hold the Sleep and Home button down for about 10 second until you see the Apple logo.

  • HT1430 my phone is blank,and has just been vibarating for the last two hours, it wont turn off on or respond to being connected to my lap top, my lap top wont even recognise the usb, which is new, its an iphone 4s

    my phone is blank, its an iphone 4, its been just vibrating for the last two hours non stop, its unresponsive to turning on or off, or even being connected to my lap top. my lap top doesnt recognise the usb...very confused.

    Try a hard reset. Hold the power and the home button down at the same time untill you see the apple logo appear. then let go of the buttons

  • Updated to Adobe Muse 2014 this morning and have worked in it for the last 8 hours. Now when I try to publish the updated site to Business Catalyst for my client to preview it crashes everytime. I have tried just publishing altered files only, then tried

    Updated to Adobe Muse 2014 this morning and have worked in it for the last 8 hours. Now when I try to publish the updated site to Business Catalyst for my client to preview it crashes everytime. I have tried just publishing altered files only, then tried the whole site again, and then tried publishing as a new site altogether. Thought I would then try to export as HTML in the hope of uploading the files via an FTP client and Muse crashes and locks up again. I am extremely stressed about this as I am in the last few days of of website I have been working on now with no issues since December. We are due to go live and my client needs to see it. I am desperate for an answer. It is not looking good. I am on an Apple Mac and have not had any isses publishing it for the last 6 months. Not very happy to say the least. Need desperate help.

    Hi Zak, I got onto Adobe Customer Care Live Chat this morning and gave them the error message. After some trouble shooting with them it appears the older archived file of the site still publishes. I have now reverted back to the old file and copied and pasted out of the new file and from some ideas given to me by support I am now able to publish to Business Catalyst. It seems there was something corrupt within the new pages added yesterday. I have no idea if this would have still happened if I hadn't updated but I am glad it wasn't a Muse specific problem. I am loving using Muse and the support from Adobe has been excellent. Thanks everyone. By the way I do love the new version and apart from this hick up that lost me a few hours, aged me some more and gave me grey hair I really love Muse. Thanks again.

  • HT201365 Does find my phone have a history that shows where your phone has been like in the last 24-72 hours?

    Does find my phone have a history that shows where your phone has been like in the last 24-72 hours?

    All you may infer is the device hasn't been turned on where it can connect to Wi-Fi.
    The phone may be jailbroken if there is no lock passcode to prevent access. However, the phone can be completely erased and restored as new. In this case you will have no ability to locate it or prevent it from being jailbroken.
    What To Do If Your iDevice Is Lost Or Stolen
    If you activated Find My Phone before it was lost or stolen, you can track it only if Wi-Fi is enabled on the device. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. What to do if your iOS device is lost or stolen
      6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      7. Find My iPhone
      8. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • Error : Period dimension 'Period' is missing a Base Time Period member 'Jun' that has been deleted since the last deployment. Base Time Period members cannot be deleted once the dimension is deployed

    HI,
    I am using V11.1.2.2 Hyperion Planning. I am currently getting an error:
    Error : Period dimension 'Period' is missing a Base Time Period member 'Jun' that has been deleted since the last deployment. Base Time Period members cannot be deleted once the dimension is deployed
    This is what i got when i tried to add alternate hierarchy to my shared dimension. I tried to delete it and it messed up.
    NOw it wont deploy my application.
    Can any one suggest.
    Thanks in advance
    Cheers,
    XXX

    EPMA!!!!! EPMA!!!!
    I'm playing around with it to write a blog post and it is crazy. Only possible workaround (till now i'm not able to figure out a solution to it) is to copy the application and deploy it as a new one. Take copy of all objects (forms, tasklist etc). Delete the corrupted application and rename the new one to old.
    Regards
    Celvin
    http://www.orahyplabs.com

  • "weather has been running in the background"

    My iPad said "weather has been running in the background," but las I checked iPad didn't come with the "weather" app. What's the deal?

    Jeanette,
    Thereu2019s another possibility if Tedu2019s suggestion doesnu2019t work. When you look at your spool requests, thereu2019s an icon on the toolbar next to the eyeglasses that looks like a yellow rectangular callout. Itu2019s called u201CDisplay in Maximum Widthu201D. Select the Spool no. to display and then press this icon. Shift + F4 is the shortcut.
    Regards,
    Howard

  • HT204306 How can I get my old password back after I have changed it? I cannot change it back because it has been used in the last year

    how can I get my old password back  after I have changed it? I cannot change it back because it has been used in the last year

    HI, thanks, but I know I can set a new password. I just wanted to get my old one back cos I have used it a long time & can therefore remember it.

  • CAN SOMEONE PLEASE HELP ME? I HAVE BEEN TRYING TO RESTORE MY IPHONE FOR THE LAST 6 HOURS AND EVERYTHING GOES THROUGH OK UNTIL IT GETS TO THE RESTORING IPHONE SOFTWARE, IT LOADS 1/2 THEN FREEZES. IVE LEFT IT LIKE THAT FOR AT 30MINS AND NOTHING HAPPENS. IVE

    HI THERE,
    CAN SOMEONE PLEASE HELP ME? I HAVE BEEN TRYING TO RESTORE MY IPHONE4 FROM IOS 4.3.3 TO 5.1.1 FOR THE LAST 6 HOURS AND EVERYTHING GOES THROUGH OK UNTIL IT GETS TO THE RESTORING IPHONE SOFTWARE, IT LOADS 1/2 THEN FREEZES. IVE LEFT IT LIKE THAT FOR AT 30MINS AND NOTHING HAPPENS. IVE TAKEN THE CORD OUT AND HAD TO TURN PHONE OFF AND RESTART, THEN LOAD IT BACK UP TO ITUNES ALL OVER AGAIN. MANY TIMES!!!!! IVE CHANGED CORD AND USB STILL NOTHING? IVE GOTTEN TO THE POINT WHERE I MAY HAVE RUINED IT ALTOGETHER AND NEED TO BUY A NEW PHONE? PLEASE I HOPE SOMEONE OUT THERE CAN HELP?:
    MANY THANKS

    You may not get a response as you are shouting at everyone.
    All caps indicates shouting, is considered rude, and is difficult to read.
    Many will not read such posts.
    Try turning off you caps lock and asking again.

  • After ios 8.02 update iCloud Drive is stuck in a loop that reads "upgrading" with a spinning wheel spokes for the last 48 hours.

    After ios 8.02 update iCloud Drive is stuck in a loop that reads "upgrading" with a spinning wheel spokes for the last 48 hours.

    There's a solution posted here that may work for you: iCloud Drive won't stop upgrading.

  • My computer keeps restarting itself for the last two hours and i don't know what to do. Please help me

    I need help, my MacBook Pro keeps restarting itself for the last two hours saying there's a problem. I can't get past the grey screen without it restarting and i don't know what to do...please help me

    Reinstall Lion, Mountain Lion, or Mavericks
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and
         after the chime press and hold down the OPTION key until the boot manager screen appears.
         Select the Recovery HD and click on the downward pointing arrow button.
         Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu.
         Repair the Hard Drive and Permissions as follows.
    After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
         Reinstall Lion/Mountain Lion, Mavericks: Select ReinstallLion/Mountain Lion, Mavericks from
         the Utilities menu, and click on the Continue button.
         Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is
                    three times faster than wireless.

Maybe you are looking for

  • LR4 doesn't import video files .avi and cannot playback

    Hello, I have a big issue with my brand new Lightroom 4. I've been working on my updated catalog (from LR3) very well, since I tried to import fotos and videos from my second camera (olympus E-PL1). This "old" catalog contains RAW files (NEF and ORF)

  • APEX 3.0 PDF FOP OC4J REPORT: how to put a variable in the header or footer

    hello. I want to put a variable ( like :P15_MY_PARAMETER) in the header OR footer of a standard PDF report , but does'nt work. I tried HTML formating with ' &P15_MY_PARAMETER. ' like described in the thread Include a display value in HTML footer ( In

  • Connecting to an LG BD370

    Here's what I have: an Airport Express and the BD370 Blu-Ray player, which I'd like to connect to the internet for Netflix streaming, but is not wireless. What are my options here? Do I have to purchase a new router with available ports? Any help wou

  • Vendor Master Name 3 Name 4 field

    Hello Experts:       I am trying to access field Name 3 ,Name 4  in vendor master ,its set up is done as Optional in screen selection variant. But when I go to XK03 field i can can't see this field I can only see Name 1 and Name 2 field.Please let me

  • Auditing, Fine Grained Access, Data Vault or Triggers on Updates/Deletes ?

    I would like to track changes on two separate tables whenever there are any changes, or deletes made to these tables. The tracking would be ..... Values in the table Before and After any change has been made. The APEX User who made the change. The DT