Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: uncomitted data gets committed when application dies
Volker Hetzer wrote:
> Hi!
> I've got a problem with a library I use for accessing oracle.
> Basically, I use Oratcl ans Tcl/Tk and I take a lot of care not to
> commit any data if everything is not in order. But, if the app gets
> killed for some reason, the *uncomitted* data appears visible in
> the database!
> I just contacted the guy who wrote the Oratcl extension and
> his answer was:
>
> "This seems to be standard behavior with oracle client libraries.
> I have had this happen in multiple oracle versions and with
SQL*Plus."
>
> Is there any way I can configure the session or the database to
rollback
> any uncomitted changes when the database detects a dead session?
Can you try creating a logoff trigger:
create or replace trigger t
before logoff on database
begin
rollback;
end;
/
Does this problem only happen to your OraTcl session? I can't imagine it happens to a sqlplus session.
Yong Huang Received on Wed Dec 08 2004 - 11:41:49 CST
![]() |
![]() |