get EST for sql without running against PB? possible?

Hello

is there anyway to get a query run time without running on the database? even an estimate would be good... I'm on 10.2.0.3... .i am it might be impossible for... but anyway to get the estimate and more setting autotrace only? as I said, they don't want anything but as an estimate for how long time will it take to complete the query... I know we can see very long_ops but like I said... without running against the DB... .is it possible? as the command explain plan that I have watch time? but is that how long it will take to finish or? /

Select * from table (dbms_xplan.display);
-----------------------------------------------------------------------------   
| Id  | Operation            | Name | Rows  | Bytes | Cost (%CPU)| Time     |   
-----------------------------------------------------------------------------   
|   0 | SELECT STATEMENT     |      |    56 |  3192 |     9   (0)| 00:00:01 |   
|   1 |  MERGE JOIN CARTESIAN|      |    56 |  3192 |     9   (0)| 00:00:01 |   
|   2 |   TABLE ACCESS FULL  | DEPT |     4 |    80 |     3   (0)| 00:00:01 |   
|   3 |   BUFFER SORT        |      |    14 |   518 |     6   (0)| 00:00:01 |   
|   4 |    TABLE ACCESS FULL | EMP  |    14 |   518 |     2   (0)| 00:00:01 |   
-----------------------------------------------------------------------------   

The theory is that 'time' in an explain Plan is an estimate.

However, it is so very dependent on
a. statistical system and correct assessment of the speed of the CPU, SingleBlockReadTime and MultiBlockReadTime
b. table, column, index and estimates appropriate size statistics and the number of blockreads for the execution plan
c. cardinality ("Rows") is estimated at each stage of the particular execution plan

What is, in most cases, the entry "wrongest" is the cardinality estimate and that changes everything.

I would use 'time' in a Plan with the exception of the simplest to explain SQL statements and good statistics on the table (however multi-column predicates can still cause bad cardinality estimates).
Therefore, I would use the estimation of 'Time' almost never.

Tags: Database

