You can make changes to existing
triggers, such as modifying the attributes and versions.
About this task
Use the AL line command to make changes that can made by an ALTER TRIGGER statement. Use
the ALT command to make other changes.
Procedure
To alter a trigger:
-
On the DB2 Administration Menu
(ADB2) panel, select option
1, and press Enter.
-
On the System Catalog
(ADB21) panel, select option
J, and press Enter.
-
On the Triggers (ADB21J)
panel, specify the AL or ALT
line command.
This example assumes that you want to make a simple change that can be achieved by
using an ALTER statement and therefore uses the AL line command:
The remaining instructions apply to the AL line command. For instructions on how
to use the ALT line command, see ALT (Alter) function.
One of the following versions of the
Alter Trigger
(ADBPJA) panel is displayed:
- Options for editing trigger versions:
- Basic options:
-
On the Alter Trigger
(ADBPJA) panel specify the
appropriate options, and press Enter.
-
If the Alter Trigger
(ADBPJA1) panel is displayed,
specify your changes, and issue the NEXT command.
Db2 Admin Tool issues an ALTER
TRIGGER statement to make the changes.