Apply Triggeres to progress openedge database

250 Views Asked by At

I have done a progress openedge db installation and restore a backup from existing DB. When I run the application I got to know that some triggers are not there in my new database.

I have found some triggeres sql in my original database adn now I want to execute them in my new db environment.

There are around 50 triggers and all are in .sql format. Also those are java triggers.

could some one guide me how to execute those triggers in my new db

1

There are 1 best solutions below

5
On

Use SQLSCHEMA utility with original database to dump all the triggers.

Example:

sqlschema -u dbauser -a oesqldba -T %.% progress:T:localhost:8165:testdb -o mytriggers

This will create a file mytriggers.dfsql which contains all your trigger definitions. Use this file to create triggers (just a copy paste in SQLExplorer) in your database and use them.