SQL Lab - Trigger
SQL Lab - Trigger
2 ( order_id number(5),
3 quantity number(4),
4 cost_per_item number(6,2),
5 total_cost number(8,2),
6 create_date date,
7 created_by varchar2(10)
8 );
Table created.
SQL> ed
Wrote file afiedt.buf
Trigger created.
1 row created.
SQL> ed
Wrote file afiedt.buf
SQL> ed
Wrote file afiedt.buf
SQL> ed
Wrote file afiedt.buf
1 row created.
SQL> ed
Wrote file afiedt.buf
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
ORDERS_AFTER_INSERT AFTER EACH ROW
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
INSERT
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
SYSTEM TABLE ORDERS
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
REFERENCING NEW AS NEW OLD AS OLD
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
ENABLED
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
orders_after_insert
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
AFTER INSERT
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
ON orders
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
FOR EACH ROW
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
PL/SQL
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
DECLARE
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
v_username varchar2(10);
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
BEGIN
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
-- Find username of person performi
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
NO NO NO NO NO NO YES NO
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
ORDERS_BEFORE_INSERT BEFORE EACH ROW
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
INSERT
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
SYSTEM TABLE ORDERS
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
REFERENCING NEW AS NEW OLD AS OLD
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
ENABLED
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
orders_before_insert
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
BEFORE INSERT
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
ON orders
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
FOR EACH ROW
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
PL/SQL
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
DECLARE
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
v_username varchar2(10);
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
BEGIN
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
-- Find username of person performi
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
NO NO NO NO NO NO YES NO
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
REPCATLOGTRIG AFTER STATEMENT
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
UPDATE OR DELETE
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
SYSTEM TABLE REPCAT$_REPCATLOG
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
REFERENCING NEW AS NEW OLD AS OLD
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
ENABLED
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
system.repcatlogtrig
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
AFTER UPDATE OR DELETE ON system.repcat$_repcatlog
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
PL/SQL
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
BEGIN
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
sys.dbms_alert.signal('repcatlog_alert', '');
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
END;
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
NO NO NO NO NO NO YES NO
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
DEF$_PROPAGATOR_TRIG BEFORE STATEMENT
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
INSERT
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
SYSTEM TABLE DEF$_PROPAGATOR
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
REFERENCING NEW AS NEW OLD AS OLD
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
ENABLED
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
system.def$_propagator_trig
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
BEFORE INSERT ON system.def$_propagator
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
PL/SQL
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
DECLARE
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
prop_count NUMBER;
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
BEGIN
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
SELECT count(*) into prop_count
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
FROM s
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
NO NO NO NO NO NO YES NO
TRIGGER_NAME TRIGGER_TYPE
------------------------------ ----------------
TRIGGERING_EVENT
--------------------------------------------------------------------------------
TABLE_OWNER BASE_OBJECT_TYPE TABLE_NAME
------------------------------ ---------------- ------------------------------
COLUMN_NAME
--------------------------------------------------------------------------------
REFERENCING_NAMES
--------------------------------------------------------------------------------
WHEN_CLAUSE
--------------------------------------------------------------------------------
STATUS
--------
DESCRIPTION
--------------------------------------------------------------------------------
ACTION_TYPE
-----------
TRIGGER_BODY
--------------------------------------------------------------------------------
CROSSED BEF BEF AFT AFT INS FIR APP
------- --- --- --- --- --- --- ---
TRIGGER_NAME
------------------------------
ORDERS_AFTER_INSERT
ORDERS_BEFORE_INSERT
REPCATLOGTRIG
DEF$_PROPAGATOR_TRIG
SQL> ed ORDERS_AFTER_INSERT
no rows selected
SQL> ed
Wrote file afiedt.buf
SQL> ed
Wrote file afiedt.buf
DBMS_METADATA.GET_DDL('TRIGGER','ORDERS_AFTER_INSERT',USER)
--------------------------------------------------------------------------------
DBMS_METADATA.GET_DDL('TRIGGER','ORDERS_AFTER_INSERT',USER)
--------------------------------------------------------------------------------
-- Insert record into audit table
INSERT INTO orders_audit
( order_id,
quantity,
cost_per_item,
total_cost,
username )
VALUES
( :new.order_id,
:new.quantity,
:new.cost_per_item,
DBMS_METADATA.GET_DDL('TRIGGER','ORDERS_AFTER_INSERT',USER)
--------------------------------------------------------------------------------
:new.total_cost,
v_username );
END;
ALTER TRIGGER "SYSTEM"."ORDERS_AFTER_INSERT" ENABLE
SQL>
TRIGGER_NAME
------------------------------
ORDERS_AFTER_INSERT
ORDERS_BEFORE_INSERT
REPCATLOGTRIG
DEF$_PROPAGATOR_TRIG
Trigger dropped.