Search This Blog

Saturday, January 15, 2022

Oracle / PLSQL: Disable a Trigger

 

Oracle / PLSQL: Disable a Trigger

This Oracle tutorial explains how to disable a trigger in Oracle with syntax and examples.

Description

Once you have created a Trigger in Oracle, you might find that you are required to disable the trigger. You can do this with the ALTER TRIGGER statement.

Syntax

The syntax for a disabling a Trigger in Oracle/PLSQL is:

ALTER TRIGGER trigger_name DISABLE;

Parameters or Arguments

trigger_name
The name of the trigger that you wish to disable.

Note

Example

Let's look at an example that shows how to disable a trigger in Oracle.

For example:

ALTER TRIGGER orders_before_insert DISABLE;

This example uses the ALTER TRIGGER statement to disable the trigger called orders_before_insert.



No comments:

Post a Comment

PL/SQL - Collections

A collection is an ordered group of elements having the same data type. Each element is identified by a unique subscript that represents its...