DB2 Connect Quick Beginnings PE

2. Update the APPC Profiles on the DB2 Connect Workstation

Use the completed worksheet in Table 5 to configure DB2 Connect APPC communications for access to a remote host or AS/400 database server.

Figure 00002671 not displayed.

Go to the sections that describe how to configure APPC communications on the platforms that are present in your network:

Configuring IBM eNetwork Communications Server for Windows

Before you begin, ensure that the IBM eNetwork Communications Server for Windows (supported on Windows NT and Windows 2000) you installed meets the following requirements:

__  1.

It is Version 5.0 or higher if you are planning to update multiple databases within the same transaction; if you are planning to use 2-phase commit then Version 5.01 of Communications Server for Windows is required

__  2.

The IBM Communications Server IEEE 802.2 LAN interface was installed (this is an installation option for Communications Server)

__  3.

The JR11529 and JR11170 APAR fixes have been applied. These fixes are required to enable cancelling of queries in progress by using Ctrl-BREAK or issuing the SQLCancel ODBC/CLI call.

__  4.

The LLC2 driver was installed from the Communications Server for Windows installation directory. During the installation, Communications Server for Windows asks if you want to install LLC2. If you are not sure whether LLC2 was installed with your copy of Communications Server for Windows, you can find out as follows:

  1. Click Start and select Settings --> Control Panel.
  2. Double-click on the Network icon.
  3. On the Network window, click on the Protocols tab. IBM LLC2 Protocol must be one of the protocols listed. If it is not, you need to install this protocol from your IBM Communications Server for Windows software. For more information, refer to documentation supplied with Communications Server for Windows.

To start IBM eNetwork Personal Server, perform the following steps:

Step  1.

Click on Start and select Programs -->IBM Communications Server --> SNA Node Configuration. The IBM Communications Server SNA Node Configuration window opens.

Step  2.

Select File --> New --> Advanced from the menu bar. The Configuration options window opens. Subsequent steps will begin from this window.
Configuration options window

To configure IBM eNetwork Personal Server for APPC communications, complete the perform the following steps:

Step  1.

Configure Node

  1. In the Configuration options field, select Configure Node, then click on the New push button. The Define the Node window opens.
  2. In the Fully qualified CP name fields, type in the network name ((9)) and the local control point name ((10)) (SPIFNET.NYX1).
  3. Optionally, in the CP alias field, type in a CP alias. If you leave this blank the local control point name ((10)) will be used (NYX1).
  4. In the Local Node ID fields, type in the block ID ((13)) and the physical unit ID ((14)) (05D.27509).
  5. Select the appropriate node type. The default is to select the End Node radio button.
  6. Click on OK.

Step  2.

Configure Devices

  1. In the Configuration options field, select Configure devices.
  2. Ensure that in the DLCs field, the appropriate DLC is highlighted. For example, LAN.
  3. Click on the New push button. The appropriate window opens with default values displayed. For example, the Define a LAN device window.
  4. Click on OK to accept the default values.

Step  3.

Configure the Gateway

  1. In the Configuration options field, select Configure the Gateway, then click on the New push button. The Define Gateway window opens.
  2. Click the SNA Clients tab.
  3. Ensure that there is a check mark in the Enable SNA API Client Services check box.
  4. Click OK to accept the default values.

Step  4.

Configure Connections

  1. In the Configuration options field, select Configure connections.
  2. Ensure that LAN is highlighted in the DLCs field.
  3. Click on the New push button. The Define a LAN Connection window opens.
  4. On the Basic tab panel:
    1. In the Link station name field, type in the name ((7)) from the worksheet (LINKHOST).
    2. In the Destination address field, type in the address ((8)) from the worksheet (400009451902).
  5. On the Security tab panel:
    1. In the Adjacent CP name fields, type in the network ID ((3)) and the Control Point name ((4)) (SPIFNET.NYX).
    2. In the Adjacent CP type field, select the appropriate CP type (for example, Back-level LEN).
    3. Ensure that TG number is set to 0 (the default).
    4. Click OK.

Step  5.

Configure Partner LU 6.2

  1. In the Configuration options field, select Configure partner LU, then click on the New button. The Define a Partner LU 6.2 window opens.
  2. In the Partner LU name fields, type in the network ID ((3)) and the Partner LU name ((2)) (SPIFNET.NYM2DB2).
  3. In the Partner LU alias field, type in the Partner LU name ((2)) from the worksheet (NYM2DB2).
  4. If you are configuring Communications Server for SNA Clients, in the Fully-qualified CP name fields, type in the Network ID ((3)) and the adjacent control point SSCP name ((4)) (SPIFNET.NYX).
  5. Leave the other fields blank. and click on OK.

