Follow the progress of the request

I ran an explain on a SQL and it indicates the cost of the query to be 20 k, but when I run the query it will running forever (I killed him after 30 minutes). I have an another SQL which cost shows up even 20 K and it ends with a 10secs.

I ran a trace on it and sees it under its weight tons of IOs and there are several sequential db awaits.

1. what could be the reason for the query1 to run for so long when the cost is not high.
2. is it possible to identify what stage a query is running, I mean how to identify what stage of the explain command the query executes now? I want to know which part of the query is the database currently running.
3. I do not see anything in v$ session_longops for this sql where to follow the progress of this race.
4. is there a way or a tool that will give me the list of all the tables that use a particular query. There are some views used in queries, which in turn are based on other points of view. So I want to find the list of all tables for a given query, so that I can find if the stats are outdated for one of them who may cause the query to execute forever.

Help, please...

Thank you

Hello

If you're on 11g, use the SQL monitor, it will answer all your questions.

If you're not, look at V$ SESSION_LONGOPS, if there is no current longops associated with this request, try to look carefully at the db file sequential reads - watch the parameters of this event and discover what index is playing. Then look at the stats index and table for this index see if they updated and representative and look at the query predicates and estimates of cardinality for this part of the request.

Best regards
Nikolai

Tags: Database

