Oracle 23.26PL/SQLLab-verified · 2026-11-29

ORA-04080: trigger 'ORDERS_BIU' does not exist

No trigger with that name exists in the schema the statement looks in.

Oracle AI Database 26ai Free 23.26.3.0.0
ORA-04080: trigger 'ORDERS_BIU' does not exist

Jump to a cause

  1. 01Wrong trigger name in DROP TRIGGER
  2. 02ALTER TRIGGER from another user without the owner name
  3. 03The table was dropped, so its trigger went to the recycle bin

Lab-verifiedReproduced and fixed on Oracle AI Database 26ai Free 23.26.3.0.0 · 2026-11-29 · container image gvenzl/oracle-free:23-slim

ORA-04080 is raised by DROP TRIGGER or ALTER TRIGGER when the named trigger cannot be found. The name is looked up in your own schema unless you write owner.trigger, and unquoted names are uppercased.

The three runs below are the usual causes. Start with SELECT trigger_name, table_name, status FROM user_triggers (or dba_triggers for other schemas) to see the real name and owner.

01Wrong trigger name in DROP TRIGGER

The trigger on orders was ORDERS_BU, but the script ran DROP TRIGGER orders_biu and got ORA-04080: trigger 'ORDERS_BIU' does not exist.

user_triggers listed ORDERS_BU. On 23ai, DROP TRIGGER IF EXISTS orders_biu did not raise an error (SQL*Plus printed Trigger dropped.), and DROP TRIGGER orders_bu removed the real one.

Setup
Setuprun as lab_a
CREATE TABLE orders (id NUMBER PRIMARY KEY, updated_at DATE);
CREATE TRIGGER orders_bu BEFORE UPDATE ON orders FOR EACH ROW
BEGIN
  :NEW.updated_at := SYSDATE;
END;
/
OUTPUT
Table created.


Trigger created.
Reproducerun as lab_a
DROP TRIGGER orders_biu;
✕ ERROR
DROP TRIGGER orders_biu
*
ERROR at line 1:
ORA-04080: trigger 'ORDERS_BIU' does not exist
Help: https://docs.oracle.com/error-help/db/ora-04080/
Checkrun as lab_a
COLUMN trigger_name FORMAT A12
COLUMN table_name FORMAT A10
SELECT trigger_name, table_name, status FROM user_triggers;
OUTPUT
TRIGGER_NAME TABLE_NAME STATUS
------------ ---------- ------------------------------
ORDERS_BU    ORDERS     ENABLED

1 row selected.
After the fixrun as lab_a
DROP TRIGGER IF EXISTS orders_biu;
DROP TRIGGER orders_bu;
✓ SUCCESS
Trigger dropped.


Trigger dropped.

02ALTER TRIGGER from another user without the owner name

The trigger belonged to LAB_A. Logged in as SYSTEM, ALTER TRIGGER orders_bu DISABLE failed with ORA-04080 because it looked in the SYSTEM schema.

dba_triggers showed OWNER LAB_A. ALTER TRIGGER lab_a.orders_bu DISABLE worked and the status became DISABLED.

Setup
Setuprun as lab_a
CREATE TABLE orders (id NUMBER PRIMARY KEY, updated_at DATE);
CREATE TRIGGER orders_bu BEFORE UPDATE ON orders FOR EACH ROW
BEGIN
  :NEW.updated_at := SYSDATE;
END;
/
OUTPUT
Table created.


Trigger created.
Reproducerun as system
ALTER TRIGGER orders_bu DISABLE;
✕ ERROR
ALTER TRIGGER orders_bu DISABLE
*
ERROR at line 1:
ORA-04080: trigger 'ORDERS_BU' does not exist
Help: https://docs.oracle.com/error-help/db/ora-04080/
Checkrun as system
COLUMN owner FORMAT A8
COLUMN trigger_name FORMAT A12
SELECT owner, trigger_name, status FROM dba_triggers WHERE trigger_name = 'ORDERS_BU';
OUTPUT
OWNER    TRIGGER_NAME STATUS
-------- ------------ ------------------------------
LAB_A    ORDERS_BU    ENABLED

