473,386 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

db2 connect to a db in a differrent server?

Hi,

One question - to connect to a db2 database in the same UNIX server we
can use from UNIX command prompt:

db2 connect to <dbnameUSer <nameusing <pwd>

Now if the db2 database is in a differrent server where/how do we
specify the server name or its ip address?

Thanks,
Sohan

Dec 14 '06 #1
3 12521
m
sohan wrote:
Hi,

One question - to connect to a db2 database in the same UNIX server we
can use from UNIX command prompt:

db2 connect to <dbnameUSer <nameusing <pwd>

Now if the db2 database is in a differrent server where/how do we
specify the server name or its ip address?

Thanks,
Sohan
To connect to a remote server:

catalog tcpip node xxxxx remote yyy.yyy.yyy.yyy server zzzzz
xxxxx name
yyyy IP or DNS name
zzzz port

then

catalog db nnnnnn at node xxxxx

Then you can connect
Dec 14 '06 #2
Thanks for the response.

I am new to this. My understanding is that this cataloging has to be
done once by dba and then anybody can directly connect to database
using db2 connect. Is this correct?
m wrote:
sohan wrote:
Hi,

One question - to connect to a db2 database in the same UNIX server we
can use from UNIX command prompt:

db2 connect to <dbnameUSer <nameusing <pwd>

Now if the db2 database is in a differrent server where/how do we
specify the server name or its ip address?

Thanks,
Sohan
To connect to a remote server:

catalog tcpip node xxxxx remote yyy.yyy.yyy.yyy server zzzzz
xxxxx name
yyyy IP or DNS name
zzzz port

then

catalog db nnnnnn at node xxxxx

Then you can connect
Dec 14 '06 #3
sohan wrote:
Thanks for the response.

I am new to this. My understanding is that this cataloging has to be
done once by dba and then anybody can directly connect to database
using db2 connect. Is this correct?
Close... the SYSADM has to do the cataloging.

The cataloging creates entries in the nodes and database directories. All
DBs listed in the latter occur "as if they are local". The DB2 client will
then figure out if the DB is really local or indeed remote and takes care
of the communication with the respective DB2 server.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Dec 14 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jerry Orr | last post by:
We are trying to determine the easiest (and cheapest) way to get connections for about 50 Win2K workstations on our LAN to DB2 on a z/OS server. We could install DB2 Connect Personal Edition on...
4
by: Scott Holland | last post by:
HELP - Need to connect to DB2 database on AIX from NT server. Also AS/400 from NT Server -- I am experienced in ORACLE and a novice at DB2. What tools would be the equivalent of Net*8 or...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
7
by: moondaddy | last post by:
I have a products catalogue that I'm putting online and there will be between 20 to 50 different pages of products. Each page contains a datagrid of products for a given category. However, the...
14
by: Marcus | last post by:
I have a function that simply returns TRUE if it can connect to a particular Sql Server 2005 express, or FALSE if it cannot. I am getting some strange error codes returned when the computer that...
2
by: Brajendrabraj | last post by:
how can I get user name which come from cookie in differrent window of IE if I already logged in that perticular site for example: i login in site and get username from cookie and display it on...
1
by: Sarvesh1989 | last post by:
I have one main div & in that main div i have included 2 differrent div it show good result in firefox but in ie it doesn't show that same result div just get one above the other.plz do help me. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.