Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
IBM InfoSphere Replication Server and Data Event Publisher

You're reading from  IBM InfoSphere Replication Server and Data Event Publisher

Product type Book
Published in Aug 2010
Publisher Packt
ISBN-13 9781849681544
Pages 344 pages
Edition 1st Edition
Languages
Concepts
Authors (2):
Pav Kumar-Chatterjee Pav Kumar-Chatterjee
Profile icon Pav Kumar-Chatterjee
Pav Kumar Chatterjee Pav Kumar Chatterjee
Profile icon Pav Kumar Chatterjee
View More author details

Table of Contents (12) Chapters

IBM InfoSphere Replication Server and Data Event Publisher
Credits
About the Author
About the Reviewer
Preface
Q Replication Overview Q Replication Components The DB2 Database Layer WebSphere MQ for the DBA The ASNCLP Command Interface Administration Tasks Monitoring and Reporting

Registering a table for Q replication


For a table to participate in replication, it needs to have its DATA CAPTURE CHANGES flag set. Note that one of the effects of setting this flag is that the space required for DB2 logging will increase.

The flag is set automatically when a Q subscription is created or it can be set manually using the ALTER TABLE command shown next:

db2 ALTER TABLE <table-name> DATA CAPTURE changes

The DATA CAPTURE options are:

+-DATA CAPTURE--+-NONE---------------------------------+---
'-CHANGES--+-------------------------+-'
'-INCLUDE LONGVAR COLUMNS-'

The INCLUDE LONGVAR COLUMNS parameter allows data replication utilities to capture changes made to LONG VARCHAR and LONG VARGRAPHIC columns. The clause may be specified for tables that do not have any LONG VARCHAR or LONG VARGRAPHIC columns since it is possible to ALTER the table at a later date to include such columns.

We can check if the flag has been set for a table using the following query:

db2 "SELECT SUBSTR(tabschema...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}