Re: Query execution time

  • From: Stephane Faroult <sfaroult@xxxxxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx, Rick Stephenson <RStephenson@xxxxxxxx>
  • Date: Fri, 12 Nov 2004 10:00:58 +0100

 Apart from tracing (which with such a rate of execution is not highly
advisable) the best you can do is probably collect those aggregate values at
regular intervals, compute differences and work out averages on a per
interval basis. You will still have a smoothed curve, but less so. If you
have a single statement to monitor and use the V$SQL ADDR as key, you can
probably do it at a resonably high rate.
Regards, 

Stephane Faroult 

RoughSea Ltd 
http://www.roughsea.com 


On Thu, 11 Nov 2004 13:49 , Rick Stephenson <RStephenson@xxxxxxxx> sent:

I have a query that has been executed 750,000 times and want to know what
the maximum elapsed time is for that query. The v$sql view gives me an
elapsed_time column, but that will only allow me to produce an average
elapsed time based on the number of times a query has been executed. Is
there a way to determine the maximum elapsed time for a query?


Thanks,



Rick Stephenson



This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to which they are addressed.
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. If you are not the intended recipient you are
notified that disclosing, copying, forwarding or otherwise distributing or
taking any action in reliance on the contents of this information is
strictly prohibited. 




--
//www.freelists.org/webpage/oracle-l[1]



--- Links ---
   1 
modules/refer.pl?redirect=http%3A%2F%2Fwww.freelists.org%2Fwebpage%2Foracle-l
--
//www.freelists.org/webpage/oracle-l

Other related posts: