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:
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 |
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.
This section describes how to configure the NetBIOS interface on your OS/2 or Windows NT DB2 Connect server.
If the db2nbadapters parameter is not set, the default adapter will be 0. If you want to use additional server adapters, or you need to specify a server adapter other than 0, set the db2nbadapters parameter to the number you want to use.
In order for a client to connect to a Windows NT server, the network route of the adapter number used must be Nbf for native NetBIOS operation. If the db2nbadapters parameter is not set, the default adapter will be 0. If you want to use additional server adapters, or you need to specify a server adapter other than 0, set the db2nbadapters parameter to the number that you want to use.
![]() |
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:
![]() |
Each adapter number must be uniquely associated with a network
route. Windows NT has a built in checking facility that will not allow
you specify the same adapter number for different network routes. If a
Network route already exists that is using the adapter number 0,
assign a different number to that route. (The valid range for adapter
numbers is 0 to 255.) This will allow you to select
0 as the adapter number that corresponds to Nbf.
Approve the changes by clicking on OK.
|
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:
![]() |
If you have trouble logging on to the system, see "Logging on to the System".
|
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
![]() |
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.
|
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:
db2depnb instance_name
This records a dependency on the startup order which causes NetBIOS to
start before DB2.
![]() |
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 |
![]() |
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.
|