Step  6.

Configure Modes

  1. In the Configuration options field, select Configure modes, then click on the New button. The Define a Mode window opens.
  2. In the Mode name field ((6)), type in the mode name (IBMRDB).
  3. Click on the Advanced tab and ensure that the Class of Service Name is set to #CONNECT.
  4. Accept the defaults for the other fields and click on OK.

Step  7.

Configure Local LU 6.2

  1. In the Configuration options field, select Configure local LU 6.2, then click on the New button. The Define a Local LU 6.2 window opens.
  2. In the Local LU name field, type in the name ((11)) from the worksheet (NYX1GW01).
  3. Enter a value for the LU session limit field. The default, 0, specifies the maximum allowed value.
  4. Accept the defaults for the other fields and click on OK.

Step  8.

Configure CPI-C Side Information

  1. In the Configuration options field, select Configure CPI-C Side Information, then click on the New button. The Define CPI-C Side Information window opens.
  2. In the Symbolic destination name field, type in the name ((16)) from the worksheet (DB2CPIC).
  3. In the Mode name field, enter in the name ((15)) from the worksheet (IBMRDB).
  4. Click on the radio button beside Use Partner LU alias and select a Partner LU alias.
  5. Specify the TP name. In the TP name field:
    • To specify a non-service TP, in the TP name field, enter the name of the non-service TP, for example DB2DRDA, and ensure that there is no check mark in the Service TP check box.
    • To specify a service TP, in the TP name field, enter the name of the service TP, for example 076DB, and ensure that there is a check mark in the Service TP check box.
  6. Accept the defaults for the other fields and click on OK.

Step  9.

Save the Configuration

  1. Select File --> Save as from the menu bar. The Save As window opens.
  2. Enter a file name, for example ny3.acg
  3. Click on OK.
  4. In the window that opens you are asked if you want this configuration to be the default. Click on the Yes push button.

Step 10.

Update the Environment

IBM Personal Communications uses an environment variable called appcllu to set the default APPC Local LU. You may set this variable on a per-session basis by opening a command window and typing set appcllu=local_lu_name, however you will probably find it more convenient to permanently set the variable. In order to permanently set the variable in Windows NT, complete the following steps:

Step  a.

Click on Start and select Settings --> Control Panel. Double-click on the System icon. When the System Properties window opens, select the Environment tab.

Step  b.

Enter appcllu in the Variable field, and enter your Local LU name ((11)) in the Value field.

Step  c.

Click Set to accept the changes then click OK to exit the System Properties window.

The environment variable will now remain set for future sessions.

Step 11.

Start SNA Node Operations

To start SNA node operations on your machine, complete the following steps:

Step  a.

Click on Start and select Programs --> IBM Communications Server --> SNA Node Operations. The SNA Node Operations window opens.

Step  b.

From the menu bar, click on Operations and select Start Node. In the dialog box that opens, select the configuration file you saved at the end of Step 2 (in our example, ny3.acg). Click OK.

SNA node operations will now begin running.

Step 12.

Registering Communications Server as a Windows Service

To automatically start Communications Server when the machine is booted, you can register it as a Windows service.

To register Communications Server as a Windows service execute one of the following commands:

   csstart -a

to register Communications Server with the default configuration, or:

   csstart -a c:\ibmcs\private\your.acg

where c:\ibmcs\private\your.acg represents the fully qualified name of the non-default Communications Server configuration file you want to use.

Whenever your machine is booted in the future, Communications Server will be started automatically with the required configuration file.



Figure 00002671 not displayed.

You now need to update the DB2 directories, bind utilities and applications to the server, and test the connection.

The easiest way to do this is to use the Client Configuration Assistant (CCA). For more information on using the CCA, go to Configuring DB2 Connect to Host or AS/400 Communications Using the CCA. However, you can also perform these steps manually, as described in 3. Catalog the APPC or APPN Node and the sections that follow.

Configuring IBM eNetwork Communications Server for Windows NT SNA API Client

