This section describes how to configure a client workstation to communicate
with a server using the APPC communication protocol, and assumes that APPC is
functional on the client and server workstations. See Software Requirements for the communication protocol requirements for your
platform. See Possible Client-to-Server Connectivity Scenarios for the supported communication protocols for your
particular client and server.
| You need to ensure that the server that you are attempting to establish
communications with supports APPC clients. APPC client communications
are supported by the following servers:
|
The following steps are required to set up a client to use APPC communications:
step 1. | Identify and record parameter values. | ||||||
step 2. | Configure the client:
| ||||||
step 3. | Test the connection between the client and server.
|
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.
Before you configure the client workstation, have your DB2 administrator and LAN administrator fill in copies of the worksheet in Table 16 for each DB2 instance to which you want to connect.
After you fill in the Your Value entries, you can use the worksheet to configure APPC communications on the client. During the configuration process, replace the sample values that appear in the configuration instructions with your values from the worksheet, using the boxed numbers (for example, (1)) to relate the configuration instructions to the worksheet values.
Note: | The worksheet and configuration instructions supply suggested or sample values for required configuration parameters. For other parameters, use the communications program's default values. If your network configuration is different from that used in the instructions, consult your Network Administrator for values that are appropriate to your network. |
Table 16. Worksheet for Planning Client to Server APPC Connections
Ref. | Name at the Client Workstation | Network or Server Name | Sample Value | Your Value |
---|---|---|---|---|
Network Elements at the Server | ||||
(1) | Server name | Local Network Name | SPIFNET |
|
(2) | Partner LU Name | Local LU Name | NYX1GWOA |
|
(3) | PLU Alias |
| NYX1GW0A |
|
(4) | Partner Node name | Local Control Point Name | NYX1GW |
|
(5) | Database Alias |
| sample |
|
(6) | Mode Name |
| IBMRDB |
|
(7) | Connection name (Link name) |
| LINKSERV |
|
(8) | Remote Network or LAN address | Local Adapter or Destination Address | 400009451901 |
|
Network Elements at the Client Workstation | ||||
(9) | Network ID |
| SPIFNET |
|
(10) | Local Control Point Name |
| CLI1GW |
|
(11) | (Local) LU name |
| CLI1GW0A |
|
(12) | (Local) LU alias |
| CLI1GW0A |
|
(13) | Local Node or Node ID | ID BLK | 071 |
|
(14) | ID NUM | 27509 |
| |
(15) | Mode name |
| IBMRDB |
|
(16) | Symbolic Destination name |
| DB2CPIC |
|
(17) | (Remote) Transaction program (TP) name |
| DB2DRDA (Application TP) or X'X'07'6DB' (Service TP) |
|
DB2 Directory Entries (at the client workstation) | ||||
(18) | Node name |
| db2node |
|
(19) | Security |
| None |
|
(20) | Database name |
| sample |
|
(21) | Database alias |
| TOR1 |
|
For each server that you are connecting to, fill in a copy of the worksheet as follows:
Use the completed worksheet in Table 16 to configure DB2 client APPC communications
for access to a remote DB2 Connect or DB2 Universal Database server.
| Go to the sections that describe how to configure APPC communications on
the platforms that are present in your network:
|
This section describes how to manually configure IBM eNetwork Communications Server V5 for OS/2 (CS/2 V5) on your DB2 client workstation to connect to a DB2 Connect or DB2 Universal Database server using APPC.
Before you begin, ensure that your workstation has CS/2 V5 or later
installed.
| The steps in this section describe how to use IBM eNetwork Communications Server for OS/2 Version 5. If you have Communications Manager for OS/2 V.1.x, the steps you perform are similar, but the interface and menu names are different. |
For more information on setting up your environment, refer to the online help supplied with CS/2, or to the following publications:
The following assumptions have been made:
| These instructions describe how to create new profiles within a new configuration. If you are modifying an existing configuration, you may need to delete some profiles before you can verify the configuration. |
To configure your system, perform the following steps:
step 1. | Start a new configuration
| ||||||
step 2. | Configure the protocol
| ||||||
step 3. | Prepare a LAN DLC profile
| ||||||
step 4. | Update the SNA local node characteristics
| ||||||
step 5. | Prepare the SNA Connection Profiles
| ||||||
step 6. | Configure the connection in the Connection to a Peer Node or Connection to Host window
| ||||||
step 7. | Create a partner LUs profile
| ||||||
step 8. | Set SNA features
| ||||||
step 9. | Prepare a local LU profile If the DB2 client workstation is defined as an independent LU, prepare a Local LU Profile by performing the following steps:
| ||||||
step 10. | Prepare a mode definition
| ||||||
step 11. | Create the CPIC side information
| ||||||
step 12. | Save the configuration
|
|
You now need to update the DB2 directories, bind utilities and applications to the server, and test the connection. For OS/2 and Windows platforms, using the Client Configuration Assistant (CCA) is recommended. For more information, see Configuring Client-to-Server Communications Using the Client Configuration Assistant. For manual configuration instructions, and for UNIX platforms, see Step 3. Catalog the APPC or APPN Node and the sections that follow.
|
This section describes how to configure IBM Personal Communications for Windows 95, Windows 98 and Windows NT on your DB2 client workstation to connect to a DB2 Connect or DB2 Universal Database server using APPC.
Before you begin, ensure that the IBM Personal Communications for Windows NT or Windows 9x you installed meets the following requirements:
__ 1. | It is Version 4.2 or higher |
__ 2. | The IBM Personal Communications IEEE 802.2 LAN interface or LLC2 driver is installed. The LLC2 driver is installed from the IBM Communications Server installation directory. To verify this, perform the following steps:
|
The following assumptions are made:
To start IBM Personal Communications, perform the following steps:
step 1. | Click on the Start push button and select Programs->IBM Communications Server->SNA Node Configuration. The IBM Personal Communications SNA Node Configuration window opens. |
step 2. | Select File->New from the menu bar. The Define the Node window opens. Subsequent steps will begin from this window.
|
To configure APPC communications, perform the following steps:
step 1. | Configure the Node
| ||||
step 2. | Configure the device
| ||||
step 3. | Configure Connections
| ||||
step 4. | Configure Partner LU 6.2
| ||||
step 5. | Configure Modes
| ||||
step 6. | Configure Local LU 6.2
| ||||
step 7. | Configure CPI-C Side Information
| ||||
step 8. | Save the Configuration
| ||||
step 9. | Update the environment IBM Personal Communications uses an environment variable called appcllu to set the default Local LU used for APPC communications. You may set this variable on a per-session basis by opening a command window and enter the set appcllu=local_lu_name command, where local_lu_name is the name of the local LU you want to use. However, you will probably find it more convenient to permanently set the variable. To permanently set the variable in Windows NT, perform the following steps:
The environment variable will now remain set for future sessions. | ||||
step 10. | Start SNA Node Operations
|
|
You now need to update the DB2 directories, bind utilities and applications to the server, and test the connection. For OS/2 and Windows platforms, using the Client Configuration Assistant (CCA) is recommended. For more information, see Configuring Client-to-Server Communications Using the Client Configuration Assistant. For manual configuration instructions, and for UNIX platforms, see Step 3. Catalog the APPC or APPN Node and the sections that follow.
|
This section describes how to configure IBM eNetwork Communications Server for Windows NT (CS/NT) on a DB2 client workstation to connect to a DB2 Connect or DB2 Universal Database server.
Before you begin, ensure that the IBM eNetwork Communications Server for Windows NT (CS/NT) 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 CS/NT is required |
__ 2. | The IBM Communications Server IEEE 802.2 LAN interface or LLC2 driver was installed. The LLC2 driver was installed from the CS/NT installation directory. During installation CS/NT asks if you want to install LLC2. If you are not sure whether LLC2 was installed with your copy of CS/NT, you can find out as follows:
|
__ 3. | The APAR fixes JR11529 and JR11170 were applied. These fixes are required to enable cancelling of queries in progress by using Ctrl-BREAK or issuing the SQLCancel ODBC/CLI call.
|
To start IBM eNetwork Communications Server, perform the following steps:
step 1. | Click 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.
|
To configure IBM eNetwork Personal Server for APPC communications, perform the following steps:
step 1. | Configure Node
| ||||||||||||
step 2. | Configure the device
| ||||||||||||
step 3. | Configure Connections
| ||||||||||||
step 4. | Configure Partner LU 6.2
| ||||||||||||
step 5. | Configure Modes
| ||||||||||||
step 6. | Configure Local LU 6.2
| ||||||||||||
step 7. | Configure CPI-C Side Information
| ||||||||||||
step 8. | Save the Configuration
| ||||||||||||
step 9. | Update the Environment CS/NT 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 command, where local_lu_name is the 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, perform the following steps:
The environment variable will now remain set for future sessions. | ||||||||||||
step 10. | Start SNA Node Operations To start SNA node operations on your machine, perform the following steps:
SNA node operations will now begin running. | ||||||||||||
step 11. | Registering Communications Server as a Windows NT Service To automatically start Communications Server when the machine is started, you can register it as a Windows NT Service. To register Communications Server as an NT service execute one of the following commands: csstart -a (to register Communications Server with 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 wish to use. Whenever your machine is booted in the future, Communications Server will be started automatically with the required configuration file.
|
|
You now need to update the DB2 directories, bind utilities and applications to the server, and test the connection. For OS/2 and Windows platforms, using the Client Configuration Assistant (CCA) is recommended. For more information, see Configuring Client-to-Server Communications Using the Client Configuration Assistant. For manual configuration instructions, and for UNIX platforms, see Step 3. Catalog the APPC or APPN Node and the sections that follow.
|
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 client) running on the SNA API client workstation.
| 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, perform the following steps:
step 1. | Create a user account for the SNA API client on the Communications Server for Windows NT server
|
step 2. | Start the configuration GUI for the IBM eNetwork CS/NT SNA API Client. Click on the Start button and select Programs->IBM Communications Server SNA Client->Configuration. The CS/NT SNA Client Configuration window opens. |
step 3. | Configure Global Data
|
step 4. | Configure APPC Server List
|
step 5. | Configure CPI-C Side Information
|
step 6. | Save the Configuration
|
|
You now need to update the DB2 directories, bind utilities and applications to the server, and test the connection. For OS/2 and Windows platforms, using the Client Configuration Assistant (CCA) is recommended. For more information, see Configuring Client-to-Server Communications Using the Client Configuration Assistant. For manual configuration instructions, and for UNIX platforms, see Step 3. Catalog the APPC or APPN Node and the sections that follow.
|
This section describes how to configure Microsoft SNA Server Version
4.0 for Windows NT on your DB2 client workstation to connect to a DB2
Connect or DB2 Universal Database server using APPC. Although Microsoft
SNA Server will run on Windows NT 4.0 Workstation, Windows NT
4.0 Server is recommended.
| For instructions on how to configure Microsoft SNA Client for Windows NT, 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. 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 the DB2 client using Microsoft SNA Server Manager, perform the following steps:
step 1. | Start the Server Manager by clicking on the Start button and selecting Programs->Microsoft SNA Server->Manager. The Microsoft SNA Server Manager window opens. | ||
step 2. | Define the control point name
| ||
step 3. | Define the link service (802.2)
| ||
step 4. | Define the connection properties
| ||
step 5. | Define a local LU
| ||
step 6. | Define a remote LU
| ||
step 7. | Click on OK.
|
Define a mode
Define the CPIC name properties
Save the configuration
|
You now need to update the DB2 directories, bind utilities and applications to the server, and test the connection. For OS/2 and Windows platforms, using the Client Configuration Assistant (CCA) is recommended. For more information, see Configuring Client-to-Server Communications Using the Client Configuration Assistant. For manual configuration instructions, and for UNIX platforms, see Step 3. Catalog the APPC or APPN Node and the sections that follow.
|
This section provides step-by-step instructions for setting up
communications between your Microsoft SNA Client workstation and a Windows NT
workstation that has Microsoft SNA Server V4.0 (or later)
installed.
| For instructions on how to configure Microsoft SNA Server Version 4.0 for Windows NT on your DB2 client workstation to connect to a DB2 Connect or DB2 Universal Database server using APPC, go to Configuring Microsoft SNA Server for Windows NT. |
The rest of this section assumes:
To configure the Microsoft SNA client, perform the following steps:
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:
step 1. | Obtain the proper license for you to use Microsoft SNA Client on your workstation. |
step 2. | Define a user ID and password for you on the SNA Server domain. |
step 3. | Define connections to server databases that you need to access, as described in Configuring Microsoft SNA Server for Windows NT. |
step 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 server passwords, the SNA administrator will also need to provide you with symbolic destination names for password management tasks on each server. |
step 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).
|
Obtain the Microsoft SNA Client software, and follow the instructions provided with it to start the installation program. When you reach the Optional Components window, deselect the Install ODBC/DRDA driver check box.
step 1. | Install the DB2 client. | ||||
step 2. | Click on the Start button and select Programs->DB2 for Windows NT->Client Configuration Assistant. | ||||
step 3. | You need to provide the following information:
|
|
You now need to update the DB2 directories, bind utilities and applications to the server, and test the connection. For OS/2 and Windows platforms, using the Client Configuration Assistant (CCA) is recommended. For more information, see Configuring Client-to-Server Communications Using the Client Configuration Assistant. For manual configuration instructions, and for UNIX platforms, see Step 3. Catalog the APPC or APPN Node and the sections that follow.
|
This section describes how to configure IBM eNetwork Communication Server V5.0.2.5 for AIX on your DB2 client workstation to connect to a DB2 Connect or DB2 Universal Database server using APPC. IBM eNetwork Communication Server for AIX is the only SNA product supported for DB2 Connect running on RS/6000 machines.
Before you begin, ensure that your workstation has IBM eNetwork Communication Server V5.0.2.5 for AIX (CS/AIX) installed. If you need further information in order to configure your SNA environment, refer to the online help provided with CS/AIX.
The following assumptions are made:
To configure CS/AIX for use by a DB2 client, log on to the system as a user with root authority and use either the /usr/bin/snaadmin tool or the /usr/bin/X11/xsnaadmin tool. Information about these programs can be found in the system documentation. To use the xsnaadmin program to configure CS/AIX, perform the following steps:
step 1. | Enter the xsnaadmin command. The Node window for the server opens. | ||
step 2. | Define a Node
| ||
step 3. | Define a port
| ||
step 4. | Define a link station
| ||
step 5. | Define a local LU
| ||
step 6. | Define a partner LU over the link station
| ||
step 7. | Define an alias for the partner LU
| ||
step 8. | Define a mode
| ||
step 9. | Define the CPI-C destination name
| ||
step 10. | Test the APPC connection
|
|
You now need to update the DB2 directories, bind utilities and applications to the server, and test the connection. For OS/2 and Windows platforms, using the Client Configuration Assistant (CCA) is recommended. For more information, see Configuring Client-to-Server Communications Using the Client Configuration Assistant. For manual configuration instructions, and for UNIX platforms, see Step 3. Catalog the APPC or APPN Node and the sections that follow.
|
This section describes how to configure Bull DPX/20 SNA/20 Server on your DB2 client workstation to connect to a DB2 Connect or DB2 Universal Database server using APPC. If Bull DPX/20 SNA/20 Server is installed prior to installing the DB2 client, the client use Bull SNA. Otherwise, you need to configure DB2 Connect to work with IBM eNetwork Communications Server V5.0.2.5 for AIX. See Configuring IBM eNetwork Communications Server for AIX for more information.
To determine if Bull SNA is installed on your AIX 4.2 (or later) system, enter the following command:
lslpp -l express.exsrv+dsk
If Bull SNA is installed, you will see output similar to the following:
Fileset Level State Description ---------------------------------------------------------------------- Path: /usr/lib/objrepos express.exsrv+dsk 2.1.3.0 COMMITTED EXPRESS SNA Server and Integrated Desktop
If you install Bull SNA after installing the DB2 client and you want the client to use Bull SNA instead of IBM eNetwork Communications Server for AIX, log on to the system as a user with root authority and enter the following command:
/usr/lpp/db2_06_01/cfg/db2cfgos
If you want to install the Bull DPX/20 SNA/20 Server, then you must have the following software:
__ 1. | AIX V4.2 |
__ 2. | Express SNA Server V2.1.3
|
For more information on setting up your SNA environment, refer to the Bull
DPX/20 SNA/20 Server Configuration Guide.
| DB2 Connect, when used with the Bull SNA server, cannot have inbound APPC connections from remote clients. The only APPC connections it can have are outbound APPC connections to the host. |
To configure Bull SNA for use by DB2 Connect, enter the express command to configure the following SNA parameters:
Config Express Default configuration for EXPRESS Node CLI1 SPIFNET.CLI1 (HOSTNAME=CLI1) Indep. LUs 6.2 LUs Using All Stations LU CLI1GW Control Point LU Link tok0.00001 Link (tok0) Station SERV To SERV from CLI1 LU CLI1GW0A To SERV from CLI1 LU Pair NYX1GW0A To SERV from CLI1 Mode IBMRDB IBMRDB
Use default values for fields not listed.
The following example illustrates the sample configuration:
Defining hardware: System (hostname) = CLI1 Adapter and Port = CLI1.tok0 MAC Address = 400011529778 Defining SNA node: Name = CLI1 Description = SPIFNET.CLI1 (HOSTNAME=CLI1) Network ID = SPIFNET Control Point = CLI1GW XID Block = 071 XID ID = 27509 Defining token ring link: Name = tok0.00001 Description = Link (tok0) Connection Network name Network ID = SPIFNET Control Point = NYX1GW Defining token ring station: Name = SERV Description = To SERV from CLI1 Remote MAC address = 400009451901 Remote Node name Network ID = SPIFNET Control Point = NYX1GW Defining Local LU 6.2: Name = CLI1GW0A Description = To SERV from CLI1 Network ID = SPIFNET LU name = CLI1GW0A Defining Remote LU 6.2: Name = NYX1GW0A Description = To SERV from NYX1 Network ID = SPIFNET LU name = NYX1GW0A Remote Network ID = SPIFNET Remote Control Point = NYX1GW Uninterpreted Name = NYX1GW Defining Mode: Name = IBMRDB Description = IBMRDB Class of service = #CONNECT Defining Symbolic Destination Info: Name = DB2CPIC Description = To SERV from NYX1 Partner LU = SPIFNET.NYX1GWOA Mode = IBMRDB Local LU = CLI1GW0A Partner TP = DB2DRDA
After you have configured these SNA parameters, you must stop and start the SNA server. To do this, perform the following steps:
step 1. | Log on to the system as a user with root authority. |
step 2. | Make sure your PATH contains the $express/bin (/usr/lpp/express/bin) entry. |
step 3. | Check for active users before stopping by entering the following command: express_adm shutdown |
step 4. | Stop all EXPRESS activity by entering the following command: express_adm stop |
step 5. | Start EXPRESS by entering the following command: express_adm start
|
|
You now need to update the DB2 directories, bind utilities and applications to the server, and test the connection. For OS/2 and Windows platforms, using the Client Configuration Assistant (CCA) is recommended. For more information, see Configuring Client-to-Server Communications Using the Client Configuration Assistant. For manual configuration instructions, and for UNIX platforms, see Step 3. Catalog the APPC or APPN Node and the sections that follow.
|
This section describes how to configure SNAPlus2 for HP-UX on your DB2 client workstation to connect to a DB2 Connect or DB2 Universal Database server using APPC.
Before you begin, ensure that your workstation has HP-UX SNAPlus2 installed. If you need more information in order to configure your SNA environment, refer to the online help provided with SNAPlus2.
The following assumptions are made:
To configure SNAPlus2 for DB2 Connect, log on to the system as a user with root authority and use either the /opt/sna/bin/snapadmin program or the /opt/sna/bin/X11/xsnapadmin program. Information about these programs can be found in the system documentation. The following steps describe how to use the xsnapadmin program to configure SNAplus2.
step 1. | Enter the command xsnapadmin. The Servers window opens. Double-click on your node. | ||
step 2. | Define a Node
| ||
step 3. | Define a port
| ||
step 4. | Define a link station
| ||
step 5. | Define a local LU
| ||
step 6. | Define a remote node
| ||
step 7. | Define a partner LU
| ||
step 8. | Define a mode
| ||
step 9. | Define the CPI-C destination name
| ||
step 10. | Test the APPC connection
|
|
You now need to update the DB2 directories, bind utilities and applications to the server, and test the connection. For OS/2 and Windows platforms, using the Client Configuration Assistant (CCA) is recommended. For more information, see Configuring Client-to-Server Communications Using the Client Configuration Assistant. For manual configuration instructions, and for UNIX platforms, see Step 3. Catalog the APPC or APPN Node and the sections that follow.
|
This section describes how to configure SunLink SNA PU 2.1 (SunLink SNA) for Solaris on your DB2 client workstation to connect to a DB2 Connect or DB2 Universal Database server using APPC.
Before you begin, ensure that your workstation has SunLink SNA installed. If you need further information in order to configure your SNA environment, refer to the SunLink PU 2.1 Server Configuration and Administrator's Manual.
The following assumptions are made:
To configure the SunLink SNA Server for use by a DB2 Client, log on as root and perform the following steps:
step 1. | |
step 2. | |
step 3. | |
step 4. | Start the SunLink SNA Subsystem
|
You can use any plain text editor to create the CPIC side file. The file must be placed in the application's path for a standalone DB2 Connect for Solaris system.
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 client. |
The following example shows the CPIC side file sections required for configuring the SunLink SNA to connect to a DB2 server:
# CPIC Side File information # PTNR_LU_NAME=NYX1GW0A MODE_NAME=IBMRDB TP_NAME=DB2DRDA SECURITY=NONE
You can use any plain text editor to create the SNA server configuration file. 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 following example shows the configuration file sections required for configuring the SunLink SNA to connect to a DB2 server:
// 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=CLI1GW // Local name (8 char max) NQ_CP_NAME=SPIFNET.CLI1GW // Network Qualified Name ; TRLINE NAME=MAC1 // SunLink specific name SOURCE_ADDRESS=x'400011527509' // sysA_mac_addr for Sun machine ; DLC NAME=SERVLINK // 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'400009451901 // sysB_mac_addr TERMID=x'07127509' // XID negotiation ; LU NAME=CLI1GW0A // Local name (8 char max) NQ_LU_NAME=SPIFNET.CLI1GW0A // Network Qualified Name SESS_LMT=50 // Max LU sessions LUTYPE=6.2 ; PTNR_LU NAME=NYX1GW0A // Partner LU name(8 char max) LOC_LU_NAME=CLI1GWOA // Associated Local LU NQ_LU_NAME=SPIFNET.NYX1GW0A // Network Qualified Name ; MODE NAME=IBMRDB // Mode Name (8 char max) DLC_NAME=SERVLINK // Associated DLC PTNR_LU_NAME=NYX1GW0A // Associated Partner LU LCL_MAX_SESS_LMT=30 // Max Session Limit MIN_CW_SESS=15 // Min Conwinners MIN_CL_SESS=15 // Min Conlosers ;
In order to run any application, you must set the following environment variables:
Export these on the DB2 client machine before proceeding with the next step.
To start the SunLink SNA subsystem, perform the following steps:
step 1. | Change to the SunLink installation directory, usually: cd /opt/SUNWpu21 |
step 2. | Set up environment variables for FlexLM licensing. For example: export LD_LIBRARY_PATH=/usr/openwin/lib:/usr/lib export LM_LICENSE_FILE=/etc/opt/licenses/licenses_combined
Refer to the SunLink documentation for more information. |
step 3. | Ensure you have created the CPIC side file as described in Create the CPIC Side File |
step 4. | Ensure you have created the SNA server configuration file as described in Create the SNA Server Configuration File. |
step 5. | Use the sunop utility to check the status of SunLink SNA if it is already started. Check to see if the PU and/or DLC status is connected. You can also use sunop to check the status of links. Refer to the SunLink documentation for details of the sunop utility. |
step 6. | Stop SunLink if it is active. For example, enter: kill -9 sunpu2.pid kill -9 sunlu2.pid |
step 7. | Start SunLink using the following command: sunpu2.1
|
| You now need to update the DB2 directories, bind utilities and
applications to the server, and test the connection.
For OS/2 and Windows platforms, the easiest way to do this is to use the Client Configuration Assistant (CCA). For more information on using the CCA, see Configuring Client-to-Server Communications Using the Client Configuration Assistant. For manual configuration instructions, and for UNIX platforms, see Step 3. Catalog the APPC or APPN Node and the sections that follow. |
You must add an entry to the DB2 client workstations's node directory to describe the remote node. In most cases, you will add an APPC node entry to the node directory. For OS/2, Windows 9x, and Windows NT, you can alternatively add an APPN node entry if your local SNA node has been set up as an APPN node.
To catalog the node, perform the following steps:
step 1. | Log on to the system with a valid DB2 user ID. For more
information, see Appendix G. Naming Rules.
| ||
step 2. | If you are using DB2 Connect on a UNIX platform, set up the instance environment and invoke the DB2 command line processor. Run the start-up script as follows: . INSTHOME/sqllib/db2profile (for Bourne or Korn shell) source INSTHOME/sqllib/db2cshrc (for C shell) where INSTHOME is the home directory of the instance. | ||
step 3. | To catalog an APPC node, specify the chosen alias (node_name), Symbolic destination name (sym_dest_name), and the APPC security type (security_type) that the client will use for the APPC connection. Enter the following commands in the command line processor: catalog "appc node node_name remote sym_dest_name \ security security_type"; terminate
For example, to catalog a remote database server with the Symbolic destination name DB2CPIC on the node called db2node, using APPC Security type NONE, enter the following commands: catalog appc node db2node remote DB2CPIC security NONE terminate | ||
step 4. | To catalog an APPN node, specify the chosen alias (node_name), the network ID ((1)), the remote partner LU ((4)), the transaction program name ((17)), the mode ((15)), and the security type. Enter the following commands, substituting your values from the worksheet in Table 26: catalog "appn node db2node network SPIFNET remote NYX1GW0A tpname DB2DRDA mode IBMRDB security NONE" terminate
|
|
If you need to change values that were set with the catalog node command, perform the following steps:
|
Before a client application can access a remote database, the database must be cataloged on the server node and on any client nodes that will connect to it. When you create a database, it is automatically cataloged on the server with the database alias (database_alias) the same as the database name (database_name). The information in the database directory, along with the information in the node directory, is used on the client to establish a connection to the remote database.
To catalog a database on the client, perform the following steps:
step 1. | Log on to the system with a valid DB2 user ID. For more
information, see Appendix G. Naming Rules.
| ||||||||||||||||
step 2. | Fill in the Your Value column in the following
worksheet.
Table 17. Worksheet: Parameter Values for Cataloging Databases
| ||||||||||||||||
step 3. | If you are using a UNIX client, set up the instance environment and invoke the DB2 command line processor. Run the start-up script as follows: . INSTHOME/sqllib/db2profile (for Bourne or Korn shell) source INSTHOME/sqllib/db2cshrc (for C shell) where INSTHOME is the home directory of the instance. | ||||||||||||||||
step 4. | Catalog the database by entering the following commands: catalog database database_name as database_alias at node node_name terminate For example, to catalog a remote database called sample so that it has the alias tor1, on the node db2node, enter the following commands: catalog database sample as tor1 at node db2node terminate
|
When you have finished configuring the client for
communications, perform the following steps to test the connection:
| You will need to connect to a remote database to test the connection. |
step 1. | Start the database manager by entering the db2start command on the server (if it was not automatically started at boot time). |
step 2. | Enter the following command to connect the client to the remote database: connect to database_alias user userid using password
|
The values for userid and password must be valid for the system on which they are authenticated. By default, authentication takes place on the server for a DB2 server and on the host or AS/400 machine for a DB2 Connect server.
If the connection is successful, you will get a message showing the name of the database to which you have connected. You are now able to retrieve data from that database. For example, to retrieve a list of all the table names listed in the system catalog table, enter the following SQL command in the Command Center or command line processor:
"select tabname from syscat.tables"
When you are finished using the database connection, enter the connect
reset command to end the database connection.
| You are now ready to start using DB2. For more advanced topics, refer to the Administration Guide and the Installation and Configuration Supplement. |
If the connection fails, check the following items:
At the server:
|
Check the settings for the db2comm registry value by entering the
db2set DB2COMM command. For more information, refer to the
Administration Guide.
|
|
If there are problems starting a protocol's connection managers, a warning message appears and the error messages are logged in the db2diag.log file. For more information on the db2diag.log file, refer to
the Troubleshooting Guide.
|
At the client:
If the connection still fails after you verify these items, refer to the Troubleshooting Guide.