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: Commit

Re: Commit

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Sat, 27 Mar 1999 18:22:26 +0100
Message-ID: <36FD13D1.4AAA7CD9@sybrandb.demon.nl>


Hi Denis,

A commit ends a transaction/logical unit of work and commits any change after the previous commit or rollback.

So if your procedure A is like this

procedure a is
begin
insert into blablba;
b;
rollback

the changes in b will be rollback also. If you replace this by a commit both the changes in a and b will be committed. If you don't want that you can setup a savepoint in procedure b and when anything goes wrong in B rollback to that savepoint.

Hth,

Sybrand Bakker, Oracle DBA
Denis wrote:

> If I have a stored procedure A that inserts record in table A and calls
> stored procedure B that inserts record in table B, does Oracle consider
> this a logical record? Meaning, if I rollback in stored procedure A, will
> the insert in table B be also rolled back? My Commit in A also commits my
> B?
>
> Thank you in advance.
>
> Denis


Received on Sat Mar 27 1999 - 11:22:26 CST

Original text of this message

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