Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

db2 remote access? 1

Status
Not open for further replies.

nchordiya

Programmer
Sep 13, 2003
1
IN
I am trying to access db2 remotely via IP address,
but it is not connecting.If anybody knows a way to do.
Please reply me at nchordiya2000@yahoo.com
 
Have a look at the quick beginnings guide for information on how to configure clients ...

In short, at the client end you need a db2 client software installed ... Then catalog node and database ...

db2 catalog tcpip node <nodename> remote <ipaddress> server <server-port>

db2 catalog database <dbname> as <aliasname> at node <nodename>

You can find the server port using
On the server
db2 get dbm cfg

and see the value for the SVCENAME parameter ... If is a number, that is the port ... If it is a service name, refer /etc/services for the corresponding port number of the service

Cheers
Sathyaram

More DB2 questions answered at
 
Is there a way to connect to a remote db2 server without the client? Anyone with experience on either UnixODBC or iODBC?
 
So in other words there is no other way to connect to a remote db2 server without the DB2 client? If I have the DB2 Client (using the trial version right now) then I don't need both UnixODBC and iODBC, I just go straight to the client from perl module. I just don't want to buy the client, and also, my os is not supported by the client. Does anyone have any suggestion?
 
What do you mean with connect?
running DB2 commands line ?
Use the conneciton with a language?
Perl? Cobol? Java? ....

For Java the solution is to use JDBC and the JDBC connector is coming with the DB2 server (no needs to buy something else)

HH,

Thierry
 
Yes, connection with a language, preferably perl so I can query the database using sql commands. I'm willing to try any way possible to import data from the db2 server into my box. I will try JDBC. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top