Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Apply Process > Handling Triggers

Handling Triggers

When implementing Streams replication for tables that have triggers defined in both the source and destination databases, a common question is how Oracle Streams handles triggers in the destination database. Will the trigger fire and attempt to perform the same action that was performed at the source, or will it not fire and possibly create a data mismatch at the destination database? The answer depends on how the replication is configured, and how the trigger firing property is set at the destination database.

By default, the triggers at the destination database are not fired if the apply process, or the procedures that reapply transactions from the error queue, made the changes to the tables. The triggers are fired if a user process (or a SQL session) made the changes directly to the tables in the destination database.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint