IBM Books

Quick Beginnings


Configuring Your DB2 Connect System

In the example shown in Figure 15, the DB2 Connect workstation is connected to a DB2 for AS/400 system, a DB2 for VSE & VM system, and a DB2 for OS/390 or DB2 for MVS/ESA system.

The following assumptions are made:

The names and addresses used in the sample scenario are:
CP name NYX1
Remote LINK Address 400009451902 (DB2 for MVS,SQL/DS)

400050132101 (for AS/400)

XID Node ID 07127509
Network Name SPIFNET
Local LU Name NYX1GW01
Remote LU Name NYM2DB2 (DB2 for OS/390 or DB2 for MVS)

NYVMGAT (SQL/DS)

SYD2101A (AS/400)

Remote Transaction Program name X'07F6C4C2' (DB2 for OS/390, DB2 for MVS, OS/400)

NYVMDB (for SQL/DS)

Figure 15. Sample scenario


* Figure SQLC4EXP not displayed.

Configuring SNAplus

To configure SNAplus for DB2 Connect for HP-UX, log on as root and use either the /opt/sna/bin/snapconfig program or the /opt/sna/bin/X11/xsnapconfig program. Information about these programs can be found in the HP-UX documentation. The following steps describe how to use these programs to configure SNAplus for DB2 Connect for HP-UX.
Note:These steps contain suggested values for configuration parameters. For other parameters, use the SNAplus default values.

  1. Ensure that the SNA daemon is running. Enter:
       snapstart daemon
    

  2. Open the configuration file
    1. From the File menu, select Open.
    2. Select Open running configuration file, then click on OK.

  3. Select the links
    1. From the Services menu, select Links.
    2. Select the option marked NEW associated with the type of link you want to use: Token Ring (LAN), SDLC, or QLLC, then select Add. Enter a name for this link, for example, TR1 or SDLC4.

      For Token Ring links, use the default Device Name and Port Number. For SDLC and QLLC links, consult with your network administrator for the appropriate values. When you have filled in the information, or chosen to use the default values, click on OK followed by Done to get back to the main screen.

  4. Select the connections
    1. From the Services menu, select Connections. Select the option marked NEW corresponding to the value selected in the previous step. For example, for Token Ring, select NEW next to LAN. Enter a name for this connection. You may optionally enter a description.
    2. Set Remote End to Host System and Activation to On Demand.
    3. Enter the first three characters of the XID Node ID in the first Node ID to Send field. For this example, enter 071.
    4. Enter the SNA Physical Unit Number associated with your system in the second Node ID to Send field. For this example, enter 27509.
    5. Set the "Node ID to Receive" field to X'071' and X'FFFFF'.
    6. Enter your SNA Network Name in the first field of the Full Control Point Name. For this example, enter SPIFNET.
    7. Enter the Physical Unit Name associated with your HP computer in the second field of the Full Control Point Name. For this example, enter NYX1.
    8. Move the link you configured in the previous step from the Other Links box to the Links Usable box.
    9. Select Parameters and enter any necessary connection information. For Token Ring, enter the SNA Destination Address assigned for the DRDA server system in the Remote Network Address field and leave the other fields with their default values. For this example, use 400009451902 for DB2 for OS/390 DB2 for MVS/ESA and DB2 for VSE & VM and 400050132101 for DB2 for AS/400. For SDLC and QLLC connections, additional information is required. Ask your network administrator for the required values.
    10. Click on OK to return to the connection configuration panel, then click on OK again, then DONE.

  5. Select the local nodes
    1. From the Services menu, select Local Nodes.
    2. Select NEW.
    3. Enter a name for the node and click on OK. You may optionally enter a description for the node, but you must enter your network name in the Name of Network field. For this example, use SPIFNET for this value.
    4. Move the connection you created in the previous step from the Available Connections box to the Connections Used box using the Move button.
    5. Click on OK, then DONE.

  6. Select the modes
    1. From the APPC menu, select Modes.
    2. Select NEW.
    3. Enter IBMRDB in the Mode Name field, and optionally enter a description.
    4. In the Connection box, highlight the connection you configured above. Make sure that High priority mode is not selected. The following configuration values are suggested:
      • Session limit = 020
      • Minimum contention winner limit = 010
      • Partner minimum contention winner limit = 010
      • Automatic activation limit = 001
      • Send and Receive Pacing Counts = 08

      Other values can be left as defaults.

    5. Click on OK, then DONE.

  7. Select Remote LUs
    1. From the APPC menu, select Remote LUs.
    2. Select NEW.
    3. Enter the Remote LU Name as the LU alias, and click on OK. For this example, use NYM2DB2 for DB2 for OS/390 or DB2 for MVS/ESA, NYVMGAT for DB2 for VSE & VM, and SYD2101A for DB2 for AS/400. You may optionally enter a description of the remote LU.
    4. The Full network name field is made up of the SNA network name in the first field and the Remote LU Name associated with the DRDA server database in the second field. For this example, use SPIFNET.NYM2DB2 for DB2 for OS/390 or DB2 for MVS/ESA, SPIFNET.NYVMGAT for DB2 for VSE & VM, and SPIFNET.SYD2101A for DB2 for AS/400.
    5. The Uninterpreted LU name must be set to the Remote LU name specified in the previous step (use the same values).
    6. Select Supports parallel sessions and No session level security
    7. Click on OK, then DONE.

  8. Select Local LUs
    1. From the APPC menu, select Local LUs.
    2. In the Local Nodes box, select the node you configured above.
    3. In the Configured LUs box, select NEW.
    4. For the APPC LU alias, enter your Independent LU Name; for this example, it is NYX1GW01. You may optionally enter a description for the Local LU.
    5. Make sure that the Full Network Name fields contain your Network Name and your Independent LU Name. The LU number should be 000 for an independent LU.
    6. Change the Session Limit parameter to 020
    7. Make sure that you have selected the radio buttons to indicate that this LU is in the pool of default LUs, and that it is locally usable.
    8. Move the Remote LU you configured above from the Other Remote LUs box to the Partner LUs box.
    9. Select Modes.
    10. Move the IBMRDB mode from the Other Modes box to the Associated Modes box.
    11. Click on OK, then OK again, then DONE.

  9. Select the symbolic destination name
    1. From the APPC menu, select Sym Dest Name.
    2. Select NEW.
    3. Enter the Symbolic Destination Name you want to associate with the DRDA server database and click on OK. You may optionally enter a description.
    4. For the Partner TP name, for DB2 for MVS/ESA and DB2 for AS/400, select SNA Service TP (in hex) and enter the hexadecimal TP number. For DRDA, this is 07F6C4C2. (For DB2 for OS/390 or DB2/MVS, you can also use the application TP DB2DRDA.) For DB2 for VSE & VM, select Application TP and enter the DB2 for VSE & VM database name.
    5. For the Partner LU type, make sure that Alias is selected.
    6. In the Partner LU box, ensure that the Remote LU (not the Local LU) you configured above is highlighted.
    7. In the Mode Name box, highlight IBMRDB.
    8. Click on Security and indicate what kind of conversation level security you want to use: none, same, or program.
    9. When done, click on OK, then OK, then DONE.

  10. Saving your configuration
    1. From the File menu, select Save.
    2. Select Update running configuration file, then click on OK. This saves your new configuration as the default, running configuration.

Notes:

  1. You may need to stop and restart SNA for your configuration changes to take effect.

  2. You may also need to contact your database or network administrators to have your Local LU names added to the appropriate tables in order to access the DRDA server database.

Starting the SNAplus Subsystem

Use /opt/sna/bin/snapstart to start the SNAplus subsystem. You can use /opt/sna/bin/snapstop to stop the SNAplus subsystem first, if required.

To start the SNAplus connections you can use either the /opt/sna/bin/snapmanage program, or the /opt/sna/bin/X11/xsnapmanage program.

  1. From the Manage menu, select Services.

  2. Highlight the node you configured in the previous section, and select start.

  3. Highlight the computer you want to start it on, then click on OK.

  4. Highlight the connection you configured in the previous section, and select start.

  5. Highlight the computer you want to start it on, then click on OK.

Both the node and the connection lines should indicate that they have been started.


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

[ DB2 List of Books | Search the DB2 Books ]