IBM Books

Troubleshooting Guide


Overview of Client Connectivity

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 communication protocol (for example, TCP/IP, APPC, 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, refer to the Quick Beginnings guide for your platform.

In addition to the directories, the following are required for client communications to a DB2 server:

For details on client connectivity, refer to the Quick Beginnings guide for your platform.

Client Connectivity Tools

After installing DB2, you can use the following tools to connect a client to a database on a server:

Setup Communications
Sets up communications for server instances, including those that are remote UNIX-based environments. To update communications for a server instance, select its object from the Control Center and select Setup Communications from the pop-up menu.
Note:The communication protocol stack must already be set up.

Client Configuration Assistant
Lets you define connections to databases so that the databases can be used by applications.

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, refer to the Quick Beginnings guide for your platform.


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

[ DB2 List of Books | Search the DB2 Books ]