想象一下有2个触发器,例如
create or replace TRIGGER A AFTER CREATE ON SCHEMA
和
create or replace TRIGGER B AFTER CREATE ON SCHEMA
(关于模式的注释)。两者都是无效的(执行失败),您需要删除它们。
如果您尝试删除触发器A,则会得到:
An error was encountered performing the requested operation:
ORA-04098: trigger 'USER.B' is invalid and failed re-validation
04045. 00000 - "errors during recompilation/revalidation of %s.%s"
*Cause: This message indicates the object to which the following
errors apply. The errors occurred during implicit
recompilation/revalidation of the object.
*Action: Check the following errors for more information, and
make the necessary corrections to the object.
Vendor code 4045
反之亦然。
您如何删除触发器?