Query takes very long time and analyze table hangs

Hi
One of the oracle query taking very long time (ie more than a day) and affecting business requirment of getting the report in time.
I tried to analyze the table with compute statistics option, however it hangs/runs forever on one of the huge table?
Please let me know how to troubleshoot this issue

Hi,
What's your Oracle version?
You should use DBMS_STATS package not ANALYZE..
Regards,

Similar Messages

  • My os x mavericks got crashed accidentely while installing the windows 8 and I am trying to reinstall using recovery console, but its take very long time and forcing me to download OS X 8 from internet, is there any where can I get offline download of OS.

    My os x mavericks got crashed accidentely while installing the windows 8 and I am trying to reinstall using recovery console, but its take very long time and forcing me to download OS X mountain lion from internet, is there any where can I get offline download of OS file where I can install directely OS X Mavericks.

    Hi, original poster here. I did not realize this would generate more discussion so I never checked back. I still had my warranty, so I took it to the store and got it repaired. The original problem I had was a screen with this icon flashing when I attempted to boot it up:
    When I took it to the store, they told me that my computer was unable to communicate with the hard drive. I had this same problem three times in two months where this screen reappeared. Each time I went back to the store and they said the cause was different, but they were all hardware issues that physically made it impossible to communicate with the hard drive. After the third time, they simply replaced my laptop and I haven't had the same problem.
    So in short: The reason you can't reinstall or move anything when you encounter this screen appears to be because nothing can communicate with the hard drive in the first place. You can't reach the disk or anything on it. So I don't believe it's possible to do anything besides take it to a physical store and have it fixed.

  • Query takes a long time on EBAN table

    Hi,
    I am trying to execute a simple select statement on EBAN table. This query takes unexpectionally longer time to execute.
    Query is :
    SELECT banfn bnfpo ernam badat ebeln ebelp
          INTO TABLE gt_eban
          FROM eban FOR ALL ENTRIES IN gt_ekko_ekpo
          WHERE
          banfn IN s_banfn AND
          ernam IN s_ernam
          and ebeln = gt_ekko_ekpo-ebeln AND
          ebelp = gt_ekko_ekpo-ebelp.
    Structure of gt_ekko_ekpo
    TYPES : BEGIN OF ty_ekko_ekpo,
            ebeln TYPE ekko-ebeln,
            ebelp TYPE ekpo-ebelp,
            bukrs TYPE ekko-bukrs,
            aedat TYPE ekko-aedat,
            lifnr TYPE ekko-lifnr,
            ekorg TYPE ekko-ekorg,
            ekgrp TYPE ekko-ekgrp,
            waers TYPE ekko-waers,
            bedat TYPE ekko-bedat,
            otb_value TYPE ekko-otb_value,
            otb_res_value TYPE ekko-otb_res_value,
            matnr TYPE ekpo-matnr,
            werks TYPE ekpo-werks,
            matkl TYPE ekpo-matkl,
            elikz TYPE ekpo-elikz,
            wepos TYPE ekpo-wepos,
            emlif TYPE ekpo-emlif,
      END OF ty_ekko_ekpo.
    Structure of GT_EBAN
    TYPES : BEGIN OF ty_eban,
      banfn TYPE eban-banfn,
      bnfpo TYPE eban-bnfpo,
      ernam TYPE eban-ernam,
      badat TYPE eban-badat,
      ebeln TYPE eban-ebeln,
      ebelp TYPE eban-ebelp,
      END OF ty_eban.
    Query seems to be OK to me. But still am not able to figure out the reason for this performance issue.
    Please provide your inputs.
    Thanks.
    Richa

    Hi Richa,
    Maybe you are executing the query with S_BANFN empty. Still based on the note 191492 you should change your query on like the following
    1st Suggestion:
    if gt_ekko_ekpo[] is not initial.
    SELECT banfn banfpo       INTO TABLE gt_eket
          FROM eket FOR ALL ENTRIES IN gt_ekko_ekpo
          WHERE
         ebeln = gt_ekko_ekpo-ebeln AND
          ebelp = gt_ekko_ekpo-ebelp.
    if sy-subrc = 0.
    delete gt_eket where banfn not in s_banfn.
    if gt_eket[] is not initial
    SELECT banfn bnfpo ernam badat ebeln ebelp
          INTO TABLE gt_eban
          FROM eban FOR ALL ENTRIES IN gt_eket
          WHERE
          banfn = gt_eket-banfn
         and  banfpo = gt_eket-banfpo.
    if sy-subrc = 0.
      delete gt_eban where ernam not in s_ernam.
    endif.
    endif.
    endif.
    endif.
    2nd Suggestion:
    if gt_ekko_ekpo[] is not initial.
    SELECT banfn banfpo       INTO TABLE gt_eket
          FROM eket FOR ALL ENTRIES IN gt_ekko_ekpo
          WHERE
         ebeln = gt_ekko_ekpo-ebeln AND
          ebelp = gt_ekko_ekpo-ebelp.
    if sy-subrc = 0.
    delete gt_eket where banfn not in s_banfn.
    if gt_eket[] is not initial
    SELECT banfn bnfpo ernam badat ebeln ebelp
          INTO TABLE gt_eban
          FROM eban FOR ALL ENTRIES IN gt_eket
          WHERE
          banfn = gt_eket-banfn
         and  banfpo = gt_eket-banfpo
         and ernam in s_ernam.
    endif.
    endif.
    endif.
    Hope this helps.
    Regards,
    R

  • KE30 Report:-Takes very long time and ends in a Run time error

    Hi Expert,
    Since last three  week (after up gradation of system) we are not able to run any of KE30 reports in Production system and its end with Run Time Error. Even in development system where data is minimum it is taking 45 Minutes to give output where it should take maximum 4-5 Minute. Before up gradation it was working fine
    What could be the reason for this and how can i resolve this.
    Thanks in Advance
    Bipin Tiwari

    HI Sridhara
    Thanks for quick response. After Up Gradation we ran SGEN T-code but no impact on system performance. There after we build new summarisation level in KEDVP (system proposed) and activated it but still it is taking 30-.35 minute to generate the report in Development system which should normaly take 1-2 Munite.
    Can you suggest what else we can do or is there any better way for build summarisation level  in given scenario.
    Best Regards
    Bipin Tiwari

  • Time machine takes very long time and does not finish the backup

    Hi,
    Time machine is unable to backup my 2014 Mackbook Air 128 GB Drive anymore.
    I have tried numerously to initiate a backup but it could only backup a very small volume, less than 1KB, then stall for hours without any progress.
    I tries to repair my volume, using the Disk Utility, but it still does not backup, except for the 1K progress.
    I have noticed that "Spot Light" indexing is also taking forever.  It has been indexing for days without any pogress.
    What is going on.
    What should I do to fix it.
    My latest successful backup was on Jul 25.
    Please help.
    Thanks.
    Tareq

    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    In the top right corner of the Console window, there's a search box labeled Filter. Initially the words "String Matching" are shown in that box. Enter the word "Starting" (without the quotes.) You should now see log messages with the words "Starting * backup," where * represents any of the words "automatic," "manual," or "standard."
    Each message in the log begins with the date and time when it was entered. Note the timestamp of the last "Starting" message that corresponds to the beginning of an an abnormal backup. Now
    CLEAR THE WORD "Starting" FROM THE TEXT FIELD
    so that all messages are showing, and scroll back in the log to the time you noted. Select the messages timestamped from then until the end of the backup, or the end of the log if that's not clear. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    ☞ If all you see are messages that contain the word "Starting," you didn't clear the text field.
    ☞ The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. Don't post more than is requested.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.

  • I have an old iPod Classic that still works fine but it is having difficulty establishing a connection to my computer.  It will make an incomplete connection but it takes a long time and the computer hangs up until the connection is made. iTunes can't see

    I have an old iPod Classic.  It still plays the music on it out of either port.  It is having trouble connecting to my Windows 7 (64bit) computer.   It takes about 30 seconds or more to connect and hangs the computer until it does.  Even though it shows up in connected USB devices and in Windows explorer it doesn't seem right.  Sometimes it does not make a connection and when it does make a connection iTunes cannot detect it, even though iTunes sometimes automatically launches when I plug in the iPod.  I've tried two different sets of cables with the same results.

    Check the iPod Hardisk health with the iPod  Disk Diagnostic, as posted by tt2
    https://discussions.apple.com/message/17776595#17776595
    It wont fix your problem, but may tell help troubleshoot, why it is freezing iTunes, especially when the Pending and Realloc numbers are high.
    have a nice day!

  • Firefox takes very long time to open and often crashes for some websites

    i have used firefox 3.6 with windows xp, vista and now windows 7. there is same problem i am facing at all after well usage of week. firefox takes very long time to open approx. 1 minute at first click. after refreshing computer when i click again, it becomes ready to use but meanwhile you re working firefox opens in another window perhaps for the first click. what is this please? i have reinstalled firefox but it is not fixing problem
    == Troubleshooting information ==
    how can firefox be ready for use at first click?

    Open Activity Monitor and kill this process - rapportd.
    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the 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.
    Reinstalling OS X Without Erasing the Drive
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility 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 Disk Utility and return to the main menu.
    Reinstall OS X: Select Reinstall OS X 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.
    Alternatively, see:
    Reinstall OS X Without Erasing the Drive
    Choose the version you have installed now:
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • Portege R100: FDISK and HDD format takes very long time

    I have Portege R100 and when I tried to run FDISK it take very long time to Create a DOS partion.
    After running FDISK I tried to do FORMAT the HD and is taking more than 6 hours to Format hard drive.
    After Format I tried to Load Win XP but it system just hanged with message Loading files...
    Could some one hep me out

    it's a known problem that FDisk cannot cope with the 1.8" hd in your R100
    Use the method described in this thread and you will succeed :
    http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=19232

  • Query takes a long time

    Hi,
    I have a simple query that takes a long time and sometimes hangs. I want to know if there are any orders that were shipped but are not in the ra_interface_lines_all table for one reason or another. The query is
    select source_header_number from wsh_delivery_details
    where inv_interfaced_flag = 'Y'
    and released_status = 'C'
    and oe_interfaced_flag = 'Y'
    and creation_date > 'DD-MON=YYYY'
    and source_header_number not in (select interface_line_attribute1 from
    ra_interface_lines_all
    where ship_date_actual >'DD-MON-YYYY')
    Thanks
    A/A

    Follow the thread posted to generate an execution plan. Ideally you run your statement with SQL tracing enabled and run the tkprof utility on the trace file generated as outlined in the thread.
    Without further information it's just guess-work. And by the way, as already mentioned, use the TO_DATE function for DATE type literals or use the ANSI DATE literal format: DATE 'YYYY-MM-DD', otherwise you are depending on the NLS settings of the client executing the query. So:
    Could you please post an properly formatted explain plan output using DBMS_XPLAN.DISPLAY including the "Predicate Information" section below the plan to provide more details regarding your statement. Please use the \[code\] and \[code\] tags to enhance readability of the output provided:
    In SQL*Plus:
    SET LINESIZE 130
    EXPLAIN PLAN FOR <your statement>;
    SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);Note that the package DBMS_XPLAN.DISPLAY is only available from 9i on.
    In previous versions you could run the following in SQL*Plus (on the server) instead:
    @?/rdbms/admin/utlxplsA different approach in SQL*Plus:
    SET AUTOTRACE ON EXPLAIN
    <run your statement>;will also show the execution plan.
    In order to get a better understanding where your statement spends the time you might want to turn on SQL trace as described here:
    [When your query takes too long|http://forums.oracle.com/forums/thread.jspa?threadID=501834]
    and post the "tkprof" output here, too.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/
    Edited by: Randolf Geist on Sep 23, 2008 4:08 PM
    Added DATE type caveat

  • Sql Query taking very long time to complete

    Hi All,
    DB:oracle 9i R2
    OS:sun solaris 8
    Below is the Sql Query taking very long time to complete
    Could any one help me out regarding this.
    SELECT MAX (md1.ID) ID, md1.request_id, md1.jlpp_transaction_id,
    md1.transaction_version
    FROM transaction_data_arc md1
    WHERE md1.transaction_name = :b2
    AND md1.transaction_type = 'REQUEST'
    AND md1.message_type_code = :b1
    AND NOT EXISTS (
    SELECT NULL
    FROM transaction_data_arc tdar2
    WHERE tdar2.request_id = md1.request_id
    AND tdar2.jlpp_transaction_id != md1.jlpp_transaction_id
    AND tdar2.ID > md1.ID)
    GROUP BY md1.request_id,
    md1.jlpp_transaction_id,
    md1.transaction_version
    Any alternate query to get the same results?
    kindly let me know if any one knows.
    regards,
    kk.
    Edited by: kk001 on Apr 27, 2011 11:23 AM

    Dear
    /* Formatted on 2011/04/27 08:32 (Formatter Plus v4.8.8) */
    SELECT   MAX (md1.ID) ID, md1.request_id, md1.jlpp_transaction_id,
             md1.transaction_version
        FROM transaction_data_arc md1
       WHERE md1.transaction_name = :b2
         AND md1.transaction_type = 'REQUEST'
         AND md1.message_type_code = :b1
         AND NOT EXISTS (
                SELECT NULL
                  FROM transaction_data_arc tdar2
                 WHERE tdar2.request_id = md1.request_id
                   AND tdar2.jlpp_transaction_id != md1.jlpp_transaction_id
                   AND tdar2.ID > md1.ID)
    GROUP BY md1.request_id
            ,md1.jlpp_transaction_id
            ,md1.transaction_versionCould you please post here :
    (a) the available indexes on transaction_data_arc table
    (b) the description of transaction_data_arc table
    (c) and the formatted explain plan you will get after executing the query and issuing:
    select * from table (dbms_xplan.display_cursor);Hope this helps
    Mohamed Houri

  • My mac air died, after i reinstall from dvd drive, when i boot up again, i saw a prohibit sign showing up on the screen, then get to my logon screen.  After logon, it takes very long time to load any application.  pls help

    my mac air died, after i reinstall from dvd drive, when i boot up again, i saw a prohibit sign showing up on the screen, then get to my logon screen.  After logon, it takes very long time to load any application.  pls help

    OK. If you believe that.
    When the disk is starting to die it can be bad for a moment and then be good for a while. If there was no problem while you were checking it of course it shows up good.
    I tell you those are the signs of a disk that is about to die.
    Allan

  • Crystal report with prompts takes very long time to open in infoview BOXI3.

    Crystal report with prompts takes very long time to open in infoview BOXI3.1?
    Is there any way to increase the performance.

    Ramsudhakar,
    There are several items that could cause these slow down problems. Without knowing more about the way your environment is setup, I could cause more problems, by giving out performance tips. You would need to be more specific in your post.
    What we know. BOXI3.1
    What we don't know.
    O/S
    App. Server
    Hardware Spec's
    ETC.
    I see that this post has been out here for some time. So if this is still a problem for you I'll try and help, if you provide more information.
    Thanks
    Bill

  • Creation of Transfer Order takes a long time and finally throws spool error

    Hi,
    I create Sales Order of type OR. I do delivery successfully. But when i proceed to create Transfer Order, it takes painfully long time and finally after painful 30 mins or so, it throws a error message, 'Error in spool call' with a blank page. I click on save icon and transfer order is created.
    But the creation takes very long time. I checked SP01 and there are no requests.
    Any suggestions will be rewarded.
    Regards,
    Mangesh

    Dear,
              Kindly contact your Basis team it will help you.
             After error please take the screen short of SU53 and give to basis team.
    May be it will help you.
    Regards,
    Sandip

  • Retrieving free/busy information from the server takes very long time

    Hello, we are running Outlook 2010 32-bit in Windows 7 64.bit, and  have encountered a strange problem, whenever we want to book
    a resource (i.e. conference room) from Scheduling assistant, it takes very long time, sometimes even more than a minute to see the utilization of the room, it being stuck at "Updating schedule information. Retrieving free/busy information from the server"
    The interesting thing is that most newly deployed PCs exhibits this same behavior, while older machines with basically the same setup gets the availability information almost immediately.
    It is unclear whether this is a server setting or desktop issue, as all new Windows 7/Outlook machines that are deployed from the WDS-server exhibits the same slow behavior.
    Please advise any troubleshooting steps to investigate the very slow retrieval lookup of free/busy information from the Exchange server.

    Hi,
    Does this issue occur on OWA?
    If no, it means the issue is mainly related to the Outlook client.
    Regards,
    Simon Wu
    TechNet Community Support

  • Time machine takes very long time

    Time machine takes very long time to write the back up.
    For writing 2,33 GB (from 26,33GB) it takes abou14 hours and I don't know, why it is so very slow. I work with USB 3.0 2 TB external hard disk drive.

    Try Here  >  http://pondini.org/TM/D2.html
    From Here  >  http://pondini.org/TM/Troubleshooting.html

Maybe you are looking for

  • Urgent : pROBLEM IN CONDITIONS in smart forms

    Hello abapers I am giving condition for displaying of a text in smart form . the text is in secondary window. Previously I have given 3 conditions as var1 = value or val2 = value or val3 = value. but now when i am adding 4th condition i am getting wr

  • Serious bugs in the SR400 gated photon counter LabVIEW drivers

    Hi I am developing an application with SR400 and came across what I think is a bug in the LabVIEW driver. Essentially, none of the VI's allow you to set the preset counters. For instance, if you call Read VI and choose mode A, B for preset T, there i

  • ITunes 7.7.1    Outlook Sync solution?

    I just did an Mac software update and noticed itunes 7.7.1 download. Has anyone with Win XP found it and if so does it solve the Outlook Sync Client failure problem with iPhone 2.0?

  • IPad - computer is not authorised error

    Purchased 3 series of the same program from Itunes.  Series 1 copied but series 2 & 3 won't copy to ipad 1, error message is that the computer is not authorised.  Had the same problem with the apple tv and had to buy a tv show from the apple TV to so

  • Need 64 bit test for Win7/Vista

    I develop application which is required to be 64 bit and it hosts IWebBrowser - so   is also 64 bit. when I load html page to this control which contains flash, of cause I get problems, as there is no flash 64 bit activex. There is, however one solut