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

 Delete DML Operation

                  SYS.AnyData.ConvertDate(SYSDATE));

   -- Apply row LCR as an INSERT into the NY4.hist_deletes table
    lcr.EXECUTE(true);
  END IF;
END;

In the above procedure, the LCR event has been altered as follows:

  • the command type has been changed to INSERT
     

  • the object_name has been changed to hist_deletes
     

  • the command type has been changed to NY4
     

  • a new column named TIME_OF_DML has been added and a value of SYSDATE has been assigned to it

The next step is the execution of the LCR event. This has the effect of the inserting to a new table called NY4.HIST_DELETES instead of the originally intended ALLINSURED1 table.

The procedure can be assigned as the DML Delete Handler by executing the following SQL statement:

-- To Assign Delete DML Handler, use the following SQL block
BEGIN
DBMS_APPLY_ADM.SET_DML_HANDLER(
 object_name      => 'ny4.allinsured1',
 object_type      => 'TABLE',
 operation_name   => 'DELETE',
 error_handler    => false,
 
user_procedure   => 'ny4. write_del_lcrs',
 apply_database_link => NULL,
 apply_name => NULL);
END;
/


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