Supported Objects and Operations for DB2 LUW
Object and operations that are supported for DB2 LUW are:
-
Oracle GoldenGate Extract supports cross-endian capture where the database and Oracle GoldenGate are running on different byte order servers. The byte order is detected automatically for DB2 LUW version 10.5 or higher. If the DB2 database auto-detection on the DB2 LUW 10.5 database is not required then you can override it by specifying the
TRANLOGOPTIONS MIXEDENDIAN [ON|OFF]parameter. For DB2 LUW version 10.1, this parameter must be used in the Extract parameter file for cross-endian capture. SeeTRANLOGOPTIONSin Parameters and Functions Reference for Oracle GoldenGate. -
DB2 pureScale environment is supported.
-
Oracle GoldenGate supports the maximum number of columns and column size per table that is supported by the database.
-
TRUNCATE TABLE. -
Multi-Dimensional Clustered Tables (MDC).
-
Materialized Query Tables. Oracle GoldenGate does not replicate the MQT itself, but only the base tables. The target database automatically maintains the content of the MQT based on the changes that are applied to the base tables by Replicat.
-
Tables with
ROW COMPRESSION. In DB2 LUW version 10.1 and later,COMPRESS YES STATICis supported andCOMPRESS YES ADAPTIVEare supported. -
Extended row size feature is enabled by default. It is supported with a workaround using
FETCHCOLS. For any column values that areVARCHARorVARGRAPHICdata types and are stored out of row in the database, you must fetch these extended rows by specifying these columns using theFETCHCOLSoption in theTABLEparameter in the extract parameter file. With this option set, when the column values are out of row then Oracle GoldenGate will fetch its value. If the value is out of andFETCHCOLSis not specified then Extract will abend to prevent any data loss. If you do not want to use this feature, set theextended_row_sizeparameter toDISABLE.Extended row size feature is enabled, by default. It is supported with a workaround using
FETCHCOLSfor DB2 LUW 10.1. For any column values that areVARCHARorVARGRAPHICdata types and are stored out of row in the database, you must fetch these extended rows by specifying these columns using theFETCHCOLSoption in theTABLEparameter in the Extract parameter file. With this option set, when the column values are out of row, then Oracle GoldenGate fetches its value. If the value is out of andFETCHCOLSis not specified then Extract abends to prevent any data loss. If you do not want to use this feature, set theextended_row_size parametertoDISABLE. For DB2 LUW 10.5 and higher out of row values are captured seamlessly by Extract.FETCHCOLSis no more needed to capture out of row columns from these database versions. -
Temporal tables with DB2 LUW 10.1 FixPack 2 and greater are supported. This is the default for Replicat.
-
Supported options with
SHOWTRANSSHOWTRANS [transaction_ID] [COUNT n] [DURATION duration unit] [TABULAR][FILE file_name] | -
Options with
SKIPTRANSandFORCETRANS.SKIPTRANS transaction_ID [FORCE] FORCETRANS transaction_ID [FORCE] -
Limitations on Automatic Heartbeat Table support are as follows:
-
[THREAD n][DETAIL]is not supported. -
Oracle GoldenGate heartbeat parameters frequency and purge frequency are accepted in seconds and days. However, the DB2 LUW task scheduler accepts its schedule only in cron format so the Oracle GoldenGate input value to cron format may result in some loss of accuracy. For example:
ADD HEARTBEATTABLE, FREQUENCY 150, PURGE_FREQUENCY 20
This example sets the
FREQUENCYto 150 seconds, which is converted to the closest minute value of 2 minutes, so the heartbeat table is updated every 120 seconds instead of every 150 seconds. SettingPURGE_FREQUENCYto 20 means that the history table is purged at midnight on every 20th day. -
The following are steps are necessary for the heartbeat scheduled tasks to run:
-
Set the
DB2_ATS_ENABLEregistry variable todb2set DB2_ATS_ENABLE=YES. -
Create the
SYSTOOLSPACEtablespace if it does not already exist:CREATE TABLESPACE SYSTOOLSPACE IN IBMCATGROUP MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 4
-
Ensure instance owner has Database administration authority (DBADM):
GRANT DBADM ON DATABASE TOinstance_owner_name
-
-