Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can one avoid a loop when remote tables are updating each other via triggers?

0
Posted

Can one avoid a loop when remote tables are updating each other via triggers?

0

Triggers can easily cause replication errors and even infinite loops in a replicated environment. This happens as the trigger fire more than once on the same data. For example, consider a trigger that inserts a row into a table. When this row is replicated to a remote database(s), the trigger will fire again on the same data, and re-insert a duplicate row into the table. This problem can be solved by using the DBMS_REPUTIL.FROM_REMOTE function.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.