Last updated on MARCH 01, 2017
Applies to:Oracle Database - Enterprise Edition - Version 10.2.0.3 and later
Information in this document applies to any platform.
This problem can occur on any platform.
Created a "before DDL database level" trigger which became invalid, now unable to do any Ddl on database, including the Sys user to resolve the problem.
create or replace trigger trg_before_ddl
create or alter or drop
on database ...
Now as Sys user, trying to disable trigger so can resolve issue, the alter fails with the following errors.
SQL> alter trigger some_user.trg_before_ddl disable;
ERROR at line 1:
ORA-04045: errors during recompilation/revalidation of SOME_USER.TRG_BEFORE_DDL
ORA-04098: trigger 'SOME_USER.TRG_BEFORE_DDL' is invalid and failed re-validation
Testing new database level triggers.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms