Refer to the example worksheet (Table 20):
For an OS/390, MVS, VM, or VSE connection, do the following:
For an OS/400 connection, do the following:
For each DRDA server that you are connecting to, fill in a copy of the worksheet (Table 20) as follows:
You will also need to provide the network name ((8)) for the remote node (for example, SPIFNET). Usually this is the same as the network name at the DB2 Connect workstation. Together, these make up the fully-qualified partner LU name (SPIFNET.NYM2DB2).
For OS/400, use the local CP name of the AS/400.
In addition to setting up an SNA connection between DB2 Connect and your DRDA host AR, you may also want to support inbound APPC connections from one or more clients, either workstations running DB2 Universal Database Client Application Enabler, or a DRDA host acting as an AR. If so, please see the additional definitions that may also be required in the SNA Server configuration file in "Optional sections".
You can use vi or your favorite editor to create the configuration files.
This file must be placed in the application's path for a standalone DB2 Connect for Solaris system. However, if DB2 Connect for Solaris is being used as a gateway, in order for DB2 agents to be able to access it, the file should be in either:
Note: | The name of the CPIC side file must be the same as the Symbolic destination name specified in the DB2 node directory on the DB2 Connect for Solaris system. |
Sample CPIC side file
The file name must be the same as the Symbolic destination name specified in the DB2 node directory for the server.
# CPIC Side File information # PTNR_LU_NAME=NYM2DB2 MODE_NAME=IBMRDB TP_NAME= x'07F6C4C2' SECURITY=PROGRAM
This file is called sunpu2.config, and it must be placed in /opt/SUNWpu21, or the directory where SunLink SNA PU 2.1 Server is installed. The example shown in Figure 17 matches the scenario in DB2 Connect Enterprise Edition Quick BeginningsFigure 16.
Figure 17. Sample Solaris PU 2.1 SNA Server Configuration File
// SunLink SunLU6.2/SunPU2.1 SNA Server Sample Configuration // Token Ring Peer-to-Peer System A @(#)sunlu62.a.tr // // The physical connection is a Token Ring interface adapter. CP NAME=NYX1 // Local name (8 char max) NQ_CP_NAME=SPIFNET.NYX11 // Network Qualified Name ; TRLINE NAME=MAC1 // SunLink specific name SOURCE_ADDRESS=x'400011527509' // sysA_mac_addr for Sun machine ; DLC NAME=HOSTLINK // User defined name (8 char max) LINK_NAME=MAC1 // Line name this station is on LCLLSAP=x'04' // Local Link Service Access Point RMTLSAP=x'04' // Remove Link Service Access Point RMTMACADDR=x'400009451902' // sysB_mac_addr TERMID=x'07127509' // XID negotiation ; LU NAME=NYX1GW01 // Local name (8 char max) NQ_LU_NAME=SPIFNET.NYX1GW01 // Network Qualified Name SESS_LMT=50 // Max LU sessions LUTYPE=6.2 ; PTNR_LU NAME=NYM2DB2 // Partner LU name(8 char max) LOC_LU_NAME=NYX1GW01 // Associated Local LU NQ_LU_NAME=SPIFNET.NYM2DB2 // Network Qualified Name ; MODE NAME=IBMRDB // Mode Name (8 char max) DLC_NAME=HOSTLINK // Associated DLC PTNR_LU_NAME=NYM2DB2NYX1GW01 // Associated Partner LU LCL_MAX_SESS_LMT=30 // Max Session Limit MIN_CW_SESS=15 // Min Conwinners MIN_CL_SESS=15 // Min Conlosers ; |
The following additional sections would also be required in the configuration file in order to support the inbound APPC client support.
Figure 18. Additional Sun SNA Server configuration sections for inbound APPC client
// This section adds DLC for the inbound APPC client NYX2 DLC NAME=NYX2, // User defined name (8 char max) LINK_NAME=MAC1, // Line name this station is on LCLLSAP=x'04', // Local Link Service Access Point RMTLSAP=x'04', // Remove Link Service Access Point RMTMACADDR=x'400011528901', // sysB_mac_addr TERMID=x'05d27510', // IDNUM and IDBLK = XID MAXDATA=4096, ACTIVITY_TIMEOUT=0, RETRIES=20, REPLY_TIMEOUT=20, RESPONSE_TIMEOUT=20, ACTPU_SUPPRESS=yes ; // This section defines the partner LU NYX2 PTNR_LU NAME=NYX2, // Partner LU name(8 char max) LOC_LU_NAME=NYX2, // Associated Local LU NQ_LU_NAME=SPIFNET.NYX2 // Network Qualified Name SEC_ACCEPT=ALREADY_VERIFIED // Accept client as already verified ; // This section adds the TP name NYSERVER // and associates it with the local LU NYX1GW01 TP TP_NAME=NYSERVER, // TP Name LOC_LU_NAME=NYX1GW01, // Associated Local LU CONV_TYPE=BASIC, // Conversation Type ; // SECURITY LOC_LU_NAME=NYX1GW01, // Local LU Alias USER_ID=USERID, // User id PASSWORD=PASSWORD, // Password (since UNIX_SEC=NO) ; ; |
You need to:
update dbm cfg using tpname NYSERVER
Perform the following steps, in sequence:
cd /opt/SUNWpu21
export LD_LIBRARY_PATH=/usr/openwin/lib:/usr/lib export LM_LICENSE_FILE=/etc/opt/licenses/licenses_combined
Refer to the SunLink documentation for full details.
Check to see if the PU and/or DLC status is connected. Refer to the SunLink documentation for details of the sunop utility.
kill -9 sunpu2.pid kill -9 sunlu2.pid
sunpu2.1
You can use sunop to check the status of links.
db2stop
db2set -lrIf APPC does not appear as a value for db2comm, you need to add it. One way to do this would be to enter a command similar to this:
db2set db2comm=tcpip,appc,ipxspx -g(You should remove any protocols you do not use from that command. There are several different options available with the db2set command. For details, see Chapter 39. "Controlling Your DB2 Environment".)
db2start
When you have configured your system and all of the server connections, do the following:
To do this, you will need to know the symbolic destination name ((25)) and the target database name ((12)) from the worksheet.
Enter the following commands in the command line processor:
catalog appc node db2node remote sym_dest_name security program
Note that the sym_dest_name value must be the same name in the same case as the name of the CPIC side file (cpicmvs in the examples in this chapter).
db2 catalog dcs database db2db as new_york3 db2 catalog db db2db as nyc3 at node db2node authentication dcs
For a DB2 Connect for Solaris server, export these on the DB2 Connect machine before issuing db2start.
connect to dbalias user userid using password bind path@ddcsmvs.lst blocking all sqlerror continue messages mvs.msg grant public connect reset
For further information please refer to the online DB2 Connect User's Guide.
![]() | To install remote clients, see Chapter 26. "Installing DB2 Clients". |