IBM Books

Quick Beginnings


Configuring NetBIOS on the DB2 Connect Server

To access a remote server through NetBIOS, you must first have installed and configured communication software for both the client and DB2 Connect server workstations. See "Software Requirements" for the communication protocol requirements for your platform. See "Possible Client-to-DB2 Connect Gateway Connectivity Scenarios" for the supported communication protocols for your particular client and server.

Before completing the steps in this section, be sure that you have completed the instructions in "Setting the DB2COMM Registry Value".

The following steps are required to set up NetBIOS communications:

  1. Identify and record parameter values.

  2. Configure the server:

    1. Configure the NetBIOS Interface.

    2. Update the database manager configuration file.

Step 1. Identify and Record Parameter Values

As you proceed through the configuration steps, complete the Your Value column in the following table. You can fill in some of the values before you start configuring this protocol.

Table 22. NetBIOS Values Required at the DB2 Connect Server
Parameter Description Sample Value Your Value
Adapter number (Adapter_number)

The logical network adapters that will be used for the NetBIOS connection.

The server uses adapter 0 by default.

0  
Workstation name (nname)

The NetBIOS name of the server workstation.

nname is a name, chosen by the user, which must be unique among all NetBIOS nodes in the network.

server1  

Step 2. Configure the DB2 Connect Server

The following steps describe how to configure this protocol on the server. Replace the sample values with your values and record them on your worksheet.

A. Configure the NetBIOS Interface

This section describes how to configure the NetBIOS interface on your OS/2 or Windows NT DB2 Connect server.



* Figure hint not displayed.

DB2 uses registry values to control its use of the NetBIOS resources on the server. Use the db2nbadapters registry parameter when you want to specify a value other than the default Logical adapter number 0.

For the DB2 server, set the db2nbadapters parameter by issuing the db2set db2nbadapters=Adapter_number command.

For the Administration Server, set the db2nbadapters parameter by issuing the db2set db2nbadapters=Adapter_number -i DB2DAS00 command.

For more information, see Chapter 39. "Controlling Your DB2 Environment".

To view or modify the NetBIOS interface configuration, which maps network routes to adapter numbers, do the following:

B. Update the Database Manager Configuration File

You must update the database manager configuration file with the server's Workstation name (nname) parameter.

To update the database manager configuration file, perform the following steps:

  1. Log on to the system as a user with System Administrative (SYSADM) authority.

    note

    If you have trouble logging on to the system, see "Logging on to the System".

  2. Update the database manager configuration file with the server's Workstation name (nname) parameter using the following commands in the command line processor:
       update database manager configuration using nname nname
       db2stop
       db2start
    

    For example, if the server's workstation name (nname) is server1, use:

       update database manager configuration using nname server1
       db2stop
       db2start
    

    If you are configuring the Administration Server for NetBIOS, you must update the admin server configuration file, use:

       update admin configuration using nname server1
       db2admin stop
       db2admin start
    


note

If you are configuring a DB2 Connect for OS/2 server, you are now finished the configuration and are ready to install a DB2 client. Go to Chapter 26. "Installing DB2 Clients" for more information.

Autostarting DB2 with NetBIOS (for Windows NT only)

If your NetBIOS protocol was configured during installation, the setup program automatically created a dependency for the Administration Server and the default instance (DB2) on NetBIOS. If you create additional instances of DB2, you will have to manually create a dependency on NetBIOS for each new instance.

You can create this dependency with the db2depnb command as follows:

  1. Go to the x:\sqllib\misc directory, where x: is the drive on which DB2 was installed

  2. Enter the db2depnb command as follows:
    db2depnb instance_name
    

This records a dependency on the startup order which causes NetBIOS to start before DB2.

note

If you remove the NetBIOS protocol from your network, you must remove the dependencies that were created during installation, and any dependencies that you created for additional instances. Failure to remove these dependencies may cause problems when running DB2 after the NetBIOS protocol has been removed from the network.

To remove a dependency, enter the db2depnb command as follows:

   db2depnb instance_name /r



note

Now that you have configured the server, you are ready to install a DB2 client. Go to Chapter 26. "Installing DB2 Clients" for more information.


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

[ DB2 List of Books | Search the DB2 Books ]