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!

Disable all enabled triggers on a table

CitySwanJan 12 2018 — edited Jan 17 2018

Hi all,

I have a scenario whereby I have to run a series of tables of updates.  There are numerous triggers on the table which I want to disable before the updates and then enable them back after.

I know I could use ALTER table_name DISABLE ALL TRIGGERS; do my updates and then run ALTER table_name ENABLE ALL TRIGGERS.

The problem with this is that some of the triggers might become disabled before the time where I need to run this and if I run the above statements, the triggers that have correctly been disabled become enabled after.

Is there a way that I can get around this?

Thanks

This post has been answered by PKR on Jan 13 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 10 2018
Added on Jan 12 2018
4 comments
2,048 views