473,387 Members | 1,504 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,387 software developers and data experts.

Problem connecting from AIX to Windows.

Folks,

I installed DB2 UDB 8.2 FP8 ESE on Win 2K syatem. I cataloged node
and database on AIX system. When I try to connect to the database on
windows system from an AIX system I get following error:

# db2 connect to a2local
SQL30081N A communication error has been detected. Communication protocol
being used: "TCP/IP". Communication API being used: "SOCKETS". Location
where the error was detected: "10.90.10.219". Communication function
detecting the error: "recv". Protocol specific error code(s): "10054", "*",
"0". SQLSTATE=08001

Error 10054 is the code from WSAGetLastError(), which means connection
reset by peer.

How do I connect to the database on windows system from a AIX/Unix system?

I have always worked with DB2 on AIX/Linux systems, this is the first time
I am working with DB2 on windows system.


--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: No************@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Nov 12 '05 #1
14 3065
Check the configuration of Your DB2 Server on Windows.
What is you Catalog Command from AIX
Communication Error means AIX cannot Reach Windows on DB2 Port

Nov 12 '05 #2
While stranded on information super highway sh*******@gmail.com wrote:
Check the configuration of Your DB2 Server on Windows.
What is you Catalog Command from AIX
Communication Error means AIX cannot Reach Windows on DB2 Port
I am new to windows, how do I check it.

When I get database manager config the service name is db2c_db. How do I fidn
out which port is it using?

I search google and found that it might be 50001, so that is what I used
in to catalog node.

It looks like DB2 on AIX is able to connect to DB2 on windows because the
error code is from WASGetLAstError().


--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: No************@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Nov 12 '05 #3
Use netstat -an in the windows machine and see what port the DB2
actually is waiting for. I guess its 50000. You can also see the port
used by db2 in the file C:\WINDOWS\system32\drivers\etc\services
(replace the directory structure accordingly)
Check if there is any firewall protecting ur windows system.
Correct me if iam wrong. Keep posting.

Cheers,
Thiru
WantedToBeDBA
WantedToBeDBA at gmail dot com

Nov 12 '05 #4
While stranded on information super highway Thiru wrote:
Use netstat -an in the windows machine and see what port the DB2
actually is waiting for. I guess its 50000. You can also see the port
used by db2 in the file C:\WINDOWS\system32\drivers\etc\services
Thanks. This is the file I was looking for. I did not know where windows
kept it.
(replace the directory structure accordingly)
Check if there is any firewall protecting ur windows system.
Correct me if iam wrong. Keep posting.

Cheers,
Thiru
WantedToBeDBA
WantedToBeDBA at gmail dot com


--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: No************@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Nov 12 '05 #5
What if both aix and windows are using the same port? We have the same
ports(defaults) and unable to catalog win db from aix.

Should we also create an entry in /etc/services in AIX DB2 pointing to
Windows DB2's port?

Nov 12 '05 #6
In article <11**********************@o13g2000cwo.googlegroups .com>,
(hi****@gmail.com) says...
What if both aix and windows are using the same port? We have the same
ports(defaults) and unable to catalog win db from aix.

Should we also create an entry in /etc/services in AIX DB2 pointing to
Windows DB2's port?


You don't need to add entries to the services file. Just use the port
number with the catalog command and it will work also.
Something like:
db2 catalog tcpip node db2node remote remoteserver server 50000

On a lot of servers the port number is never changed. Even if it is
changed you still need to stop/start the instance before the change
is active so changing the dbm cfg is just as easy as changing the
services file.
Nov 12 '05 #7
hi****@gmail.com wrote:
What if both aix and windows are using the same port?


That's no problem because the connection is identified by the IP-address
combined with the port number.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #8
On aix server, I get the following error:

I tried 1 or 2 then 3 and 4-still error:
1) db2 catalog tcpip node wnode remote er***@adamserv.com server 50000
remote_instance DB2 system miswin ostype aix
--ostype windows gives an error

2)db2 catalog tcpip node wnode remote er***@adamserv.com server 50000

SQL1336N The remote host "er***@adamserv.com" was not found

Node 2 entry:

Node name = WNODE
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = er***@adamserv.com
Service name = 50000

3. db2 catalog database orders as advord at wnode

4. db2 connect to advord

--gives eror : SQL1336N The remote host "SQL1336N The remote host
"er***@adamserv.com" was not found
I am able to ftp to that server er***@adamserv.com

Thanks....

Knut Stolze wrote:
hi****@gmail.com wrote:
What if both aix and windows are using the same port?
That's no problem because the connection is identified by the

IP-address combined with the port number.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena


Nov 12 '05 #9
hi****@gmail.com wrote:
On aix server, I get the following error:

