复制完成后运行程序
我有 2 个数据库,并使用它们之间的复制来复制一个模式。 (Oracle Streams)
是否可以添加一个表触发器或类似的东西,以便在远程数据库中添加新数据后调用(对于每一行更好)?
我尝试更新和插入触发器 - 它们没有被触发。
I have 2 dbs and use replication between them to replicate one schema. (Oracle Streams)
Is it possible to add on one table trigger or smthing like this to be invoked after new data added in remote db (better for each row)?
I try triggers on update and insert - they are not fired.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据您尝试实现的逻辑类型,您可能需要创建自定义应用处理程序或包含自定义操作的应用规则。 《流概念和管理》手册中有关高级规则概念的章节 可能是一个开始查看可用选项的好地方。
Depending on exactly what sort of logic you are trying to implement, you would either want to create a custom apply handler or an apply rule that would include your custom actions. The chapter in the Streams Concepts and Administration manual on Advanced Rule Concepts is probably a good place to start to see what options are available.
当我们在 2 个数据库之间复制表时,我们也会复制触发器。
但是在目标数据库上应用进程会在目标表上禁用触发器。
要强制在目标数据库上执行触发器,需要运行以下过程:
When we replicate tables between 2 dbs also we replicate triggers.
But apply process on dest db disable triggers on dest table.
To force trigger execution on dest db need to run such procedure: