Phone (800) 766-1884 for immediate Oracle support & training
Free Oracle Tips

Home Home
Oracle Monitoring
Growth Monitoring
Emergency DBA Support
Installs & Upgrades
Oracle Migration
Oracle Support Plan
Oracle SQL Tuning
Oracle Performance Tuning

 Our Remote DBA Clients

 

Free Oracle Tips


 
HTML Text

Free Oracle App Server Tips


 
HTML Text

 

   
  Oracle Tips by Burleson

Oracle Streams
Chapter 10 - Streams for Heterogeneous Replication

User Application Enqueue

To update a row and change the ticker AMZN to QCOM and also change the other columns’ values, use the following SQL block:

DECLARE
  newunit1        SYS.LCR$_ROW_UNIT;
  newunit2        SYS.LCR$_ROW_UNIT;
  newunit3        SYS.LCR$_ROW_UNIT;
  newunit4        SYS.LCR$_ROW_UNIT;
  new_vals        SYS.LCR$_ROW_LIST;
  old_vals        SYS.LCR$_ROW_LIST;

BEGIN
newunit1 := SYS.LCR$_ROW_UNIT( 'TICKER',   
  SYS.AnyData.ConvertVarchar2('AMZN'),
  DBMS_LCR.NOT_A_LOB, NULL, NULL)

newunit2 := SYS.LCR$_ROW_UNIT( 'OPEN_PX',  SYS.AnyData.ConvertNumbe
(40.45), DBMS_LCR.NOT_A_LOB, NULL, NULL);

newunit3 := SYS.LCR$_ROW_UNIT( 'CLOSE_PX', SYS.AnyData.ConvertNumbe
(40.90), DBMS_LCR.NOT_A_LOB, NULL, NULL);

newunit4 := SYS.LCR$_ROW_UNIT( 'PX_DATE',  SYS.AnyData.Convertdate( trun
(sysdate) ), DBMS_LCR.NOT_A_LOB, NULL, NULL);

old_vals := SYS.LCR$_ROW_LIST(newunit1, newunit2, newunit3, newunit4);


The above text is an excerpt from:

Oracle Streams
High Speed Replication and Data Sharing

ISBN 0-9745993-5-2

by Madhu Tumma
 


    Need an Oracle Health Check?

Does your boss blame you for an Oracle performance problem? 
Need to prove that your database is properly optimized?

BC Oracle performance guru's can quickly verify every aspect of your Oracle database and provide a complete certification that your database is fully optimized.

Burleson Oracle consulting & training



 

 

WISE Oracle monitoring software
 

 

Oracle forum for DBA 

 

Rampant TechPress Oracle book publisher

image 

  

 

E-mail us for BC Oracle support:   

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

Oracle® is the registered trademark of Oracle Corporation.