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 -> Rollback problem, please help

Rollback problem, please help

From: Wasim <ahmed_wasim_at_yahoo.com>
Date: 13 Nov 2002 10:26:18 -0800
Message-ID: <6960026.0211131026.698f820e@posting.google.com>


Hello,

I am having strange problem with rollback statement. My code looks like this

Begin

    insert into some tables;
    Begin

        get a value from database;
    exception when no_data_found

        handle it;
    when others

        raise;
    end
    do some other stuff
    begin

        do some updates;
    exception when no_data_found

        handle it;
    when others
    then

       raise;
    end;
    commit;
exception when others
  rollback;
  raise
end;         

When an exception occurs its not rolling back the transaction (the information put in tables is still there). I don't know any reason why its doing that because the outer block should rollback the transaction.

Regards,
Wasim. Received on Wed Nov 13 2002 - 12:26:18 CST

Original text of this message

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