Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Rollback package

ORA-00666Dec 18 2015 — edited Dec 18 2015

Hi,

Is it possible to rollback a package which have been created? If not how to rollback changes made by package using ROLLBACK; statement?

create or replace

package pckg as

    procedure prc(column in number);

end;

--ROLLBACK??

create or replace

package pckg as

    procedure prc (column in number) as

    begin

    insert into smth(column1)

      SELECT column1 FROM somewhere;

    end prc;

end emp_pac;

--ROLLBACK??

DECLARE

  column1 NUMBER;

BEGIN

   SAVEPOINT savepnt;

column1 := NULL;

  pckg.prc(column1 => column1);

END;

--ROLLBACK TO SAVE POINT savepnt??

This post has been answered by unknown-951199 on Dec 18 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 15 2016
Added on Dec 18 2015
9 comments
2,603 views