Академический Документы
Профессиональный Документы
Культура Документы
IBM Support
Search support or find a product
Question
This technote describes how to configure a connection from a DB2 data server client to a remote database o
using the command line processor (CLP).
Answer
Before you begin
(Unix)
/usr/local/bin/db2ls -q -b <installpath> -p .
Example:
/usr/local/bin/db2ls -q -b /opt/ibm/db2/v9.7 -p
Note 1:
Note 2:
If you have DB2 Enterprise Server edition installed in your system, then you don't require to install DB2 CO
Procedure
Node name - It is nickname of the host that has database you want to catalog.
Hostname/IP address - It is the name/IP address of the iSeries/zSeries box
servicename/port number - It is the Service name/Port number of the DB2 database manager .
db2 catalog tcpip node <nodename> remote <IP adress> server <portnumber>
Example :
Example:
This command stores information about iSeries/zSeries database in DCS(Database Connection Services) dir
Example:
Example:
https://www.ibm.com/support/pages/connecting-db2-luw-client-iserieszseries-database-server-using-command-line-processor 3/4
3/19/2020 Connecting from the DB2 LUW Client to the iSeries/zSeries database server using the command line processor
Component:
Connectivity - DRDA
Software version:
9.7, 9.5, 9.1
Operating system(s):
AIX; HP-UX; Linux; Solaris
Software edition:
Enterprise Server, Express, Workgroup Server
Modified date:
16 June 2018
https://www.ibm.com/support/pages/connecting-db2-luw-client-iserieszseries-database-server-using-command-line-processor 4/4