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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Building a benchmark query

Re: Building a benchmark query

From: Stephan Born <stephan.born_at_beusen.de>
Date: Fri, 29 Oct 1999 14:35:16 +0200
Message-ID: <38199484.217D27C8@beusen.de>

"C. Derrick" schrieb:

> I would like to take a Select query and change it have it return a measure
> of the amount of time the it took to execute rather than the result set.
>
> Does anyone have any suggestions of ways to do this?

this will accumulate the time until 'timing show' or 'timing stop'

SQL> timing start timer

SQL> select 'here it is...' from dual;

SQL> timing show

SQL> timing stop

or just do

SQL> set timing on

this will automatically show the time for each statement.

hope this will help you, let me know,.

Regards, Stephan

--


Dipl.-Inf. (FH) Stephan Born   | beusen Consulting GmbH
fon: +49 30 549932-17          | Landsberger Allee 392
fax: +49 30 549932-29          | 12681 Berlin
mailto:stephan.born_at_beusen.de  | Germany
---------------------------------------------------------------
                       PGP-Key available
---------------------------------------------------------------


Received on Fri Oct 29 1999 - 07:35:16 CDT

Original text of this message

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