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

Home -> Community -> Mailing Lists -> Oracle-L -> re: set based transaction management; SAVEPOINTS

re: set based transaction management; SAVEPOINTS

From: Cosmin Ioan <cosmini_at_bridge-tech.com>
Date: Thu, 12 Jul 2007 08:38:00 -0700 (PDT)
Message-ID: <221769.48274.qm@web60411.mail.yahoo.com>


hello all,
one more quandary and I'll try to illustrate it by a small example: A big procedure (in a package), PROC_A is executed from Java. I want (at the) Java (level) to determine the COMMIT/ROLLBACK (at the very end) or commit every X records.

PROC_A contains a LOOP on possibly hundreds or thousands of iterations. Each iteration can contain multiple DML operation, and each of these DML operation can fail (select not found, record not updated, insert key violation, etc)

How can I code this transaction management -- through (dynamic SAVEPOINTS? -- is there such a thing?) so that when (and if transaction management, the commit is done only at the very end of PROC_A) any one of these DML's fail, then I roll back **all of the operations within that specific iteration only** (but previous or subsequent successful iterations get committed).

any thoughts?
thx a bunch,
Cos

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jul 12 2007 - 10:38:00 CDT

Original text of this message

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