Read this section if you have a Windows NT workstation that has IBM eNetwork Communications Server for Windows NT SNA API Client Version 5.0 or higher installed and you want to connect to an IBM eNetwork Communications Server for Windows NT Server.

The Communications Server for Windows NT Server and its SNA API client act as a split client. This configuration requires that you have an APPC-enabled application (such as DB2 Connect) running on the SNA API client workstation.



Figure 00002674 not displayed.

The instructions in this section use a Windows NT client. The instructions for other supported operating systems are similar; refer to your Communications Server for Windows NT documentation for more information.

To configure the Windows NT SNA API client for APPC communications, complete the following steps:

Step  1.

Create a user account for the SNA API client on the Communications Server for Windows NT Server

  1. Click Start and select Programs --> Administrative Tools (Common) --> User Manager. The User Manager window opens.
  2. Select Users --> New User from the menu bar. The New User window opens.
  3. Fill in the fields for the new SNA client user accout. For more information, refer to the Windows NT online help.
  4. Ensure that this user account is a member of the Administrators, IBMCSADMIN, and IBMCSAPI groups:
    1. Click Groups.
    2. Select a group from the Not member of box and click <- Add. Repeat this step for each group that your user account must belong to.
  5. Click OK.
  6. Click Add.

Step  2.

Start the configuration GUI for the IBM eNetwork CS/NT SNA API Client. Click Start and select Programs --> IBM Communications Server SNA Client --> Configuration. The CS/NT SNA Client Configuration window opens.
Configuration Options Screen

Step  3.

Configure Global Data

  1. In the Configuration options box, select the Configure Global Data option and click on the New push button. The Define Global Data window opens.
  2. Enter the user name for the SNA API client in the User name field. This is the user name that was defined in Step 1.
  3. Enter the password for the user account in the Password and Confirm Password fields.
  4. Click OK.

Step  4.

Configure APPC Server List

  1. In the Configuration options box, select the Configure APPC Server List option. Click on the New push button. The Define APPC Server List window opens.
  2. Type in the IP address of the server (for example, 123.123.123.123).
  3. Click OK.

Step  5.

Configure CPI-C Side Information

  1. In the Configuration options box, select the Configure CPI-C side information option and click New. The Define CPI-C side information window opens.
  2. Enter the symbolic destination name ((16)) in the Symbolic destination name field.
  3. Enter your Local LU alias ((12)) in the Local LU alias field.
  4. Enter the mode name ((15)) in the Mode name field.
  5. Enter the transaction program name ((17)) in the TP name field.
  6. Select the For SNA API Client use check box for this transaction program.
  7. Enter the network ID ((3)) and partner LU name ((2)) in the Partner LU name field.
  8. Click OK.

Step  6.

Save the Configuration

  1. Select File --> Save As from the menu bar. The Save As window opens.
  2. Enter a file name, and click Save.



Figure 00002671 not displayed.

You now need to update the DB2 directories, bind utilities and applications to the server, and test the connection.

The easiest way to do this is to use the Client Configuration Assistant (CCA). For more information on using the CCA, go to Configuring DB2 Connect to Host or AS/400 Communications Using the CCA. However, you can also perform these steps manually, as described in 3. Catalog the APPC or APPN Node and the sections that follow.

Configuring Microsoft SNA Server for Windows

This section describes how to configure Microsoft SNA Server Version 4.0 for Windows NT on your DB2 Connect workstation to connect to host or AS/400 database servers using APPC. Although Microsoft SNA Server will run on Windows NT 4.0 Workstation, Windows NT 4.0 Server is recommended.

If you wish to use DB2's Multisite Update feature with this product, your minimum requirement is Microsoft SNA Server Version 4 Service Pack 3. For more information, refer to Enabling Multisite Updates (Two-Phase Commit).

Figure 00002671 not displayed.

For instructions on how to configure Microsoft SNA Client for Windows, go to Configuring Microsoft SNA Client.

You can define the properties of your SNA connections in the Microsoft SNA Server Manager (Server Manager). The Server Manager uses an interface similar to that of the Windows NT Explorer. The following illustration shows the interface. There are two panes in the main window of the Server Manager. All the configuration options we will be using can be accessed by right-clicking on objects in the left-hand pane of the window. Every object has a context menu that you can access by right-clicking on the object.

To configure APPC communications for use by DB2 Connect using Microsoft SNA Server Manager, perform the following steps:

Step  1.

