Skip to Main Content

Oracle Database Discussions

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!

Why do people avoid the use of TRIGGERs?

chuckersMar 12 2008 — edited Mar 13 2008
On several Oracle forums, I've seen several people take a strong position on avoiding the use of TRIGGERs for business rules. Could we start a thread on why people are for/against them (unless someone has a link to one that's already exhausted this topic).

I've been pushing the use of TRIGGERs for business rules, so that we don't have to code the equivalent in any of our multiple interfaces (desktop and web), as well as having the business rules remain intact if we're changing the data via TOAD. We also put an "escape" at the top of each trigger as well, where a PACKAGE spec variable is tested for a particular value, allowing the the remainder of the TRIGGER code to be aborted if necessary. That way, we can avoid the overhead of processing the TRIGGER code for jobs which we know won't violate the business rules.

--=cf
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 10 2008
Added on Mar 12 2008
9 comments
864 views