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

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL Plus tells me it has deleted the row, but it hasn't?

Re: SQL Plus tells me it has deleted the row, but it hasn't?

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: 27 Nov 2001 18:18:12 -0800
Message-ID: <9u1hh402in1@drn.newsguy.com>


In article <9u0tlp$jmf$1_at_new-news.cc.brandeis.edu>, "Vincent says...
>
>
>> try typing "commit" after your delete -- you must commit or transaction
>will
>> be rolled back once you leave your session.
>
>Not true -- if the session is terminated normally Oracle does an implicit
>COMMIT.
>
>

Not totally true (being picky on the semantics here) -- it depends on the environment, it's up to the environment...

sqlplus -- commits on exit.
pro*c -- rolls back on exit..

for example

in this case, yes -- SQLPlus commits on exit -- but don't count on "oracle" in general to commit upon exit...

--
Thomas Kyte (tkyte@us.oracle.com)             http://asktom.oracle.com/ 
Expert one on one Oracle, programming techniques and solutions for Oracle.
http://www.amazon.com/exec/obidos/ASIN/1861004826/  
Opinions are mine and do not necessarily reflect those of Oracle Corp 
Received on Tue Nov 27 2001 - 20:18:12 CST

Original text of this message

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