To create and configure datasource entries for DRDA, specify the required parameters settings in the ODBC Data Source Administrator dialog.
The General parameters specify the connectivity settings. The required parameters are indicated by an asterisk (*)
Parameter |
Comments |
---|---|
*Data Source Name |
Type a string that identifies this DB2 datasource configuration in the system information. If you are:
|
Description |
Type an optional descriptive comment for this datasource definition. |
*Ip address |
Type the Internet Protocol (IP) address of the machine where the catalog tables are stored. Specify the address using the machine's numeric address (for example, 123.456.78.90) or specify its host name. If you enter a host name, the driver must find this name (with the correct address assignment) in the HOSTS file on the workstation or in a data source name (DSN) server. |
*TCP Port |
Enter the port number that is assigned to the DB2 server on the machine where the catalog tables are stored. Specify either this port's numeric address or its service
name. The default numeric port address varies depending
on the OS of the DB2 server machine. The default for:
If you specify a service name, the driver must find this name (with the correct port assignment) in the SERVICES file on the workstation. |
*Location Name |
This field is valid only if you are connecting to a DB2 database running on OS/390 or AS/400. Type the DB2 location name, using the name defined during the local DB2 installation. Note: This field is disabled if the Database Name field is
populated.
|
*Collection |
This field is valid only if you are connecting to a DB2 database running on OS/390 or AS/400. Type the name that identifies a group of packages. These packages include the DB2 DRDA driver packages. The default for:
Note: This field is disabled if the Database Name field is
populated.
|
*Database Name |
This field is valid only if you are connecting to a DB2 database running on Windows. Type the name of the database to which you want to connect. Note: This field is disabled if the Location Name field is
populated.
|
*Package |
Enter the name of the package that the driver uses to process static and dynamic SQL for applications that use this datasource definition. The default name is DEFxx, where xx is the version number. |
Default User ID |
Not used by ECDA. |
WorkArounds2 |
The name of the string key to allow the driver to pad the DB2 char for bit data field with spaces. The value is 131072. See the WorkArounds2 string key procedure . |
Parameter |
Comments |
---|---|
Add to Create Table |
Use Add to Create Table to append the in tablespace clause to create table commands. |
Alternate ID |
Enter a value to be substituted at connect time for the current schema. This sets the default qualifier for unqualified object names in SQL statements. If the attempt to change current schema fails, the connection fails with Invalid value for Alternate ID. DB2 permissions should be set to SYSADM. (Not valid for AS/400 V4R5 and V5R1.) |
*WithHold Cursors |
Select this option for ECDA. It determines whether cursors are preserved or deleted after a commit or rollback. |
*Application Using Threads |
This option is required for ECDA. |
The Bind tab allows you to create the bind packages on the server that is used by the driver and specify the behavior of the package.
Before the DRDA driver can be used, you must create the required packages and bind them to the DB2 system. The driver does not work properly with any server that does not have the packages created. After the packages are created, you can rebind them with new bind parameters as needed.