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: uncomitted data gets committed when application dies

Re: uncomitted data gets committed when application dies

From: Niall Litchfield <niall.litchfield_at_dial.pipex.com>
Date: Thu, 9 Dec 2004 07:20:35 -0000
Message-ID: <41b7fcb8$0$19157$cc9e4d1f@news-text.dial.pipex.com>


"Sybrand Bakker" <sybrandb_at_hccnet.nl> wrote in message news:1rper092kfnnt5d1b7rin9q054u0n9s5th_at_4ax.com...
> On 8 Dec 2004 09:41:49 -0800, yong321_at_yahoo.com wrote:
>
>>Does this problem only happen to your OraTcl session? I can't imagine
>>it happens to a sqlplus session.
>
> It definitely does. Both exit and quit perform an implicit commit, as
> does disconnect. And of course all of this is documented...

See Rauf's example, we are not talking about normal termination but abnormal termination of the client. If apps that crashed left data that they'd half-processed committed we'd be in a lot worse state wrt data quality than we already are. I'd forgotten about SET AUTOCOMMIT in sqlplus, but that would explain it as well. There is a brief discussion of how to set autocommit in oratcl at http://www.orafaq.com/faqtcl.htm

-- 
Niall Litchfield
Oracle DBA
http://www.niall.litchfield.dial.pipex.com 
Received on Thu Dec 09 2004 - 01:20:35 CST

Original text of this message

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