Configuring TCP/IP for DB2 Universal Database for OS/390 and z/OS

 

This topic describes how to configure TCP/IP communications between your DB2 Connect™ workstation and DB2® Universal Database (UDB) for OS/390® and z/OS® Version 7 or later. The instructions assume the following conditions:

  1. Before you can use DB2 Connect over a TCP/IP connection, collect information about both the host database server and the DB2 Connect server. For each host server that you are connecting to via TCP/IP, have the following information:

  2. Refer to your local network administrator and your DB2 for OS/390 and z/OS administrator for help getting this information. Use the tables that follow as a worksheet to plan each TCP/IP connection between DB2 Connect and a host database server.
    Table 1. User Information
    Ref. Description Sample Value Your Value
    TCP-1 User name A.D.B.User
    TCP-2 Contact info (123)-456-7890  
    TCP-5 User ID ADBUSER  
    TCP-6 Database type db2390  
    TCP-7 Connection type (must be TCPIP). TCPIP TCPIP
    Table 2. Network Elements at the Host
    Ref. Description Sample Value Your Value
    TCP-8 Host name MVSHOST  
    TCP-9 Host IP address 9.21.152.100
    TCP-10 Service name db2inst1c  
    TCP-11 Port number 446 446
    TCP-12 LOCATION NAME NEW_YORK3  
    TCP-13 User ID    
    TCP-14 Password    

    Note:

    1. To obtain the host's IP address TCP-9, enter at the host:

         TSO NETSTAT HOME

    2. To obtain the port number TCP-11, look for DSNL004I in the DB2 master address space or system log.
    Table 3. Network Elements at the DB2 Connect Workstation
    Ref. Description Sample Value Your Value
    TCP-18 Host name mcook02  
    TCP-19 IP address 9.21.27.179  
    TCP-20 Service name db2inst1c  
    TCP-21 Port number 446 446
    Table 4. DB2 Directory Entries at the DB2 Connect Workstation
    Ref. Description Sample Value Your Value
    TCP-30 Node name MVSIPNOD  
    TCP-31 Database name nyc3  
    TCP-32 Database alias mvsipdb1  
    TCP-33 DCS database name nyc3  

  3. Complete a copy of the worksheet example for each TCP/IP host:

    1. Fill in the values to be used for the host name and IP address of the DB2 Universal Database for z/OS and OS/390 host (TCP-8 and TCP-9).

    2. Fill in the values to be used for the host name and IP address of the DB2 Connect workstation (TCP-18 and TCP-19).

    3. Determine the service name or port number to be used for the connection (TCP-10 or TCP-20, or TCP-11 or TCP-21).

    4. Determine the LOCATION NAME of the DB2 for OS/390 and z/OS database server to which you want to connect.

    5. Determine the values to be used for user ID and PASSWORD when connecting to the host database.

  4. At your zSeries® server:

    1. Verify the host address or the host name.

    2. Verify the port number or the service name.

    3. Update the services file with the correct port number and service name if necessary.

    4. Update the hosts file (or the Domain Name Server used by the DB2 Universal Database for z/OS and OS/390 system) with the host name and IP address of the DB2 Connect workstation if necessary.

    5. Ensure the new definitions are active before attempting to test the connection. Refer to your host network administrator or change control staff if necessary.

    6. Check with the DB2 Universal Database for z/OS and OS/390 administrator that you have a valid user ID, password, and database LOCATION NAME.

    7. PING the DB2 Connect server, using the correct port number if that option is supported by TCP/IP on the host system. For example:

         ping remote_host_name -p port_number

      Note: DB2 Connect does not support the PING command when issued from a Version 7 client through a Version 9 gateway to the host.

    Support for your zSeries or OS/390 server is available at http://www.ibm.com/servers/eserver/support/zseries/

Parent topic: Preparing DB2 Universal Database for OS/390 and z/OS for connections from DB2 Connect