This section provides an overview of how DB2 clients connect to DB2 servers. This information can help you understand the various areas where connectivity problems typically occur.
Client workstations are connected to a DB2 server through a communication protocol (for example, TCP/IP, APPC, NetBIOS, or IPX/SPX). This connection enables applications to run on a client and interact with DB2. Examples of applications are Lotus Approach, Microsoft Access, or user-written applications.
When an application needs to access a database, it uses a CONNECT statement. The database alias identified in the CONNECT statement references an entry in the client's database directory. This entry contains these important elements:
The node directory indicates where the database is physically located. Each node directory entry specifies which network communication protocol to use to connect to the database, and the protocol parameter values required to make the connection.
The database directory and node directory ensure that access to a database is transparent to users and applications, regardless of where the database physically resides. If a database has been cataloged correctly on the client, you can connect to the database if you know the local database alias name.
See the Quick Beginnings guide for your platform for details on maintaining the information in the database and node directories.
In addition to the directories, the following are required for client communications to a DB2 server:
(On Windows 3.1, environment variables are stored in the db2.ini file and can be updated by editing this file. On Macintosh systems, there is a DB2 preferences file.)
Refer to the Quick Beginnings guide for your platform for details on client connectivity.
After installing DB2, you can use the following tools on the OS/2, Windows NT, or Windows 95 operating systems to connect a client to a database on a server:
Note that the communication protocol stack must already be set up.
Alternatively, use the command line processor to set up clients on UNIX-based environments. See the Command Reference for information on the CATALOG DATABASE and CATALOG protocol NODE commands.
For more information, see your Quick Beginnings guide.