Your browser does not support JavaScript. This help page requires JavaScript to render correctly. Disabling and Enabling Triggers
Skip Headers
Previous
Previous
 
Next
Next

Disabling and Enabling Triggers

You might need to temporarily disable triggers if they reference objects that are unavailable, or if you must upload a large amount of data without the delay that triggers cause (as in a recovery operation). After the referenced objects become available, or you have finished uploading the data, you can re-enable the triggers.

To disable or enable a single trigger, use the ALTER TRIGGER statement with the DISABLE or ENABLE clause. For example:

ALTER TRIGGER eval_change_trigger DISABLE;
ALTER TRIGGER eval_change_trigger ENABLE;

To disable or enable all triggers on a particular table, use the ALTER TABLE statement with the DISABLE ALL TRIGGERS or ENABLE ALL TRIGGERS clause. For example:

ALTER TABLE evaluations DISABLE ALL TRIGGERS;
ALTER TABLE evaluations ENABLE ALL TRIGGERS;

Related Topics

Oracle Database PL/SQL Language Reference

Oracle Database SQL Language Reference

Using Triggers