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

Update DML handler

The transaction is then propagated and applied to the destination table by the procedure specified as the DML handler. The procedure, besides inserting into the hist_upd table, executes the LCR event ( lcr.EXECUTE(true)  ).

The statement below shows the entry added to the hist_upd table at DNYOIP20 by way of the DML handler procedure NY4.WRITE_UPD_LCRS:

select TIMESTAMP, COMMAND_TYPE, OBJECT_NAME, TRANSACTION_ID, COMMIT_SCN, TX_NAME from  ny4.hist_upd
/
TIMESTAMP COMMAND_TYPE Table Name   TRANSACTIO COMMIT_SCN TX_NAME
--------- ------------ ------------ ---------- ---------- --------
30-OCT-04 UPDATE       ALLINSURED1  3.44.16636   14324527 MY_TXN10

The hist_upd table, which is written by the DML Handler procedure, provides a record of all the updates to the base table.

The next step is to examine the handlers for delete DML operations.

Delete DML Operation

There are some situations where deleting records may need to be controlled. Accidental deletes need to be avoided. If a deletion takes place, the DBA may not want to reflect the deletion at the destination and may want to record the details. This is where the Delete DML Handler would be very handy.


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