Home All Groups Group Topic Archive Search About

display speed of queries?

Author
28 Feb 2005 3:05 PM
Ian
Hi,
Am relatively new to Oracle,
Is there a way to display the speed of queries - how long it took?
Useful for testing/comparing efficiency
regards
Ian
esta***@chariot.net.ZZ
change ZZ to au if you want to direct reply.

Author
28 Feb 2005 3:11 PM
Mark C. Stock
"Ian" <n**@available.com.au> wrote in message
news:42233346$1_2@news.chariot.net.au...
> Hi,
> Am relatively new to Oracle,
> Is there a way to display the speed of queries - how long it took?
> Useful for testing/comparing efficiency
> regards
> Ian
> esta***@chariot.net.ZZ
> change ZZ to au if you want to direct reply.
>
>

simplest way is in SQL*Plus

SQL> SET TIMING ON
SQL> SELECT *
  2  FROM   dept;

    DEPTNO DNAME          LOC
---------- -------------- -------------
        10 ACCOUNTING     NEW YORK
        20 RESEARCH       DALLAS
        30 SALES          CHICAGO
        40 OPERATIONS     BOSTON

Elapsed: 00:00:00.25
SQL>

Note that other tools will have other techniques... for example Free TOAD
automatically show query time, in milleseconds, the lower left of the screen

For more exact information on SQL timing and tuning, reference the tuning
manuals available via http://tahiti.oracle.com

++ mcs
Are all your drivers up to date? click for free checkup

Author
28 Feb 2005 3:13 PM
Frank van Bortel
Ian wrote:
> Hi,
> Am relatively new to Oracle,
> Is there a way to display the speed of queries - how long it took?
> Useful for testing/comparing efficiency
> regards
> Ian
> esta***@chariot.net.ZZ
> change ZZ to au if you want to direct reply.
>
>

Don't cross-post to every oracle ng you found, please.
Assuming you use SQL*Plus, issue: set timing on
before you execute the query.
There are a lot of possibilities; documentation can be
found on http://docs.oracle.com
--
Regards,
Frank van Bortel
Author
28 Feb 2005 5:01 PM
DA Morgan
Ian wrote:

> Hi,
> Am relatively new to Oracle,
> Is there a way to display the speed of queries - how long it took?
> Useful for testing/comparing efficiency
> regards
> Ian
> esta***@chariot.net.ZZ
> change ZZ to au if you want to direct reply.

Please don't post to every usenet group you can spell: One is
sufficient. And if you don't know which one is the correct one
then the onus is on you to read the group's charter.

Thank you.
--
Daniel A. Morgan
University of Washington
damor***@x.washington.edu
(replace 'x' with 'u' to respond)

Bookmark and Share

Post Thread options