WARNING! problems with Transactions and kill command on SE
Posted in 1998
This is a multi-part message in MIME format.
--------------D551DE920716B46C9279AF62
Content-Type: multipart/alternative; boundary="------------91CE3232259668D993F48A6F"
--------------91CE3232259668D993F48A6F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi all:
I'm surprised because a thing that supposed to work, doesn't. I will
explain you using an example:
database dbname
main
begin work
delete from tablename where <condition>
# sleep the process enough time for kill it
sleep 15
if sqlca.sqlcode = 0 then
commit work
else
rollback work
end if
end main
If I run this program on a unix session, and after the delete statement
I kill such process using the unix kill -9 command, what should happened
with the data affected?
I don't know if I'm wrong, but I think that the data should stay as it
was before execute the program.
On SCO OpenServer and INFORMIX-SE 7.14 the data is removed!!!
Is that correct? if so, How could you check the consistency here?
thanks in advance!
--------------91CE3232259668D993F48A6F
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<HTML>
Hi all:
<P>I'm surprised because a thing that supposed to work, doesn't. I will
explain you using an example:
<P><TT>database dbname</TT><TT></TT>
<P><TT>main</TT>
<BR><TT> begin work</TT>
<BR><TT> delete from tablename where <condition></TT><TT></TT>
<P><TT> # sleep the process enough time for kill it</TT>
<BR><TT> sleep 15</TT><TT></TT>
<P><TT> if sqlca.sqlcode = 0 then</TT>
<BR><TT> commit work</TT>
<BR><TT> else</TT>
<BR><TT> rollback work</TT>
<BR><TT> end if</TT>
<BR><TT>end main</TT>
<P>If I run this program on a unix session, and after the delete
statement I kill such process using the unix kill -9 command, what should
happened with the data affected?
<P>I don't know if I'm wrong, but I think that the data should stay as
it was before execute the program.
<P>On SCO OpenServer and INFORMIX-SE 7.14 the data is removed!!!
<BR>Is that correct? if so, How could you check the consistency here?
<P>thanks in advance!</HTML>
--------------91CE3232259668D993F48A6F--
--------------D551DE920716B46C9279AF62
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Melvin Perez
Content-Disposition: attachment; filename="vcard.vcf"
begin: vcard
fn: Melvin Perez
n: Perez;Melvin
org: CAM Informatica. S. A.
email;internet: cam@codetel.net.do
title: Technical Vicepresident
tel;work: (809) 686-5574
tel;fax: (809) 686-5467
tel;home: (809) 227-2893
x-mozilla-cpt: ;-960
x-mozilla-html: FALSE
version: 2.1
end: vcard
--------------D551DE920716B46C9279AF62--