简体   繁体   English

将触发器应用于进度打开的数据库

[英]Apply Triggeres to progress openedge database

I have done a progress openedge db installation and restore a backup from existing DB. 我已经完成了openge 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. 我现在在我的原始数据库中发现了一些触发器sql,现在我想在新的数据库环境中执行它们。

There are around 50 triggers and all are in .sql format. 大约有50个触发器,并且都是.sql格式。 Also those are java triggers. 这些也是Java触发器。

could some one guide me how to execute those triggers in my new db 有人可以指导我如何在新数据库中执行那些触发器吗?

Use SQLSCHEMA utility with original database to dump all the triggers. 将SQLSCHEMA实用程序与原始数据库一起使用,以转储所有触发器。

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. 这将创建一个文件mytriggers.dfsql,其中包含所有触发器定义。 Use this file to create triggers (just a copy paste in SQLExplorer) in your database and use them. 使用此文件可在数据库中创建触发器(只是在SQLExplorer中复制粘贴)并使用它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM