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!

Trigger in order to prevent update

FilipFryJan 12 2011 — edited Jan 12 2011
I want to create trigger that will prevent illegal updates, but for illegal data I want make insert in another table. In order to prevent update i have to raise exception but then it will rollback insert. I am aware of autonomous transactions(putting that insert i some procedure that is autonomous transactions) but it looks to me like dirty way of solving the problem. Is there any other way to prevent update that does not include raising exception. I am also against updating on same values. Thanks!
This post has been answered by JustinCave on Jan 12 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2011
Added on Jan 12 2011
8 comments
8,420 views