Use the General tab in the Oracle Trigger Editor for table triggers to specify execution information for a trigger. The following describes the options for this tab:
Select any of the following options to specify the action for which the trigger should fire. When you select an option, you include the built-in trigger code for that action in the table trigger.
Select this check box to fire the selected table trigger when a SQL DELETE command is executed.
Select this check box to fire the selected table trigger when a SQL INSERT command is executed.
Select this check box to fire the selected table trigger when a SQL UPDATE command is executed.
Note: You can create separate table override triggers for DELETE, INSERT, and UPDATE actions, or you can combine different actions into a single trigger. If you want to combine actions, select each Trigger On check box (DELETE, INSERT, and UPDATE). For example, if you want to extend the customized table override trigger "special order-line insert" to calculate the product_sold_quantity on UPDATE, DELETE, and INSERT of ORDER_LINE, select the DELETE, INSERT, and UPDATE check boxes. Then, change the SQL code to handle the conditions for recalculating product_sold_quantity under DELETE and UPDATE conditions.
Select one of the following to specify when to fire the trigger:
If you select this check box, enter a Referencing value for each option:
If you select the State check box, select one of the following:
Lists all the columns in the selected table for which an update to the column can be used as a triggering event.
Lists all the columns in the selected table for which an update to the column is a triggering event.
Displays the name of the selected table (if it is the parent table in a relationship) or the parent of the selected table, for each relationship in which the selected table is involved.
Displays the name of all the relationships for the selected table.
Lists the referential integrity rules that apply to the selected relationship. Rules are abbreviated and indicate the RI trigger action, such as CHILD UPDATE (CU).
Copyright © 2013 CA.
All rights reserved.
|
|