Oracle® OLAP DML Reference 10g Release 1 (10.1) Part Number B10339-02 |
|
|
View PDF |
A TRIGGER_AFTER_UPDATE program is a program that you create and that Oracle OLAP checks for by name when an UPDATE statement executes. When the program exists in the same analytic workspace that you are updating, Oracle OLAP executes the program after executing the UPDATE.
Note: The USETRIGGERS option must be set to its default value ofTRUE for a TRIGGER_AFTER_UPDATE program to execute |
See also: A TRIGGER_AFTER_UPDATE program is only one of a number of trigger programs that you can write. You can write other trigger programs as described in TRIGGER command, TRIGGER_BEFORE_UPDATE, TRIGGER_DEFINE, and "Trigger Programs". |
Notes
Oracle OLAP does not support recursive triggers. You must set the USETRIGGERS option to NO
before you issue an UPDATE statement within a TRIGGER_AFTER_UPDATE program.
Syntax
To create a program with the name TRIGGER_AFTER_UPDATE
, follow the guidelines presented in "Trigger Programs".
Examples
Example 24-11 TRIGGER_AFTER_UPDATE Program
Assume you have defined the following program in your analytic workspace.
DEFINE TRIGGER_AFTER_UPDATE PROGRAM PROGRAM SHOW JOINCHARS ('calltype = ' CALLTYPE) SHOW JOINCHARS ('triggering event = ' TRIGGER(EVENT)) SHOW JOINCHARS ('triggering subevent = ' TRIGGER(SUBEVENT)) END
When you issue an UPDATE statement the program executes and displays the following output.
calltype = TRIGGER triggering event = AFTER_UPDATE triggering subevent = AW