When Intelligent Converters software is installed on the same machine where IBM DB2 server is running, all is set and migration tool can be used right away. Otherwise, it is necessary to install and configure IBM client software. Basically there are two variations of DB2 client: IBM Data Server Driver/Runtime/Client and IBM CLI Driver.
All these variations of DB2 client software include command line processor and can be configured by running the following DB2 command:
db2 catalog tcpip node nodename remote hostname server service_name
Where:
You can verify that all parameters were specified correctly by running the following statements:
db2 attach to nodename user username using password db2 list applications db2 detach
Where:
There are two ways of configuring connection for IBM DB2 CLI and ODBC drivers - via settings in db2cli.ini or db2dsdriver.cfg configuration files. These files must be located in "cfg" subfolder of the driver installation. When connection settings are specified using both options, they are used in the following order:
This is example of db2cli.ini for connection to database "db1" running on host 11.22.33.44 with opened port 56789:
[db1] Database=db1 Protocol=tcpip Hostname=11.22.33.44 Servicename=56789
And here is example of db2dsdriver.cfg for connection to database "sample" running on host server.domain.com with opened port 333:
<configuration> <dsncollection> <dsn alias="myDSN" name="sample" host="server.domain.com" port="11111"> </dsn> </dsncollection> <databases> <database name="sample" host="server.domain.com" port="333"> <parameter name="CommProtocol" value="TCPIP"/> <parameter name="UID" value="username"/> </database> </databases> </configuration>
Have questions? Contact us