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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: table locked from n minutes

Re: table locked from n minutes

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Fri, 2 Apr 2004 07:11:23 +0100
Message-ID: <016401c41879$53087870$7102a8c0@Primary>

If you look in v$lock for the row of type TM, and check the CTIME column - this is roughly the time (in seconds, to the nearest 3) that the table has been locked, or a request has been waiting.

Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

April 2004 Iceland http://www.index.is/oracleday.php June 2004 UK - Optimising Oracle Seminar

Hi All,

Is there a way to know that a table has been locked for n minutes ?

( Because a session may lock it and release it several times (depending up on the code). )

We have a requirement to kill a session if it locks a table for n minutes.

Can somebody through somelight on this ?

Thanks and Regards,
Srinivas



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Fri Apr 02 2004 - 00:07:40 CST

Original text of this message

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