Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: how to find elapsed time for a query in oracle 8.1.7 Database
>Hi Gurus,
> Is there any way to find out which queries
>are taking say more than
>20 min in oracle 8.1.7 Database.
>Regards,
>Kranti Pushkarna
>
Switch your mobile phone on :-).
Unless you put your database in trace mode, it is fairly difficult to get this information. Something which comes to my mind but is not very good is to have a small program which queries V$SESSION and gets max(last_call_et) for all the ACTIVE sessions, and checks again (20 * 60 - the value precedently found) seconds later.
Regards,
Stephane Faroult
Oriole
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Stephane Faroult INET: sfaroult_at_oriolecorp.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Fri Mar 07 2003 - 04:58:49 CST
![]() |
![]() |