I tried 1 or 2 then 3 and 4-still error:
1) db2 catalog tcpip node wnode remote er***@adamserv.com server 50000
"er***@adamserv.com" is definitively not a correct host name. Maybe you
just meant to say "adamserv.com"?
remote_instance DB2 system miswin ostype aix
--ostype windows gives an error


What kind of error?
If the remote system is Windows, you shouldn't say it's AIX.

I recommend that you try to do those steps via the control center. If the
admin server is running and discovery is not disabled, you simply have to
click your way through...

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #10
No problems while cataloging with the control center. Only while I do
it with the telnet session on the aix server to windows. If I mention
ostype to be windows, it errors expecting it to be 'aix'.
Wondering why the telnet session does not recognize what
windows/control center could.

Thanks Knut!!

Nov 12 '05 #11
hi****@gmail.com wrote:
No problems while cataloging with the control center. Only while I do
it with the telnet session on the aix server to windows. If I mention
ostype to be windows, it errors expecting it to be 'aix'.
As I said, the exact error message would be helpful.

In any case, you have to specify "OSTYPE WIN" if the remote system is a
Windows server.
Wondering why the telnet session does not recognize what
windows/control center could.


In the Control Center you have usually a button labeled "Show Command".
Clicking on that gives you the exact command that you can also execute from
the command line.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #12
Knut Stolze wrote:
In any case, you have to specify "OSTYPE WIN" if the remote system is a
Windows server.


Btw: this is in the docs:
http://publib.boulder.ibm.com/infoce...e/r0001944.htm

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #13
The error you are getting means that it can't find the hostname (
er***@adamserv.com) specified with the SERVER parm. of your command.
Whatever value you put must resolve to the IP address of the target Win box
where your server is.
Possible entries:
somehostname Make sure you have an entry in your host file (same location
as services but on your system).
somehostname The entry can be resolved by A DNS if you are using one.
126.171.16.112 The actual IP address of the targer server I don't recommend
that as your displays don't look nice.
HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
<hi****@gmail.com> a écrit dans le message de news:
11*********************@z14g2000cwz.googlegroups.c om...
On aix server, I get the following error:

I tried 1 or 2 then 3 and 4-still error:
1) db2 catalog tcpip node wnode remote er***@adamserv.com server 50000
remote_instance DB2 system miswin ostype aix
--ostype windows gives an error

2)db2 catalog tcpip node wnode remote er***@adamserv.com server 50000

SQL1336N The remote host "er***@adamserv.com" was not found

Node 2 entry:

Node name = WNODE
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = er***@adamserv.com
Service name = 50000

3. db2 catalog database orders as advord at wnode

4. db2 connect to advord

--gives eror : SQL1336N The remote host "SQL1336N The remote host
"er***@adamserv.com" was not found
I am able to ftp to that server er***@adamserv.com

Thanks....

Knut Stolze wrote:
hi****@gmail.com wrote:
> What if both aix and windows are using the same port?


That's no problem because the connection is identified by the

IP-address
combined with the port number.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena


Nov 12 '05 #14
On Aix, I typed:

1) db2 catalog tcpip node wnode remote 165.32.4.31 server 50000
remote_instance DB2 ostype win
--success
2)db2 catalog database orders as advord at node wnode authentication
server
--success
3) db2 connect to advord user winuser using winpwd
--success
Thanks to Knut and Pierre.

Nov 12 '05 #15

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

Similar topics

1
by: Marino | last post by:
Hi all, I have a Windows 2003 server, which is also a terminal server for application, with sql 2000 installed. My company has developed an application that uses SQL 2000 as its database. The...
23
by: Rudolf Bargholz | last post by:
Hi, I have a ralatively simple SQL: select FK from TABLE where upper(A) like 'B%' and upper(C) like 'D%' We have DB2 UDB v7.1 FP 12 installed on Linux and on Windows 2003 On Linux using...
3
by: W Akthar | last post by:
Hi I am trying to create a windows service which queries SQL Server on timed intervals and depending on the results send appointments to Outlook. The problem lies when I try to create an...
2
by: Vaap | last post by:
I did lot of googling to see if I can solve the SQL server not found problem while trying to run ASP.Net community starter kit from an XP machine to Windows 2003 server hosting SQL server 2000...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
3
by: Gita George | last post by:
What is the best way to control, from a VB .NET program, another apllication, for example a Windows service, written also in VB .NET, that has no user interface. The purpose is to create an user...
0
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
0
by: Rafa | last post by:
Hello, First, sorry because I am spanish and my english are not good. My problem is that i am trying to work with profiles in visual studio 2005, but i have an error. the error is that: ...
1
by: ElvisRS | last post by:
Hi, I'm writing a simple udp client using sockets. My code looks like this: initServer2 = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);...
2
by: orandov | last post by:
Hi, I am having a problem connecting my .net applications from the application server to the database server. When I run the application from my windows xp (sp2) box it works fine. When I try to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.