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

-- Insert info about the LCR into the hist_upd table
INSERT INTO ny4.hist_upd VALUES
 (SYSDATE,
 lcr.GET_SOURCE_DATABASE_NAME(),
 lcr.GET_COMMAND_TYPE(),
 lcr.GET_OBJECT_OWNER(),
 lcr.GET_OBJECT_NAME(),
 lcr.GET_TAG(),
 lcr.GET_TRANSACTION_ID(),
 lcr.GET_SCN(),
 lcr.GET_COMMIT_SCN,
 blk_user,
 
blk_txname,
 blk_sid,
 lcr.GET_VALUES('old'),
 lcr.GET_VALUES('new', 'n') );
-- Apply row LCR
lcr.EXECUTE(true);
END;
/

From the above procedure, it is apparent that the old and new values of updated columns besides the other details can be saved into the table, NY4.HIST_UPD. Every update transaction is recorded into the table. It also records some additional attributes such as username, transaction name, etc.


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