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
>
Kranti,
If the STATUS in V$SESSION is 'ACTIVE' and LAST_CALL_ET > 20*60, then it is a fair bet that that particluar query is running more than 20 minutes. LAST_CALL_ET is the last time a call (SQL) was made to the DB. While large values can be an indication of idleness, the STATUS column can bely this.
John Kanagaraj
Principal Consultant
DB Soft Inc
408-578-0548 (Home Office)
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: John Kanagaraj INET: ora_apps_dba_y_at_yahoo.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 Mon Mar 10 2003 - 11:44:12 CST
![]() |
![]() |