1 row selected.
After the fixrun as system
ALTER TRIGGER lab_a.orders_bu DISABLE;
COLUMN trigger_name FORMAT A12
SELECT trigger_name, status FROM dba_triggers WHERE owner = 'LAB_A';
✓ SUCCESS
Trigger altered.


TRIGGER_NAME STATUS
------------ ------------------------------
ORDERS_BU    DISABLED

1 row selected.

03The table was dropped, so its trigger went to the recycle bin

After DROP TABLE orders, ALTER TRIGGER orders_bu ENABLE failed with ORA-04080. Dropping a table also drops its triggers.

user_recyclebin listed ORDERS (TABLE), ORDERS_BU (TRIGGER) and an index. FLASHBACK TABLE orders TO BEFORE DROP brought the table back, but the trigger comes back with a BIN$ name, so a PL/SQL block renamed it with ALTER TRIGGER "BIN$..." RENAME TO orders_bu. After that, ALTER TRIGGER orders_bu ENABLE worked and user_triggers showed ORDERS_BU ENABLED.

Setup
Setuprun as lab_a
CREATE TABLE orders (id NUMBER PRIMARY KEY, updated_at DATE);
CREATE TRIGGER orders_bu BEFORE UPDATE ON orders FOR EACH ROW
BEGIN
  :NEW.updated_at := SYSDATE;
END;
/
DROP TABLE orders;
OUTPUT
Table created.


Trigger created.


Table dropped.
Reproducerun as lab_a
ALTER TRIGGER orders_bu ENABLE;
✕ ERROR
ALTER TRIGGER orders_bu ENABLE
*
ERROR at line 1:
ORA-04080: trigger 'ORDERS_BU' does not exist
Help: https://docs.oracle.com/error-help/db/ora-04080/
Checkrun as lab_a
COLUMN original_name FORMAT A14
COLUMN type FORMAT A8
SELECT original_name, type FROM user_recyclebin ORDER BY type;
OUTPUT
ORIGINAL_NAME  TYPE
-------------- --------
SYS_C009415    INDEX
ORDERS         TABLE
ORDERS_BU      TRIGGER

3 rows selected.
Fixrun as lab_a
FLASHBACK TABLE orders TO BEFORE DROP;
BEGIN
  FOR t IN (SELECT trigger_name FROM user_triggers WHERE table_name = 'ORDERS' AND trigger_name LIKE 'BIN$%') LOOP
    EXECUTE IMMEDIATE 'ALTER TRIGGER "' || t.trigger_name || '" RENAME TO orders_bu';
  END LOOP;
END;
/
OUTPUT
Flashback complete.


PL/SQL procedure successfully completed.
After the fixrun as lab_a
ALTER TRIGGER orders_bu ENABLE;
COLUMN trigger_name FORMAT A12
SELECT trigger_name, status FROM user_triggers;
✓ SUCCESS
Trigger altered.


TRIGGER_NAME STATUS
------------ ------------------------------
ORDERS_BU    ENABLED

1 row selected.

FAQ

How do I drop a trigger only if it exists in Oracle?

On 23ai use DROP TRIGGER IF EXISTS name;. In the run above it did not raise ORA-04080 for a missing trigger.

How do I find the owner and exact name of a trigger?

SELECT owner, trigger_name, table_name, status FROM dba_triggers WHERE trigger_name = 'NAME'; (or all_triggers without DBA privileges). Then use owner.trigger_name.

Where did my trigger go after DROP TABLE?

It was dropped with the table. If the recycle bin is on, it appears in user_recyclebin with TYPE TRIGGER. FLASHBACK TABLE ... TO BEFORE DROP restores it under a BIN$ name; rename it back with ALTER TRIGGER ... RENAME TO.

What is the difference between ORA-04080 and ORA-04098?

ORA-04080 means the trigger does not exist. ORA-04098 means it exists but is invalid and failed to compile when the table was used.

How we verify

Each scenario starts from fresh database users. A script runs the setup, confirms the exact error code, applies the fix and runs the statement again. The output shown is what the database printed, saved by the script.

lab_a and lab_b are ordinary users created for the test; system is the DBA account. Oracle AI Database 26ai Free Release 23.26.3.0.0 - Develop, Learn, and Run for Free 23.26.3.0.0