DB2 LUW Setting up Shadow Tables

Just heard someone at IDUG EMEA 2016 asking about how to setup DB2 LUW shadow tables.

This will depend upon DB2 Version,you also need a compatible CDC (Infosphere Replication) version,check via Finding System Requirements for IBM Software Products.

The steps are at http://www.smooth1.co.uk/db2/cancun.html#1.1

NOTE: This was written when the feature first came out DB2 LUW 10.5 FP4.

CDC Components to download were:

  • InfoSphere CDC for DB2 for LUW
  • InfoSphere CDC Access Server
  • InfoSphere CDC Management Console

Finding System Requirements for IBM Software Products.

IBM has a  Software Product Compatibility Reports facility.


DB2 LUW 11.1

DB2 11.1 has been announced with a download date of June 15 2016

Potential new features are:

Core workloads

Enterprise Encryption supports Centralized Key Managers (KMIP)

Support for Encryption to use  KMIP 1.1 with a Centralized Key Manager

– update dbm cfg using keystore_type kmip

– update dbm cfg using keystore location /home/justdave/isklm.cfg

Config file contains host, port number etc.

Technology Preview of support for Hardware Security Modules

Simpler Deployment

Greater Availability

Zero Data Loss HADR

More online management

More platforms supported

Power Linux (LE) supported

Virtualization for RDMA (x86) supported

Very Large Database Performance

Faster throughput

Better upgrades

DB2 9.7 and higher can be directly upgraded to DB2 11.1 (support for upgrades from 3 releases back)

Online upgrades with no need for an offline backup.

A recovery procedure including roll-forward thtough a database upgrade exists. This does not include DPF and requires upgrading from DB2 10.5 FP7 or higher.

Steamlined HADR upgrade

HADR environments can be upgraded with need to re-initialized the secondary. This does not apply to Purescale and requires upgrading from DB2 10.5 FP7 or higher.

Warehousing workloads

MPP supports BLU

DPF renamed to MPP

Faster ELT/ETL Performance

More Query Workloads Optimized

More functions supported

Generated Columns


OLAP+BLU Performance increased

Multi-Lingual SQL Advances

Postgres syntax

Support for European Languages

Codepage 819


DB2 10.5 Fixpack 6 is out

DB2 10.5 Fixpack 6 is out


“Fix Pack 6 does not contain new enhancements, and there were no changes to the existing functionality. This fix pack and future fix packs will deliver only APAR and security vulnerability fixes.”

Managing GSKit Master Keys


Managing GSKit Master Keys

How do you enable a JDBC trace for a Java Stored Procedure or Java UDF?


How do you enable a JDBC trace for a Java Stored Procedure or Java UDF?


How do you enable a JDBC trace for a Java Stored Procedure or Java UDF?

Issue the following command on the database server:

db2set DB2_JVM_STARTARGS=”-Ddb2.jcc.override.traceLevel=-1 -Ddb2.jcc.override.traceFile=/tmp/jdbc_trace -Ddb2.jcc.override.traceFileAppend=true”

… where /tmp/jdbc_trace can be any path/file name that has write privilege by the DB2 fenced user id.

If the database manager configuration parameter KEEPFENCED is set to YES, then this command will require the DB2 instance to be recycled:


To remove this parameter issue the command:


… and then restart the DB2 instance again (assuming KEEPFENCED=YES is used).

Binding DB2 Base Packages for Various Versions


Binding DB2 Base Packages for Various Versions