Similar Questions

  • trying to get used to sql * more running and creating a simple procedure

    Hello all;

    I'm getting used to sql * more after using for a while using pl/sql developer.

    I am trying to create a simple procedure and run it. See my procedure below
    create or replace procedure test(t in varchar2(200), limit in number(30))
    begin
    select tbl_report.id from tbl_report where tbl_report.id like '|| t ||%' and rownum <= limit;
    end test;
    and then I type in run hr.test ("J", 10); to run this and then press ENTER, and it does nothing. How can I run and create a simple procedure in sql * more

    Hello

    In addition to all the good points, others have done:

    When you issue a SELECT statement in SQL * Plus (or any other front end) two things happen:
    (1) a result set, containing the results of your query, is produced, and
    (2) this result set is displayed.
    Given that these two things are always done together, it is easy to forget that they are two different things.
    In PL/SQL, you must explicitly do something to catch the result set, and you must explicitly do something else to view it (if you want to display it).

    A simple way to get the result set is to use a cursor FOR loop, to extract a line at a time and run code with this line in a record variable (called the country in the example below).
    View the results is to call dbms_output.put_line.

    Here is an example:

    CREATE OR REPLACE PROCEDURE     test
    (       t       IN      VARCHAR2
    ,     lmt      IN     NUMBER          -- LIMIT is an Oracle keyword; best not to use it as a variable name
    )
    IS
    BEGIN
        FOR  country  IN ( SELECT  country_name
                          FROM    hr.countries
                     WHERE   country_name     LIKE t || '%'
                     AND     ROWNUM          <= lmt
                   )
        LOOP
            dbms_output.put_line (  country.country_name
                        || ' = country_name'
                        );
        END LOOP;
    END test;
    /
    SHOW ERRORS
    

    You can use variables, such as t and lmt, in the query without using dynamic SQL, as long as the variables do not have the same names as the columns in the table. In this case, t and lmt are good names; country_name or region_id wouldn't. (In fact, t is a reputable insofar as it cannot be confused with a column in the table of the country. T is not a good reputation in the sense that it does not give much information about what contains the variable, or how it is used. Why not call the variable target_name or name_a_trouver?

    You can run the SQL procedure * more like this:

    SET     SERVEROUTPUT     ON
    
    EXEC  test ('I', 2);
    

    If you issue the SET SERVEROUTPUT ON command, then you will not see the output of dbms_output. You must only issue the command SET SERVEROUTPUT ON once per session, but nothing bad happens if you do it more than once.

    When I ran the procedure as stated above, I got this output:

    Israel = country_name
    India = country_name
    

    Notice that "The Italy" does not appear, because lmt has 2.

    Do not create your own procedures, tables or other objects in the HR schema, or among all the other patterns created by Oracle. Create your own schema and create procedures and other objects in it.

  • Activation of VMware FT for SQL DB

    Hi people,

    Y at - there any recommendation on activation FT VMware for SQL server running the database of vCenter. Currently in our infra we have allocated 2 vCPU but I've never seen use beyond 10%. If I plan to reduce the vCPU 1 and activate separate SQL running in VM pi outside vCenter and SRM.

    --

    Thank you

    Hari

    decommissioning of 1vCPU for pi is one of the option, please keep in mind that even if it's 10% on average, try to look here and see if he never used more than 1vCPU. Another is that you are good to go...

  • How to get the query execution time without running...?

    Hello

    I had one condition... as follows...
    I had 3 sql statements. I need to run only sql what runtime is very less.

    Can someone help me, how to get the time query and run this query without using explain plan... ?

    Thank you
    Rajesh

    I can't think in any way at all to get the query execution time without running the query.

    You might get an estimate ( approximation ) If you are using explain plan.

    But you have governed to explain plan for a reason, so I can't help you.
    Why you do not want to use don't explain plan?

  • How export (unload) result of the query without running query on sql developer

    Hello

    I want to know how export (unload) result of the query without running query on sql developer.

    I know this way.
    1. execution of query
    2. click on "Download" on the results tab
    http://i.stack.imgur.com/CQ4Qb.jpg


    Is he available unload a query result before the race?

    No, but you can do this ask the developer SQL change however, for other users can vote and add weight to the possible future implementation.

    Kind regards
    K.

  • I try to install the update update of security for SQL 2005 service pake 3. I have vista 2 this update applies to my computer I get an error code ff or c0000005

    I try to install the update update of security for SQL 2005 service pake 3.  I have vista 2 this update applies to my computer I get an error code ff or c0000005

    1. navigate to the following registry key (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup)

    2. find the "Summary" (REG_DWORD), and then change its decimal value from 1 to 0

    3. restart the computer

    4. install the same update.  It should work.

  • Error code: 0x84BC089B, you try to run the service pack 1 for SQL Server

    Original title: Error Code: 0x84BC089B

    Received error code: 0x84BC089B tries to run the service pack 1 for SQL Server Express 2008R2.

    Hello J lesow,

    The question you have posted is related to SQL server and would be better suited on the TechNet support forum. I suggest you to post the question on the following link.

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer

  • I get a message that says, "files required for Windows to run correctly have been replaced by unrecognized versions...» »

    Original title: Windows unrecognized files

    I get a message that says, "files required for Windows to run correctly have been replaced by unrecognized versions." To maintain stability, Windows must restore the original versions of these files. Insert your Windows XP Professional CD2 now. "I don't have this CD.  What can I do to fix the problem?

    Hi Kathy111,

    ·         Exactly when you receive this error message?

    I suggest you to perform the auditor of system files on the computer.

    You may consult:

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

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

    Note: if it asks you the service pack CD, follow these steps from the link: you are prompted to insert a Windows XP SP2 CD when you try to run the tool on a Windows XP SP2 computer system File Checker:

    http://support.Microsoft.com/kb/900910 (valid for Service pack 3)

    Hope this information helps.

  • When you run sfc/scannow, using i386, getting the error "files required for Windows to run correctly have been replaced by unrecognized versions.»

    When I run the sfc/scannow, I get a message telling me "files which are required for Windows to run properly have been replaced by unrecognized versions." To maintain stability, Windows must restore the original versions of these files. Insert your Windows XP Home Edition Service Pack 3 CD now"with options; try again, more information or to cancel.

    A CD came with the computer and I don' t know how, or if I can use the i386 at this stage. contains WINNT i386. EXE, and WINNT32.exe indicating me a full copy of the system.

    If it is doable but requiring a major tech-skills, I will put an end to this attempt and try to find a CD. (old dog, new tricks)

    Thanks for any advice.

    Hello

    Please go through this page.

    http://www.updatexp.com/scannow-SFC.html

    Thank you

    Dinesh

    You can vote if my answer is helpful. Thank you

  • I can't afford to engage in a subscription for software. I'm just a home user. Is it possible I can get photoshop and bridge without a subscription?

    there any way I can get photoshop and bridge without a subscription?

    Not really. You can get Photoshop Elements or opt for the full version of Photoshop CC with the subscription model. For the latter, I recommend the purchase of the prepaid card a year with a redemption code from an authorized retailer and opting out entering a credit card for automatic renewal.

  • I lost my disc for item 13 for windows, but I have still my MAC drive is it possible to get a load down without having to buy it all over again?

    I lost my disc for item 13 for windows, but I have still my MAC drive is it possible to get a load down without having to buy it all over again?

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a link to access a page to download the Adobe programs if you do not have a disk or drive

    Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq

  • I uninstalled Acrobat Reader DC for permanently froze running on Windows 8.1. I downloaded the older version (Acrobat Reader XI), but now require a serial number to install it. Where can I get this number? Please help

    I uninstalled Acrobat Reader DC for permanently froze running on Windows 8.1. I downloaded the older version (Acrobat Reader XI), but now require a serial number to install it. Where can I get this number? Please help

    Hello

    What exactly are you installing?

    Reader is a free software from Adobe and doesn't require any software license serial number.

    It seems that you download Acrobat.

    There is not Acrobat Reader XI.

    He ' Acrobat or Reader XI XI.

    Please visit the following link to install the XI player.

    Concerning

    Sukrit diallo

  • Hi, I got my subscription for the year running last for Photoshop and Lightroom. Because I had the good idea to download the 2015 CC of Photoshop, I return to the evaluation period. I would like to know, when this period ends, will I get my subscribed v

    Hi, I got my subscription for the year running last for Photoshop and Lightroom. Because I had the good idea to download the version of Photoshop CC 2015 (I thought it was just an update...), I get to the evaluation period.

    I would like to know, when this period expires, will I get my purchased version back or should I get a new subscription?

    If I get a new subscription, one is cancelled automatically, or do I have to do something else?

    Thanks a lot for the answers!

    If you are subscribed to the creative cloud, Creative Cloud 15 updates are included.

    If when you updated, all or part of the CC apps show 'trial start or buy now' in the creative cloud desktop application, please see this link:

    https://helpx.Adobe.com/manage-account-membership/CC-reverts-to-trial.html

  • I have a CS3 for windows and I switched to a mac.  Can I get a mac version without having to pay again for the sequel

    I have a CS3 for windows and I switched to a mac.  Can I get a mac version without having to pay again for the sequel?

    N °

    Adobe offers only a platform Swap on current software: order product. Platform, language swap

    CS3 is also too old to have a "upgrade path" and is no longer sold or taken in charge by Adobe.

    You, as an owner of CS3, are eligible for a 40% discount on your first year of a subscription to creative cloud well: pricing and membership creative cloud plans | Adobe Creative Cloud

    If you don't want to go with the subscription service, Adobe still offers CS6 (4 versions of current & no longer receive updates) as a perpetual license "a time of payment/download": Creative Suite 6

  • I searched for a solution for the problem I was on Win 7 Pro Service Pack 1 in the links on an open Adobe Acrobat file will not open in my browser Firefox 33.0.2. The error I get is "Acrobat could not run the web browser.  Unknown error. (123).

    I want a solution for the problem I was on Win 7 Pro Service Pack 1 in the links on an open Adobe Acrobat Pro 10.1.12 file will not open in my browser Firefox 33.0.2. The error I get is "Acrobat could not run the web browser.  Unknown error. (123).

    You can try a repair of your Acrobat installation. Maybe, at least it's a start toward a solution.

Maybe you are looking for

  • Satellite 2800-600: how much RAM can I install?

    How much memory (RAM vivid), I can install on this computer. I want to have 512 MB but my systm stops when I install this memory size. Sorry for my English Poland Rafal

  • Identify a DAQ card

    I got a PCI card that has been placed in a box with a personalized label of the PCI-DIO-32HS. I took it for that. Tried to install it in windows using NiDAQ drivers but it is not detected. Windows detects it as a multimedia video controller and measu

  • Adding an extra person for the weekly report of MS with parental control

    I currently get activity weekly email report of MS for my two children with parental control. My wife does not have an account of MS, but I would like to add to this distribution of weekly e-mail.  How can I make for my wife also receives the report

  • Vista crashes when you log into Second Life

    Vista crashes my pc when I try to connect my ava in Second Life, but if I log in under another ava, everything works fine. However, the ava which freezes my vista on my pc connects fine on my laptop which has vista as well.

  • B8341dca HP 5510

    I have a HP 5510 all in one.  Tonight, I walked into my office to use and the display there is a code and a picture of the power button.  The code on the screen is B800081C.  When you turn the printer on and outside, nothing happens but the code has