Similar Questions

  • Firefox has detected that the server redirects the request for this address in a way that will never end. I followed your instructions and nothing works. This just started happening today.

    I was watching www.ustream.tv/decoraheagles for months. I started using Firefox about a month ago. Earlier today, when I tried connecting to the site, I received the message "Firefox has detected that the server redirects the request for this address in a way that will never end."
    I went on your site and follow the instructions. This Web site was not in the blocked sites. He told me how to add it, and I did.
    She still refuses to open this site.
    Internet Explorer WILL open this site.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".
  • Using Firefox 4 and Windows 7. Whenever I have to start Firefox from a shortcut to a Web site, what happens with the following error "there was a problem sending the command to the program". The requested site is loaded after that. without any problem.

    Using Firefox 4 and Windows 7. Whenever I have to start Firefox from a shortcut to a Web site, what happens with the following error "there was a problem sending the command to the program". The requested site is loaded after that. without any problem.

    If a shortcut is used while Firefox is already open the error will not occur.

    For me, the problem was the FoxClock extension. Once I disabled it, the problem was gone.

    Hope this helps.

    Olivier

  • The backup has failed. An error has occurred. The following information can help you resolve the error: the request has been aborted. (0x80099704D3)

    Hello, I am running Windows Vista Home Premium and trying to make Windows backup on DVD, I was able to cross 5 DVDs then it asked me to insert the DVD successfully n ° 6 I did and he never finished and I got this error:

    The backup has failed. An error has occurred. The following information can help you resolve the error: the request has been aborted. (0x80099704D3)

    The DVD I have are DVD so I can't rewrite over and over again. Can I somehow he pick up where it left off to complete my backup?

    Help! Thank you

    Lisa

    Hello

    -No, I don't have third-party backup programs installed.
    -J' tried using another disk backup, but it started it count once again as "disk 1" yet I had left off to "drive 6"and I couldn't tell if he has taken over where I left off or starting on even once, I don't want to do because I can't rewrite on my DVD. , because they are disposable.
    Because I needed to achieve this, I advanced and bought more DVD and will continue to backup even if I do not know where she had stopped. I think I can say that it not continue starting above and to the right.
    I think that the problem might have been that DVD #6 was bad, as he had a scratch on her, even if it was new out of the envelope.
    Software AV is not the issue, I am able to do backup, I wanted to just be able to pick up where I left off, as opposed to duty again since the beginning of my documents again. I just wish that Windows backup has been a little easier to use, in particular the fact that it is not "tag" my files to show who we are it is already saved, just like other software, (ex Mozy), which is very useful. And be able to choose what files I need backup rather than being limited to simply choose the 'file type '...
  • Request to follow the news of the licensee and the Butler

    Hi all

    I framed the next to get the trainer info and owner request.

    I intend to use this query in an email generated automatically, running every 15 minutes

    I put an outer join on the door because the DML holder could have finished running (v$ sqlarea wouldn't have info on this support DML) to when the configuration of automatic e-mail triggered this request

    I'm not a dba, and was worried if there is an error in the logic of my application.

    I also expected to join v$ sql_bind_capture using sql_hash_value and sql_address just the way in which I joined v$ sqlarea

    Looking forward to your kind help to check the query below

    Select distinct waiting_session,
    dba_waiters.holding_session,
    Decode (to_char (session_waiting_info. "" STATE), "0","Butler is currently awaiting ', '-2 ', ' time-out time last server is unknown ', '-1', 'boy waited for a short while', 'boy waited a long time')"standby servers,"
    Decode (session_waiting_info. Wait_time, 0, "waiting boy") ' servers last time-out. "
    Decode (to_char (session_holding_info. (D'ÉTAT), '0',' the owner is currently on hold ", '-2 ', ' time-out time last owner is unknown ', '-1', 'holder' waited for a short period, 'holder waiting a long time') 'holders of Eve ', '.
    Decode (session_holding_info. Wait_time, 0, "waiting boy") "holders last time-out."
    sql_waiting_info.sql_text "the request of the boy."
    sql_holding_info.sql_text "the request of the holder,"
    session_waiting_info. STATUS "pending STATUS".
    session_holding_info. STATUS "with the STATUS."
    session_waiting_info. Process 'process of waiting. "
    session_waiting_info. PROGRAM "PROGRAM on hold."
    session_holding_info. Process 'operating processes.
    session_holding_info. PROGRAM "PROGRAM on hold."
    session_waiting_info. ROW_WAIT_OBJ # 'object of waiting. "
    session_waiting_info. ROW_WAIT_ROW # 'waiting line. "
    session_holding_info. ROW_WAIT_OBJ # 'object of exploitation. "
    session_holding_info. ROW_WAIT_ROW # 'line held. "
    session_waiting_info. BLOCKING_SESSION_STATUS "waiting for the session state."
    session_holding_info. BLOCKING_SESSION_STATUS "having the status of session."
    session_waiting_info. "Use os username", UserName
    session_holding_info. UserName "expectation os username."
    session_waiting_info. MACHINE "MACHINE waiting."
    session_waiting_info. TERMINAL "TERMINAL on hold."
    session_holding_info. MACHINE 'MACHINE operating. "
    session_holding_info. TERMINAL "TERMINAL operations."
    session_waiting_info. TYPE "Wait TYPE"
    session_holding_info. TYPE "operation TYPE".
    of dba_waiters,.
    v$ session session_holding_info,.
    v$ session session_waiting_info,.
    v$ sqlarea sql_waiting_info,.
    v$ sqlarea sql_holding_info
    Where dba_waiters.waiting_Session = session_waiting_info.sid
    and dba_waiters.holding_Session = session_holding_info.sid
    And session_waiting_info.sql_hash_value = sql_waiting_info.hash_value
    And session_waiting_info.sql_address = sql_waiting_info.address
    and session_holding_info.sql_hash_value = sql_holding_info.hash_value (+)
    And session_holding_info.sql_address = sql_holding_info.address (+)
    and dba_waiters.mode_held 'None '.

    Kind regards
    Vishal
  • On closure of my MacBook Pro always get question "continue application"? with the boxes option to cancel or continue the request.

    On my Mac Book Pro to always stop get question "continue application"? with the boxes option to cancel or continue the request.

    Selection of abandonment does not prevent the following message appears when closing next down.

    Activity monitor shows all the applications that you have

    installed, running in the background? Something can be...

    If you open the force quit, are there topics other than the Finder

    and maybe a browser?

    You repaired the disk from disk utility permissions lately?

    We could also see other boot options on the use in

    Recovery of OS X to use the "OS X Utilities" in there. Be careful.

    Is there more than one user account on your computer? If you

    Start in another user account and have auto login for

    the fact that it is one that rises at the start, a piece

    similar issues or is it just works fine on shut down?

    The question may take some trial and error troubleshooting. This

    may include some basic startup keyboard shortcuts for

    the computer to start in Safe Mode, to do more test, etc.

    If you have access to an official Apple store, you can be

    able to set up an engineering appointment & have someone closer.

    Good luck anyway...

  • How to add steps before job Auto resources to the request referred to in the annex to the Auto

    I hope that I can describe my question clearly for you.

    My sequence is something like the following:

    It is a simple sequence.

    Test # 2 is faster that 1 Test so that it usually leads to test 1 is occupied by a testsocket and expected by the other testsocket.

    However, the process of loan (10 seconds) is independent of the resource, and it's too long.

    My question is... can I do the lending market (10 seconds) when the Test 1 is occupied by other testsocket?

    The step of resources at the request of uto use A contains an array of resource Expressions.  The idea behind this is that you have 2 instruments on your BENCH that are the same.  In this way, the test may choose to use one or the other and still accomplish his goal.  So what happens is that if you don't have only one resource, then any thread gets there first takes the resource and locks.  Other threads cannot enter this article until at least one resource is available.  So if you dynamically add resources then you can allow other threads in this article.

    You can consider making a step in the Routine 2 which adds a resource to the Routine 1.  In this way, they won't all get routine 1 front 2 routine.

    I think that to get the desired behavior, you're going to need to do some manipulation of dynamic resource expression.

    Kind regards

  • I want to create the user in the direct areas but I found thi message: the requested account name is already in use.

    Over the period of re - use the account in the domains.live

    I want to create the user in the direct areas but I found thi message

    The requested account name is already in use or has been used in the past and has not been through the waiting period required of re - use.

    Can you help me

    Hi, Ahmed.

    It seems that the domain name you have selected is not available (or has already been used and it is found that the previous owner of the domain has used the same user name as an account).  In any case we can not help you here.  You need help from domain.live.

    Please go to http://help.live.com/help.aspx?project=domains&market=en-us&querytype=keyword&query=SNIAMODTUOBA&tmt=&domain=domains.live.com&format=b1 and down, click on support and follow the prompts to get help.  Although it is technically to the implementation of the field, I'm sure that your application will be either still answered or they will direct you to the proper location for assistance.

    In addition, you can try http://windowslivehelp.com/product.aspx?productid=25 for help Windows Live Administration.  If you can not find help with solutions validated or by performing a search, try posting in the forums.  I suggest the following for the problem that you specified: http://windowslivehelp.com/forums.aspx?forumid=7e6f04c0-6a48-4719-98f4-a9729d34c76e.

    I hope this helps.

    Good luck!

  • Family safety has blocked me and said the requested page does not exist, moved or is temp down.

    Original title: parental control

    Family safety has blocked me and said the requested page does not exist, moved or is temp down. Help me!!

    Hello April,

    Thank you for the information. For us to better visualize your main concern, please provide a screenshot of the message/code that you receive when you click on the family within your computer settings. To take a screenshot, you can follow the steps in the link/s below:

    I got a private message where you can securely download the screenshots. After downloading, please respond to this public thread for us to be warned.

    Visit us for your answer.

    Thank you.

  • my ipod not synce with my pc, says the requested file is not found

    I download music from itunes, couldn't remember my password had change. So I did then downloaded music, when I tried to sync it locked up my computer and would never sync. I can listen to music on my pc, but cannot get it on the ipod.

    Hi MarkWebb,

    You can follow the steps in these links and check if the problem persists:

    iPod cannot be synced.  Required folder cannot be found.

    "Requested file is not found."

    Hope the helps of information.
    Please post back and we do know.

  • Windows Update has encountered an error and cannot display the requested...

    I tried Windows Update and got the answer "Windows Update has encountered an error and cannot display the request... »

    Hello

    (1) what is the description which are impossible to install updates?

    I suggest to follow the steps provided and check if it helps.

    You receive an error message "Windows Update has encountered an error and cannot display the requested page" when you try to install an update: http://support.microsoft.com/kb/883614

    Hope this information is useful.

  • Windows ip configuration is an internal error: the request is not supported

    I cleaned up a few viruses out of a Windows XP Professional computer to a customer, and now he can't go on the internet.  When I check ipconfig, I get the following error.

    Windows IP configuration
    An internal error has occurred: the request is not supported.
    Contact Microsoft technical support for more help.
    additional information: host name of request impossible.
    So I googled some results. Have replaced the TCPIP.sys file with one from another computer, I still get the same message.  I don't have a windows XP original disk to put it into recovery mode.
    I also ran the command "netsh int ip resetlog.txt" but which did not help either.  I saw on another blog.
    The NIC is to see that there is a power cable plugged into it as well.  Help, please!
    Thank you
    Trever

    Hello Trever,

    Follow the methods and check:

    Method 1: You can refer the following Microsoft Knowledge Base article and check.

    "Error 1068" error message when you try to enable Internet connection sharing

    http://support.Microsoft.com/kb/827328

    Method 2: Try the SFC (System File Checker) scan on the computer.

    To run the System File Checker tool, follow these steps:

    a. click Start and click run, then type cmd in the box start the search.

    b. right click on cmd in the list programs, and then click run as administrator.

    c. If you are prompted for an administrator password or a confirmation, type your password or click on continue

    d. at the command prompt, the following line and press ENTER:

    sfc/scannow

    For more information, see the article:

     

    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)

    http://support.Microsoft.com/kb/310747

     

    File system (CFS) Checker

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/system_file_checker.mspx?mfr=true

    Let us know if that helps.

  • When trying to update Windows XP get error: "the requested key loockup not found in any active activation context.

    I have Windows XP home edition 2002 and I try to update this software online and yet whenever I have it try, it gives me this message "the requested loockup key was not found in any active activation context.

    Please let me know what this means and what I can do in response to the update.
    Thank you

    Original title: need help to update my Window XP 2002

    Hello, Mariel,.

    There are several discussions on the issue-

    Step 1: uninstall Internet Explorer 7 and check whether the problem is resolved.

    http://support.Microsoft.com/kb/927177/en-us

    Step 2 : repair Internet Explorer 6 by using the System File Checker in Windows XP.

    If you already have Windows XP Service Pack 2 installed, and you do not want to install Internet Explorer 8, you may be able to resolve problems with Internet Explorer 6 by running the System File Checker.

    To run the System File Checker, follow these steps:

    1. Click Start, click Run type sfc/scannow, and then press ENTER.

    2 follow the prompts throughout the System File Checker process.

    3. restart the computer when System File Checker process is complete.

    You can also check out the link below.

    http://support.Microsoft.com/kb/318378

    http://answers.Microsoft.com/en-us/IE/Forum/IE8-windows_other/the-requested-lookup-key-was-not-found-in-any/5fd9fcf1-CAC4-411e-a66a-8f19d8b73586

    Good luck!

  • When you send an e-mail using Outlook Express, I immediately get this message; "Some errors occurred while processing the requested tasks. Please see the list of errors below for more details"

    When you send an e-mail using Outlook Express, I immediately get this message; "Some errors occurred while processing the requested tasks. Please see the list of errors below for more details". Unfortunately, there are no errors listed below and the green bar is frozen on the screen. The message remains in my Outbox and repeated again and again sending. There is absolutely no record and file sent in my sent box. TIA - Ernie

    You have apparent dbx file corruption. A common problem.
     
    Spend most of your messages out of the Inbox and then create new folders to send and sent items box after having moved the messages you want to save to a local folder that you create.
     
    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.
     
    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.
     
    With OE closed, find the DBX files for the items in the Outbox and sent and delete them.  New ones will be created automatically when you open OE.
     
    After you're done, followed by compacting your folders manually while working * off * and do it often.
     
    Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.
     
    General precautions for Outlook Express:
     
    Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.
     
    Information on the maximum size of the .dbx files that are used by Outlook Express:
    http://support.Microsoft.com/?kbid=903095
     
    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3 
     
    Why you don't need your anti-virus to scan your email
    http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm
     
    Note that for some AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck analysis when the option is the result of e-mail messages.
     
    Compact often as specified above.
     
    And backup often.
     
    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx 
  • now, I have no audio device, tried to download the realtek drivers but failed: class installer has refused the request to install or update the device?

    Original title: the class installer has refused the request to install or update the device?

    now I don't have a device audio, reinstalled windows xp with recovery disk, tried to download the realtek drivers but failed.

    Hello

    1. What is the status of the sound card in Device Manager?

    The following article might be useful: no sound in Windows

Maybe you are looking for