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: Oracle FM interpretation of locking behavior

Re: Oracle FM interpretation of locking behavior

From: Robert Pegram <pegramrg_at_yahoo.com>
Date: Tue, 10 Dec 2002 10:35:46 -0800
Message-ID: <F001.005168A9.20021210103546@fatcity.com>


If I understand what you are asking, a simple test will tell you.

>>> Session A

SQL> create table t2 (x number);

Table created.

SQL> insert into t2 values (1);

1 row created.

SQL> insert into t2 values (2);

1 row created.

SQL> commit;

Commit complete.

SQL> update t2 set x=4 where x=1;

1 row updated.

SQL> Notice No commit;

>>>>>>> Session B
SQL> update t2 set x=4 where x=2;

1 row updated.

SQL> update t2 set x=4 where x=1;

>>> this waits for the commit/rollback in session A

Robert Pegram
Oracle Certified DBA (8i,9i)


Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Robert Pegram
  INET: pegramrg_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 Tue Dec 10 2002 - 12:35:46 CST

Original text of this message

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