IBM Books

Installing and Configuring DB2 Clients


Setting Your Environment on Windows 3.1

The DB2 environment on Windows 3.1 is not controlled by profile registries. Instead, Windows 3.1 clients define environment keywords in the file db2.ini (typically found in c:\windows directory).

* Figure hint not displayed.

On Windows 3.1, the parameters that control the DB2 environment are called environment keywords. However, because many Windows 3.1 keywords are also used on operating systems that use the DB2 profile registries, environment keywords may also be referred to as registry values in this manual.

The db2.ini initialization file is an ASCII file that stores values for the Windows 3.1 client environment keywords. Within the file, there is just one section header titled [DB2 Client Application Enabler].

The parameters are set by specifying a keyword with its associated keyword value in the form:

   Keyword=keywordValue

Notes:

  1. All the keywords and their associated values must be located below the section header.

  2. The keywords are not case sensitive; however, their values can be if the values are character based.

  3. Comment lines use a semi-colon in the first position of a new line.

  4. Blank lines are permitted. If duplicate entries for a keyword exist, the first entry is used (and no warning is given).

The following is a sample db2.ini file:

   [DB2 Client Application Enabler]
   DB2PATH=C:\SQLLIB\WIN
   DB2INSTANCE=DB2
   DB2INSTPROF=C:\SQLLIB
   DB2TRACEON=N

This file is located in the Windows product directory. For example, it would typically be found in c:\windows directory in a native Windows environment.

On Windows 3.1, Client Application Enabler for DB2 Version 2.1 and Version 5 must set this information only in the db2.ini file.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]