To start the Server Manager, click Start and select Programs --> Microsoft SNA Server --> Manager. The Microsoft SNA Server Manager window opens.
The Microsoft SNA Server Manager window

Step  2.

Define the control point name

  1. Click on the [+] sign beside the Servers folder.
  2. Right-click on SNA Service folder and select the Properties option. The Properties window opens.
  3. Enter the correct NETID ((9)) and Control Point Name ((10)) in the corresponding fields.
  4. Click OK.

Step  3.

Define the link service (802.2)

  1. Right-click on the SNA Service icon and select the Insert --> Link Service option. The Insert Link Service window opens.
    Insert Link Service window
  2. Select DLC 802.2 Link Service.
  3. Click Add.
  4. Click Finish.

Step  4.

Define the connection properties

  1. Right-click on SNA Service and select the Insert --> Connection --> 802.2 option. The Connection Properties window opens.
    Connection Properties Window
  2. Enter a connection name ((7)) in the Name field.
  3. Click on the Link Service drop-down box and select the SnaDlc1 option.
  4. Select the Remote End radio button from the Host System box.
  5. Select the Both Directions radio button from the Allowed Directions box.
  6. Select the On Server Startup radio button from the Activation box.
  7. Select the Address tab.
    Connection Properties - Address
  8. Fill in the Remote Network Address field ((8)). Accept the default numbers in the other fields.
  9. Select the System Identification tab.
  10. Enter the following information:
    1. For the Local Node Name, add the Network ID ((9)), the Local PU Name ((10)), and the Local Node ID ((1) plus (14)). Accept the XID Type default.
    2. For the Remote Node Name, add the NETID ((1)) and the Control Point Name ((4)).
  11. Accept the other defaults and click OK.

Step  5.

Define a local LU

  1. Right-click on the SNA Service icon and select the Insert --> APPC --> Local LU option. The Local APPC LU Properties window opens.
    Local APPC LU Properties Window
  2. Enter the following information:
    • The LU Alias ((12)).
    • The NETID ((9)).
    • The LU Name ((11)).
  3. Select the Advanced tab. If you are planning to use a DB2's multisite update support, ensure that you have:
    1. Installed Microsoft SNA Server V4 Service Pack 3
    2. De-selected the Member of Default Outgoing Local APPC LU Pool option. DB2 requires exclusive use of this LU for multisite update.
    3. From the SyncPoint Support field:
      • Select Enable.
      • Enter the SNA Server name in the Client field.

      Syncpoint support must be enabled on this server. It is not supported on SNA clients. Therefore, the Client field must contain the name of the local SNA Server. Multisite update is typically required if you use Transaction Processing (TP) Monitors such as Microsoft Transaction Server, IBM TxSeries, or BEA Tuxedo.

      An additional LU should be defined without Syncpoint support enabled, or if multisite update is not required. For this LU, you should ensure that Member of Default Outgoing Local APPC LU Pool option is selected

  4. Accept the other defaults and click OK.

Step  6.

Define a remote LU

  1. Right-click on SNA Services icon and select the Insert --> APPC --> Remote LU option. The Remote APPC LU Properties window opens.
  2. Click on the Connection drop down box and select the appropriate connection name ((7)).
  3. Enter the partner LU name ((2)) in the LU Alias field.
  4. Enter the Network ID ((1)) in the Network Name field.

    Figure 00002674 not displayed.

    The other fields will be filled in by the program. If your LU alias is not the same as your LU Name, make sure you specify the LU Name in the appropriate field. The program will fill it in automatically, but it will be incorrect if the alias and the name are not the same.
  5. Click OK.

Step  7.

Define a mode

  1. Right-click on APPC Modes folder and select the Insert --> APPC --> Mode Definition option. The APPC Mode Properties window opens.
    The APPC Mode Properties Window
  2. Enter the Mode Name (6) in the Mode Name field.
  3. Select the Limits tab.
    The APPC Mode Properties Window - Limits
  4. Enter appropriate numbers for the Parallel Session Limit and Minimum Contention Winner Limit fields. Your Host-Side or LAN administrator should be able to supply you with the numbers if you do not know the limits you should place here.
  5. Accept the other defaults, and click OK.

Step  8.

