Configuring DSN using IBM® Db2 Client in IBM SPSS Modeler
If required, to configure a data source name (DSN) using Db2® Client for Db2 in SPSS® Modeler, complete the following steps:
- If not already installed, install Db2 Client on the operating system where Modeler Server is installed.
- Using the db2 catalog command, catalog the database and add a new data source to the db2cli.ini file in Db2 Client. Be sure to point to the defined database alias.
- Configure data access; detailed steps are available in the Modeler documentation.
For more information, see Data Access.
- Create a new ODBC data source in odbc.ini by referencing the database alias defined in step 2.
- For Linux or UNIX users:
- Ensure that the driver library libdb2o.so is used (instead of libdb2.so), and make sure 'DriverUnicodeType=1' is defined for the new data source.
- In the IBM SPSS Data Access Pack installation, ensure that the library path of Db2 Client is added to odbc.sh.
- Ensure that Modeler Server uses an ODBC Driver wrapper library with UTF-16 encoding (this is called 'libspssodbc_datadirect_utf16.so').
- Make sure that the user who connects to Db2 has the necessary privileges to run the following
query:
SELECT ACCELERATORNAME FROM SYSACCEL.SYSACCELERATORS