Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Timing a query in sqlplus

Re: Timing a query in sqlplus

From: EscVector <Junk_at_webthere.com>
Date: 2 Feb 2007 09:07:16 -0800
Message-ID: <1170436036.544449.289720@v45g2000cwv.googlegroups.com>


On Feb 2, 11:52 am, Oradba Linux <oradba_li..._at_verizon.net> wrote:
> EscVector wrote:
> > On Feb 2, 7:41 am, "astalavista" <nob..._at_nowhere.com> wrote:
> >> Hi,
>
> >> In sqlplus, how to time a query ?
> >> I set timing on
> >> but the result seems to skewed by the display of the output lines (lot of
> >> rows), no ?
> >> How to get the correct timing for a query ?
>
> >> Thanks in advance
>
> > You could run it from a script with no output to screen or run create
> > a refcursor and time the block execution.
>
> How about set autotrace traceonly statistics and set timing on
>
> You get the timing and other stats also.

I've had stats skew the time slightly. Maybe not by much, but I believe Elapsed is a component of the whole in the sqlplus output. Received on Fri Feb 02 2007 - 11:07:16 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US