Oracle Consulting Oracle Training Oracle Support Development
Home
Catalog
Oracle Books
SQL Server Books
IT Books
Job Interview Books
eBooks
Rampant Horse Books
911 Series
Pedagogue Books

Oracle Software
image
image
Write for Rampant
Publish with Rampant
Rampant News
Rampant Authors
Rampant Staff
  Phone
  252-431-0050
Oracle News
Oracle Forum
Oracle Tips
Articles by our Authors
Press Releases
SQL Server Books
image
image

Oracle 11g Books

Oracle tuning

Oracle training

Oracle support

Remote Oracle

STATSPACK Viewer

    Privacy Policy

 

   
 

ss

Oracle Tips by Burleson 

Oracle Streams
Chapter 6 -
Apply Handlers

DML Handlers

A user procedure that processes row LCRs resulting from DML statements is called a DML handler. An Apply process can have many DML handlers. Why are these important? It is because these handlers provide a mechanism to use the LCR information and execute custom operations on the database tables. There are many ways in which LCR information can be utilized. One instance would be to make changes to the payload and insert them at the destination or develop some kind of audit trail.

The Error handler is also a DML handler. In case of the Error handler, the parameter error_handler is set to TRUE.  In this case, the specified user procedure is run when a row LCR involving the specified operation on the specified object creates an Apply process error. The user procedure may try to resolve possible error conditions, or it may simply notify administrators of the error or it may log the error.

For each table associated with an Apply process, a separate DML handler can be set to process each of the following types of operations in row LCRs:

  • INSERT
     

  • UPDATE
     

  • DELETE
     

  • LOB_UPDATE

For example, the NY4.ALLINSURED1 table may have one DML handler to process INSERT operations, a different DML handler to process UPDATE operations, and yet another for DELETE operations.


The above text is an excerpt from:

Oracle Streams
High Speed Replication and Data Sharing

ISBN 0-9745993-5-2

by Madhu Tumma
 


Download your Oracle scripts now:

www.oracle-script.com

The definitive Oracle Script collection for every Oracle professional DBA

Linux Oracle commands syntax poster

ION Oracle tuning software

Oracle data dictionary reference poster



Oracle Forum

BC Oracle consulting support training

BC remote Oracle DBA   

 

   

 Copyright © 1996 -2011 by Burleson Enterprises. All rights reserved.


Oracle® is the registered trademark of Oracle Corporation. SQL Server® is the registered trademark of Microsoft Corporation. 
Many of the designations used by computer vendors to distinguish their products are claimed as Trademarks