My Oracle Support Banner

Trigger Does Not Work Properly After ALTER TABLE ... DROP UNUSED COLUMNS (Doc ID 2614661.1)

Last updated on NOVEMBER 25, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 18.3.0.0.0 and later
Oracle Database - Standard Edition - Version 18.3.0.0.0 and later
Information in this document applies to any platform.

Symptoms

On 18c and onwards, trigger shows incorrect behavior after doing "alter table ... drop unused columns" command to the table that is referenced by the trigger.

After running such DDL, we'd expect the trigger to be invalidated and needs to be recompiled.  However, this DDL statement does not invalidate the trigger, and the trigger fires on a wrong column.


Changes


Observe following example.
Let us say tables and trigger are created like below.



Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.