6.1. Client and Server Connectivity: The Big PictureFigure 6.1 illustrates a simplified overview of what is required to connect from a DB2 client to a DB2 server. Figure 6.1. The big picture of client and server connectivityTo connect to a remote database (a database that resides in a machine other than the client machine), follow this two-step process.
To connect to a local database (a database that resides in the same machine as the client machine), the create database command stores the required information in the system and local database directories automatically for you. In the next sections you will also learn about the Database Connection Services (DCS) directory, which is required to connect to a DB2 server on the z/OS, OS/390, and iSeries platforms. We first show you how to enter the information in the DB2 directories using DB2 commands. Once you are familiar with the commands, we show you how to configure client-server connectivity using the Configuration Assistant (CA), which populates these directories behind the scenes. NOTE The Configuration Assistant and the Configuration Advisor (introduced in Chapter 5, Understanding the DB2 Environment, DB2 Instances, and Databases) are different tools. The Configuration Assistant is mainly used to set up client-server connectivity, while the Configuration Advisor is used exclusively to configure database manager and database configuration parameters. |