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

Home -> Community -> Usenet -> c.d.o.misc -> 'commit' not having immediate effect

'commit' not having immediate effect

From: dn.usenet <dn.usenet_at_gmail.com>
Date: 1 Apr 2006 06:33:40 -0800
Message-ID: <1143902020.895344.159350@t31g2000cwb.googlegroups.com>

Table t1 (f1, f2). Primary key (f1, f2) Contents : ('1', 'one') and ('2' , 'two')
Table t2. Same as t1. Same key, same data.

I ran : select t1.f1 from t1 t1, t2 t2
  where exists (

     select 1 from dual where t1.f1 = t2.f1   )
I used 'dual' because 'null' did not work in its place; I was just trying out things.
This TOAD query/window hanged.

I opened another window, and ran :
update t1 set f1 = 'new' ;
commit ;
insert into t1 select * from t2 ;

I get the error : Primary Key Constraint Violation. I suspect that that hanged query has something to do with this problem.

Please advise. TIA. Received on Sat Apr 01 2006 - 08:33:40 CST

Original text of this message

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