Professional Documents
Culture Documents
Starting from ORACLE 11G, we can create triggers in DISABLE mode. Prior to ORACLE 11G, the triggers we
create on table by default would be in ENABLE mode.
Now, lets query the DBA_TRIGGERS table to query the status of triggers.
output:
-------
Before start with compound trigger, first we will go through the existing trigger flow prior to ORACLE 11G.
Before 11G:
---------------
Create a test table and before statement, before row level, after row level, after statement triggers on the test table
created.
This is how the existing functionality in prior to ORACLE 11G. We have to define triggers at various level separately.
Lets create test table and write a compound trigger to have before statement, before row, after row, after statement
triggers.
Table created.
SQL>
This is how we can club multiple trigger levels into single compound trigger.