How to: |
The Adapter for Db2 minimally requires the installation of the Db2 Client for the CLI type adapter or the Db2 load library for the CAF adapter. The Db2 Client allows you to connect to a local or remote Db2 server.
On Microsoft Windows, the Db2 environment is set up during the installation of Db2 client.
The adapter supports Unicode data. You must add DB2CODEPAGE=1208 to the Windows environment either by:
DB2CODEPAGE=1208
On UNIX, to set up the Adapter for Db2, do the following:
export DB2INSTANCE=db2
export INSTHOME=/usr/db2
export LD_LIBRARY_PATH=$INSTHOME/sqllib/lib:$LD_LIBRARY_PATH
Note that if the server is running with security on, the LD_LIBRARY_PATH variable is ignored. In this case, you must use IBI_LIBPATH.
export LANG=EN_US.UTF-8
To take advantage of adapter support for Unicode data, the Reporting Server must be configured with code page 65001.
Two types of Adapters for Db2 are available in this environment. Each one requires different pre-configuration steps prior to using the Web Console.
For the naming convention for the configuration data set, see the installation manual for z/OS.
The adapter makes use of the Db2 plan DSNACLI. To ensure that all users of the adapter have access to this plan, issue the following command in the Db2 environment:
GRANT EXECUTE ON PLAN DSNACLI TO PUBLIC
The adapter also uses the DSNAOINI environment variable or DSNAOINI DDNAME pointing to the Db2 CLI initialization file. You can provide this variable at installation time using the ISETUP panels, or you can add the variable manually to the EDAENV member of the installation data set after completing the installation.
The following is an example for the DSNAOINI environment variable.
DSNAOINI=full_path_name/db2cli.ini
The following is an example for the DSNAOINI DDNAME.
//DSNAOINI DD DSN=library(member),DISP=SHR
or
//DSNAOINI DD DSN=dataset,DISP=SHR
Unicode support. The adapter supports Unicode data in Db2 databases that have been created with the CCSID UNICODE option. You must ensure that the DSNAOINI environment variable or DDNAME points to a configuration file containing the following specification:
CURRENTAPPENSCH=UNICODE
Using the standard rules for deploying the Db2 Client, the server supports connections to:
When using Db2/CLI to connect to a remote Db2 data source, the Db2 client catalog must contain an entry for the node where the remote data source resides and an entry for the remote database name.
Support for Remote Aliases. An alias entry in a local Db2 system that points to a table in another Db2 system is only supported with the CREATE SYNONYM command. It is not supported for metadata queries when SET ENGINE=DB2 is in effect.
WebFOCUS | |
Feedback |