Define the CPIC name properties

  1. Right-click on CPIC Symbolic Name folder icon and select the Insert --> APPC --> CPIC Symbolic Name option. The CPIC Name Properties window opens.
    CPIC Name Properties - General
  2. Enter the Symbolic Destination Name ((16)) in the Name field.
  3. Click on the Mode Name drop down box and select a mode name, for example, IBMRDB.
  4. Select the Partner Information tab.
    CPIC Name Properties - Partner Information
  5. In Partner TP Name box, select the SNA Service TP (in hex) radio button and enter the Service TP name ((17)), or select the Application TP radio button and enter the Application TP name ((17)).
  6. In the Partner LU Name box, select the Fully Qualified radio button.
  7. Enter the fully-qualified Partner LU Name ((1) and (2)) or alias.
  8. Click OK.
  9. Save the configuration
    1. Select File --> Save from the menu bar of the Server Manager window. The Save File window opens.
    2. Enter a unique name for your configuration into the File Name field.
    3. Click Save.


Figure 00002671 not displayed.

You now need to update the DB2 directories, bind utilities and applications to the server, and test the connection.

The easiest way to do this is to use the Client Configuration Assistant (CCA). For more information on using the CCA, go to Configuring DB2 Connect to Host or AS/400 Communications Using the CCA. However, you can also perform these steps manually, as described in 3. Catalog the APPC or APPN Node and the sections that follow.

Configuring Microsoft SNA Client

Read this section if you have a Windows NT workstation that has DB2 Connect installed. This section provides step-by-step instructions for setting up the communications between your DB2 Connect workstation and a Windows NT workstation that has Microsoft SNA Server V4.0 (or later) installed.

Figure 00002671 not displayed.

For instructions on how to configure Microsoft SNA Server Version 4.0 for Windows NT, go to Configuring Microsoft SNA Server for Windows.

Figure 9 illustrates the example DB2 Connect Server scenario.

Figure 9. Indirect Connection to host or AS/400 database server via SNA Communications Gateway


DB2 Connect Server Scenario with MS SNA Server and MS SNA Client

The rest of this section assumes:

  1. The Microsoft SNA Server has already been configured for APPC communications with the host, and is enabled for ODBC and DRDA. Refer to the Microsoft SNA Server documentation for further information.
  2. Microsoft SNA Client Version 2.11 is not already installed on your DB2 Connect workstation.

To configure the Microsoft SNA client, perform the following steps:

Step 1. Obtain Required Information

For your Microsoft SNA client software to function properly you must have access to a properly configured Microsoft SNA Server. Request that your SNA Server administrator:

  1. Obtain the proper license for you to use Microsoft SNA Client on your workstation.
  2. Define a user ID and password for you on the SNA Server domain.
  3. Define connections to the host and AS/400 databases that you need to access, as described in Configuring Microsoft SNA Server for Windows.
  4. Provide you with the symbolic destination name ((16)), database name ((5)), and user account to use for each database connection defined in the previous step.

    If you plan to change host passwords, the SNA administrator will also need to provide you with symbolic destination names for password management tasks on each host.

  5. Provide you with the Microsoft SNA Server domain name and the protocol used for communicating with the SNA server (TCP/IP, NetBEUI, IPX/SPX).

Step 2. Install the Microsoft SNA Client on the DB2 Connect Workstation

  1. Obtain the Microsoft SNA Client software, and follow its instructions to start the installation program.
  2. Follow the instructions on the screen to complete the installation. Choose your SNA Server domain name and communication protocol according to the instructions provided by your SNA Server administrator.
  3. When you reach the Optional Components window, deselect Install ODBC/DRDA driver so that it will not be installed.
  4. Complete the installation.

Step 3. Install DB2 Connect for Windows

  1. Install DB2 Connect.
  2. Open the DB2 Folder, and click on the Client Configuration Assistant to start the configuration dialog.
  3. Click on Start and select Programs --> DB2 for Windows NT --> Client Configuration Assistant.
  4. You need to provide the following information:
    1. The Symbolic destination name ((16)) defined at the Microsoft SNA Server for the Partner LU ((2)) of the target host or AS/400 database server.
    2. The real database name ((5)).


Figure 00002671 not displayed.

You now need to update the DB2 directories, bind utilities and applications to the server, and test the connection.

The easiest way to do this is to use the Client Configuration Assistant (CCA). For more information on using the CCA, go to Configuring DB2 Connect to Host or AS/400 Communications Using the CCA. However, you can also perform these steps manually, as described in 3. Catalog the APPC or APPN Node and the sections that follow.


[ Top of Page | Previous Page | Next Page ]