IBM Support

Perl Script to report Objectserver triggers

Technical Blog Post


Perl Script to report Objectserver triggers


This script can be used to generate a report with all the Objectserver triggers grouped by trigger status (enabled/disabled), trigger type (Insert/Reinsert/Update/Delete/temporal/signal), trigger order (before or after db action) and database table. The triggers are also sorted by their priorities.

The report is useful in investigating the enabled triggers on a certain objectserver as close as possible to their execution sequence.

The script respect the text formatting of the triggers code as it has been written during development.

You can include or exclude the triggers code from the report using "-c" option. You can also report only the enabled triggers using the -e option. The script uses the nco_sql (isql) to access the objectserver instead of using DBI perl module that might not be installed on the omnibus machine.

Usage: ./ [-s <Objectserver Name> -u <username> -p <password>] [-e] [-a]
Usage: -e => to only print the enabled triggers
Usage: -c => to include the triggers code in the output report
Usage: -a => to print database triggers for alert.status table only
Example: ./ -s NCOMS -u root -p generic -e -a

Script can be downloaded from the following link:

[{"Business Unit":{"code":"BU004","label":"Hybrid Cloud"},"Product":{"code":"","label":""},"Component":"","Platform":[{"code":"","label":""}],"Version":"","Edition":""}]