IBM Books

Application Building Guide


Enabling Communications on the Server

This section explains how to connect to DB2 Universal Database servers.

Before you begin installing, cataloging, and binding the sample database, you should ensure that the server is operational and configured to support the protocol being cataloged. Do the following on the server:

  1. Ensure that the db2comm environment variable is set. For example, enter:

       db2set DB2COMM=tcpip
    

  2. Ensure that the protocol for TCP/IP support is configured.

    Refer to your platform's Quick Beginnings book for instructions on adding the TCP/IP settings to the Services file.

  3. Start the database instance by entering:

       db2start
    

Windows NT

In a DB2 for Windows NT production system, you have to start the database instance as a service. The steps are as follows:

Note:Starting the Security Service automatically. Normally the only time you would want to set the security service to start automatically is if the workstation is acting as a DB2 client connecting to a server that is configured for Client Authentication. To have the security service start automatically, do the following:

  1. Click on the "Start" button.

  2. Click on "Settings".

  3. Click on "Control Panel".

  4. In the Control Panel, click on "Services".

  5. In the Services window, highlight "DB2 Security Server".

  6. If it does not have the settings "Started" and "Automatic" listed, click on "Startup".

  7. Click on "Automatic".

  8. Click on "OK".

  9. Reboot your machine to have the settings take effect.


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

[ DB2 List of Books | Search the DB2 Books ]