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

Home -> Community -> Usenet -> c.d.o.tools -> Nested Transaction Level

Nested Transaction Level

From: nospam <nospam_at_nospam.no>
Date: Thu, 8 Mar 2001 18:44:31 +0100
Message-ID: <988gep$bsd$1@pegasus.tiscalinet.it>

I have a stored procedure which call another stored procedure,like this:

procedure SP_AAA is
begin

    savepoint savepoint1;
    exec a sql_statement;
    SP_BBB;
    commit;
exception

    when others then
    rollback to savepoint1;
end;

procedure SP_BBB is
begin

    exec a sql_statement;
    commit;
end;

and the result is you could not rollback to savepoint1 in SP_AAA because you have commited in SP_BBB.

I would like to know in which level of nested transaction I am, so I can decide to commit or not.
How to do so? Any suggestion?

thanks a lot,

    _-^-_nto Received on Thu Mar 08 2001 - 11:44:31 CST

Original text of this message

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