This section provides an overview of how DB2 clients connect to DB2 servers. This information can help you understand the areas where connectivity problems typically occur.
Client workstations are connected to a DB2 server through a communications protocol (for example, TCP/IP, APPC, Named Pipes (NPIPE), 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.
The catalog node number represents a node as defined within the db2nodes.cfg file, where the CREATE DATABASE statement was issued. All system catalog tables for that database reside on the specified node.
For more information about maintaining the information in the database and node directories, see the Quick Beginnings guide for your platform.
In addition to the directories, the following are required for client communications to a DB2 server:
For example, to temporarily override the dft_client_comm configuration parameter, the DB2CLIENTCOMM registry variable can be modified.
For details on client connectivity, see the Quick Beginnings guide for your platform.
After installing DB2, you can use the following tools to connect a client to a database on a server:
Note: | The communications protocol stack must already be set up. |
Alternatively, use the command line processor to set up clients in UNIX-based environments. Refer to the Command Reference for information on the CATALOG DATABASE and CATALOG protocol NODE commands.
For more information, see the Quick Beginnings guide for your platform.