Fixing incorrect Db2 configuration settings after an upgrade
For some older Data Gate versions, the configuration settings of the Db2 target database are not correctly migrated during an upgrade of a Data Gate instance. If this is the case, you must correct the settings settings of the target database manually.
About this task
You have installed and provisioned a Data Gate instance in Cloud Pak for Data version 4.7, 4.8, or 5.0 and have recently updgraded to a newer Data Gate version in Cloud Pak for Data 5.0.x or 5.1.0.
However, the configuration settings of the Db2 target database have not been correctly migrated during the upgrade.
The Db2 configuration settings applied during the upgrade are different from the settings that were used in conjunction with the older Data Gate instance.
In addition, the newer version requires more settings for the Db2 target database, and some of the additional values are not set during the upgrade, and are thus missing from the configuration.
You might encounter one or more of the following situations after the Data Gate upgrade:
DB2_SELECTIVITYis not set, which causes table loads to fail. You see the following error message:[AQT10050E] Unable to load tables. An internal error occurred on the '<data-gate-instance-name>' accelerator or Db2 Data Gate instance: ODBC operation SQLExecDirect failed with code -1 when executing statement: /* IBM_DWA */ CREATE OR REPLACE VIEW ... WHERE "DWA_Partition_ID (hidden)" <= 0 SELECTIVITY 1: <Diagnostics> <SQLSTATE>428E5</SQLSTATE> <SQLCODE>-20046</SQLCODE> <Tokens num="1"> <Token>n_ID (hidden)" <= 0 </Token> </Tokens> <Message>[IBM][CLI Driver][DB2/LINUXZ64] SQL20046N SELECTIVITY clause following "n_ID (hidden)" <= 0 " can only be specified for a valid user-defined predicate. SQLSTATE=428E5</Message> </Diagnostics>
DB2LOCK_TO_RBis not set toSTATEMENT, which has the following effect: Queries against the Db2 target database return results that are different from the results returned by the same query against the Db2 for z/OS source database.PAGE_AGE_TRGT_MCR,DB2MAXFSCRSEARCH,DB2_SELECTIVITY,DB2_STATISTICS, orDB2_APPENDERS_PER_PAGEare set to wrong values. This results in performance degradations with regard to table loads, the speed at which row changes are replicated, and the speed of query execution in the Db2 target database.DB2_WAITFORDATA_LIBNAMEis set to a wrong or empty value. This causes the failure of queries against the Db2target database.