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: TX locks

Re: TX locks

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Fri, 28 May 2004 07:34:52 +0100
Message-ID: <00e601c4447d$e230db70$7102a8c0@Primary>

You're thinking of the 'unindexed foreign key' anomaly. You can get TX/4 locks even when there is a foreign key index.

session 1: insert new child for parent X session 2: delete parent X

Session 2 waits for session 1 to commit.

Regards

Jonathan Lewis

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

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

http://www.jlcomp.demon.co.uk/seminar.html Optimising Oracle Seminar - schedule updated May 1st

Jonathan,
Wouldn't PK/FK activity result in TM waits, rather than TX waits?

-----Original Message-----

From: oracle-l-bounce_at_freelists.org on behalf of Jonathan Lewis Sent: Thu 5/27/2004 3:50 PM
To: oracle-l_at_freelists.org
Cc:
Subject: Re: TX locks
Other common causes of TX/4 waits on a TX/6

Bitmap indexes on OLTP tables - with updates to the bitmapped column, or inserts/delete of rows.

Updates colliding on rows in IOTs.

Several variations of pk/fk activity split across two sessions.



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 May 28 2004 - 01:31:43 CDT

Original text of this message

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