Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: breakable parse lock
Thanks Gopal,
<In short breakable parse locks are library cache locks and TM locks protect the definition of the table during DDLs.>
This is where I am confused, while doing DDL
it already acquired exclusive ddl lock to protect the
definition of the table and stop dml against the table,
then again why the TM lock.
please clarify.
Syed
Syed:
Breakable parse locks are library cache locks (of enqueue types L[A-P]) which are held briefly during the compilation time/parsing time of SQL or PL/SQL codes. They are released at the end of the compilation/parsing. They are known as breakable parse locks as they are not released, and only can be broken when the object is un-pinned.
TM locks are held on tables during DDLs (like partition addition, Index Rebuilds, View creation on that table, PDML and Analyze) to protect (lock!) the definition of the table.
In short breakable parse locks are library cache locks and TM locks protect the definition of the table during DDLs.
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html ----------------------------------------------------------------- ---------------------------------------------------------------- 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 Mon Jul 05 2004 - 01:03:29 CDT
![]() |
![]() |