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

Home -> Community -> Mailing Lists -> Oracle-L -> FW: Truncate table - interaction with a long running query

FW: Truncate table - interaction with a long running query

From: Baumgartel, Paul <paul.baumgartel_at_credit-suisse.com>
Date: Wed, 15 Aug 2007 21:44:53 +0100
Message-ID: <9C4B34D12BA5FC42AEF7E3A6AC8A263B41FC8115@enyc11p32002.corpny.csfb.com>


Mea culpa. My earlier post about queries and DDL confused parse locks with row locks. A query holds no locks at all. I really have to resist the impulse to answer questions quickly without confirming the accuracy of what I'm about to say.

Parse locks, from the Concepts manual:

A SQL statement (or PL/SQL program unit) in the shared pool holds a parse lock for each schema object it references. Parse locks are acquired so that the associated shared SQL area can be invalidated if a referenced object is altered or dropped. A parse lock does not disallow any DDL operation and can be broken to allow conflicting DDL operations, hence the name breakable parse lock.

A parse lock is acquired during the parse phase of SQL statement execution and held as long as the shared SQL area for that statement remains in the shared pool.

Paul Baumgartel
CREDIT SUISSE
Information Technology
Securities Processing Databases Americas One Madison Avenue
New York, NY 10010
USA
Phone 212.538.1143
paul.baumgartel_at_credit-suisse.com
www.credit-suisse.com



Please access the attached hyperlink for an important electronic communications disclaimer:

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html


--
http://www.freelists.org/webpage/oracle-l
Received on Wed Aug 15 2007 - 15:44:53 CDT

Original text of this message

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