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


Oracle Consulting Support
Oracle Upgrades
Use New Oracle Features
Oracle Replication Support
Oracle Training
Remote Oracle DBA
System Documentation
Oracle Tips
Oracle Performance
 

Free Oracle Tips


 

HTML Text

BC Oracle tuning

Oracle training

Oracle support

Remote Oracle

 

 

   
  Oracle Tips by Burleson

Oracle Streams
Chapter 2 - Streams Components and Processes

Database Level Logging

When using the identification key logging method, the database can be instructed to log all the columns in primary key, foreign key, and unique constraints. This would be applicable for the tables in the source database. This method is followed when the intention is to capture changes for the entire database.

The following SQL statement sets up the database level logging using the identification key log method:

SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA
     (primary key, unique, foreign key) COLUMNS ;

There is also an available option for specifying a particular type of attribute or ALL. These concepts are explained next.

  • ALL - This option specifies that when a row is updated, all columns of that row, except LOBs, LONGS, and ADTs, are placed in the redo log file. To enable ALL column logging at the database level, execute the following:

SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS;

  • PRIMARY KEY - This option causes the database to place all columns of a row’s primary key in the redo log file whenever a row containing a primary key is updated, even if no value in the primary key has changed. To enable PRIMARY KEY logging at the database level, execute the following:

SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY) COLUMNS;


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

  
 

Oracle performance tuning software 
 
 
 
 

Oracle performance tuning book

 

 
 
 
Oracle performance Tuning 10g reference poster
 
 
 
Oracle training in Linux commands
 
Oracle training Excel
 
Oracle training & performance tuning books
 

 

   

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

Oracle® is the registered trademark of Oracle Corporation.