473,748 Members | 11,145 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error connecting to V9 remote database

Hello,

I'm having problems connecting to my new v9 db box. The pertinent
information is below:

DB2_db2inst1 60000/tcp
DB2_db2inst1_1 60001/tcp
DB2_db2inst1_2 60002/tcp
DB2_db2inst1_EN D 60003/tcp

TCP/IP Service name (SVCENAME) = DB2_db2inst1

[db2inst1@mairht in db2dump]$ db2set
AUTOSTART=yes
DB2COMM=tcpip

SQL30081N A communication error has been detected. Communication
protocol
being used: "TCP/IP". Communication API being used: "SOCKETS".
Location
where the error was detected: "67.170.223.55" . Communication
function
detecting the error: "connect". Protocol specific error code(s):
"10061", "*",
"*". SQLSTATE=08001

db2 catalog tcpip node homesvr remote 67.170.223.55 server DB2
_db2inst1
db2 catalog db sample as sample2 at node homesvr
Database 2 entry:

Database alias = SAMPLE2
Database name = SAMPLE
Node name = HOMESVR
Database release level = b.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =

Node 1 entry:

Node name = HOMESVR
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = 67.170.223.55
Service name = DB2_db2inst1
Any help would be appreciated.

Mairhtin O'Feannag

Apr 23 '07 #1
10 15953
On Apr 23, 11:34 am, "mairhtin o'feannag" <n...@none.comw rote:
Hello,

I'm having problems connecting to my new v9 db box. The pertinent
information is below:

DB2_db2inst1 60000/tcp
DB2_db2inst1_1 60001/tcp
DB2_db2inst1_2 60002/tcp
DB2_db2inst1_EN D 60003/tcp

TCP/IP Service name (SVCENAME) = DB2_db2inst1

[db2inst1@mairht in db2dump]$ db2set
AUTOSTART=yes
DB2COMM=tcpip

SQL30081N A communication error has been detected. Communication
protocol
being used: "TCP/IP". Communication API being used: "SOCKETS".
Location
where the error was detected: "67.170.223.55" . Communication
function
detecting the error: "connect". Protocol specific error code(s):
"10061", "*",
"*". SQLSTATE=08001

db2 catalog tcpip node homesvr remote 67.170.223.55 server DB2
_db2inst1
db2 catalog db sample as sample2 at node homesvr

Database 2 entry:

Database alias = SAMPLE2
Database name = SAMPLE
Node name = HOMESVR
Database release level = b.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =

Node 1 entry:

Node name = HOMESVR
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = 67.170.223.55
Service name = DB2_db2inst1

Any help would be appreciated.

Mairhtin O'Feannag


does u'r remote server started ??

Apr 23 '07 #2
Yes, the remote server is started and I can connect to it
locally.

situ <SR********@RED IFFMAIL.COMwrot e in
news:11******** **************@ b75g2000hsg.goo glegroups.com:
On Apr 23, 11:34 am, "mairhtin o'feannag" <n...@none.co m>
wrote:
>Hello,

I'm having problems connecting to my new v9 db box. The
pertinent
>information is below:

DB2_db2inst1 60000/tcp
DB2_db2inst1 _1 60001/tcp
DB2_db2inst1 _2 60002/tcp
DB2_db2inst1_E ND 60003/tcp

TCP/IP Service name (SVCENAME) = DB2_db2inst1

[db2inst1@mairht in db2dump]$ db2set
AUTOSTART=ye s
DB2COMM=tcpi p

SQL30081N A communication error has been detected.
Communication
>protocol
being used: "TCP/IP". Communication API being used:
"SOCKETS".
>Location
where the error was detected: "67.170.223.55" .
Communication
>function
detecting the error: "connect". Protocol specific error
code(s):
>"10061", "*",
"*". SQLSTATE=08001

db2 catalog tcpip node homesvr remote 67.170.223.55 server
DB2
>_db2inst1
db2 catalog db sample as sample2 at node homesvr

Database 2 entry:

Database alias = SAMPLE2
Database name = SAMPLE
Node name = HOMESVR
Database release level = b.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =

Node 1 entry:

Node name = HOMESVR
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = 67.170.223.55
Service name = DB2_db2inst1

Any help would be appreciated.

Mairhtin O'Feannag

does u'r remote server started ??

Apr 23 '07 #3
On Apr 23, 1:42 pm, "mairhtin o'feannag" <n...@none.comw rote:
Yes, the remote server is started and I can connect to it
locally.

situ <SRIDHAR...@RED IFFMAIL.COMwrot e innews:11****** *************** *@b75g2000hsg.g ooglegroups.com :


On Apr 23, 11:34 am, "mairhtin o'feannag" <n...@none.co m>
wrote:
Hello,
I'm having problems connecting to my new v9 db box. The
pertinent
information is below:
DB2_db2inst1 60000/tcp
DB2_db2inst1_1 60001/tcp
DB2_db2inst1_2 60002/tcp
DB2_db2inst1_EN D 60003/tcp
TCP/IP Service name (SVCENAME) = DB2_db2inst1
[db2inst1@mairht in db2dump]$ db2set
AUTOSTART=yes
DB2COMM=tcpip
SQL30081N A communication error has been detected.
Communication
protocol
being used: "TCP/IP". Communication API being used:
"SOCKETS".
Location
where the error was detected: "67.170.223.55" .
Communication
function
detecting the error: "connect". Protocol specific error
code(s):
"10061", "*",
"*". SQLSTATE=08001
db2 catalog tcpip node homesvr remote 67.170.223.55 server
DB2
_db2inst1
db2 catalog db sample as sample2 at node homesvr
Database 2 entry:
Database alias = SAMPLE2
Database name = SAMPLE
Node name = HOMESVR
Database release level = b.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
Node 1 entry:
Node name = HOMESVR
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = 67.170.223.55
Service name = DB2_db2inst1
Any help would be appreciated.
Mairhtin O'Feannag
does u'r remote server started ??- Hide quoted text -

- Show quoted text -

since ur able to connect locally , i guess the problem is with
firewall settings

Apr 23 '07 #4
mairhtin o'feannag wrote:
Hello,

I'm having problems connecting to my new v9 db box. The pertinent
information is below:

DB2_db2inst1 60000/tcp
DB2_db2inst1_1 60001/tcp
DB2_db2inst1_2 60002/tcp
DB2_db2inst1_EN D 60003/tcp

TCP/IP Service name (SVCENAME) = DB2_db2inst1

[db2inst1@mairht in db2dump]$ db2set
AUTOSTART=yes
DB2COMM=tcpip
Stupid question, maybe, but you did restart the DB2 server after setting the
DB2COMM registry variable?
SQL30081N A communication error has been detected. Communication
protocol
being used: "TCP/IP". Communication API being used: "SOCKETS".
Location
where the error was detected: "67.170.223.55" . Communication
function
detecting the error: "connect". Protocol specific error code(s):
"10061", "*",
"*". SQLSTATE=08001

db2 catalog tcpip node homesvr remote 67.170.223.55 server DB2
_db2inst1
db2 catalog db sample as sample2 at node homesvr
The V9 manual shows the following explanation for SQL30081.

---------------------------------------------------------------------------
If <protocol= TCP/IP, <function= connect, <rc1=
ECONNREFUSED/WSAECONNREFUSED , AIX (79), Windows (10061), linux (111), SUN
(146), HP (239), the attempt to connect was rejected. Possible causes:

* The remote database server has not been cataloged correctly at the
client. In a client-gateway-server scenario, ensure the host entries are
cataloged correctly on the gateway. See the Quick Beginnings guide for
assistance.
* The database manager configuration file at the server has not been
configured properly with the proper communication parameters. Check that
svcename has been configured properly with the TCP/IP service name or port
number and that the port number is unique. If database manager
configuration parameters have been updated at the server, the database
manager must be stopped and re-started for the changes to take effect.
There might be a mismatch between the TCP/IP service name or port number
specified on the server and on the client. Ensure the service name maps to
the correct port number by checking the services file. You can check this
by reading the services file or checking the output of "netstat -a".
* The DB2COMM environment variable at the server does not specify the
communication protocol used by the client. Check that TCPIP has been
specified. Issue db2set to see what has already been set. Issue db2set
DB2COMM = TCPIP to set the value.
* The database manager at the server has not been started, or has not
been started successfully, or has gone down. The server should have
returned SQL1063, and not SQL5043. If you set the database manager
configuration parameter, diaglevel, to 4 using, db2 update dbm cfg using
diaglevel 4, prior to issuing db2start, the administration notification log
will provide detailed information on which protocols were started
successfully. Check the administration notification log.
* The server might be too busy to handle the volume of incoming
connections at this time.
* Network failure, contact your network administrator. You can try a
test using the protocol tester, pctt, to verify this is not a DB2 problem.
---------------------------------------------------------------------------

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Apr 23 '07 #5
-Maybe stupid remark, but is there an entry for DB2_db2inst1 in your
client's services file ??

-If it is still not working, try a totally different socket and SVCENAME
(e.g. db2cdb2inst1 50000/tcp). As far as i know the sockets 60000+ are
installed only in an ESE environtment (for partitioning puposes), so try
socket 50000 (default by install).

Knokmans

"mairhtin o'feannag" <no**@none.comw rote in message
news:Xn******** *************** *******@207.115 .17.102...
Yes, the remote server is started and I can connect to it
locally.

situ <SR********@RED IFFMAIL.COMwrot e in
news:11******** **************@ b75g2000hsg.goo glegroups.com:
>On Apr 23, 11:34 am, "mairhtin o'feannag" <n...@none.co m>
wrote:
>>Hello,

I'm having problems connecting to my new v9 db box. The
pertinent
>>information is below:

DB2_db2inst 1 60000/tcp
DB2_db2inst1_ 1 60001/tcp
DB2_db2inst1_ 2 60002/tcp
DB2_db2inst1_ END 60003/tcp

TCP/IP Service name (SVCENAME) = DB2_db2inst1

[db2inst1@mairht in db2dump]$ db2set
AUTOSTART=y es
DB2COMM=tcp ip

SQL30081N A communication error has been detected.
Communication
>>protocol
being used: "TCP/IP". Communication API being used:
"SOCKETS".
>>Location
where the error was detected: "67.170.223.55" .
Communication
>>function
detecting the error: "connect". Protocol specific error
code(s):
>>"10061", "*",
"*". SQLSTATE=08001

db2 catalog tcpip node homesvr remote 67.170.223.55 server
DB2
>>_db2inst1
db2 catalog db sample as sample2 at node homesvr

Database 2 entry:

Database alias = SAMPLE2
Database name = SAMPLE
Node name = HOMESVR
Database release level = b.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =

Node 1 entry:

Node name = HOMESVR
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = 67.170.223.55
Service name = DB2_db2inst1

Any help would be appreciated.

Mairhtin O'Feannag

does u'r remote server started ??


Apr 23 '07 #6
Ok, Update.

I changed the name of the service on the server machine, made it
50000, altered the client connect (catalogd node/db) and now the error
is VERY odd.

From the server machine :

db2cdb2inst1 50000/tcp
DB2_db2inst1 60000/tcp
DB2_db2inst1_1 60001/tcp
DB2_db2inst1_2 60002/tcp
etc.

the catalog statement on the connecting machine :

catalog tcpip node homesvr remote 67.170.223.55 server 50000;
catalog db sample as sample2 at node homesvr;

DB2 LIST NODE DIRECTORY : (on client machine)
Node Directory

Number of entries in the directory = 1

Node 1 entry:

Node name = HOMESVR
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = 67.170.223.55
Service name = 50000

then, connect to sample;

Error message:

SQL1337N The service "db2cdb2ins t1" was not found.

I have no idea how the service could not be found, since I don't
explicitly supply the service name, it's picked up from the server
machine !?!?!?!?

Mairhtin
Apr 26 '07 #7
I assume your server is Unix/Linux....
if it is Windows replace /etc/services by
c:\windows\syst em32\drivers\et c\services.

On your server be sure :
-db2 get dbm cfg |grep SVCE
TCP/IP Service name (SVCENAME) = db2cdb2inst1
- cat /etc/services|grep db2inst1
db2cdb2inst1 50000/tcp
- db2set
DB2COMM=tcpip
- restart the db2instance:
db2stop [force]
db2start

On your client: catalogging seems to be OK except for the fact you enter:
-catalog db sample as sample2 at node homesvr
this means, when connecting to the database you have to enter
- db2 connect to sample2 [user <usernameusin g <password>]
instead of db2 connect to sample (without 2).

Knokmans
"mairhtin o'feannag" <no**@none.comw rote in message
news:Xn******** *************** *******@207.115 .33.102...
Ok, Update.

I changed the name of the service on the server machine, made it
50000, altered the client connect (catalogd node/db) and now the error
is VERY odd.

From the server machine :

db2cdb2inst1 50000/tcp
DB2_db2inst1 60000/tcp
DB2_db2inst1_1 60001/tcp
DB2_db2inst1_2 60002/tcp
etc.

the catalog statement on the connecting machine :

catalog tcpip node homesvr remote 67.170.223.55 server 50000;
catalog db sample as sample2 at node homesvr;

DB2 LIST NODE DIRECTORY : (on client machine)
Node Directory

Number of entries in the directory = 1

Node 1 entry:

Node name = HOMESVR
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = 67.170.223.55
Service name = 50000

then, connect to sample;

Error message:

SQL1337N The service "db2cdb2ins t1" was not found.

I have no idea how the service could not be found, since I don't
explicitly supply the service name, it's picked up from the server
machine !?!?!?!?

Mairhtin


Apr 26 '07 #8
I have done just that several times. Currently the SVCENAME is set to
50000, which is why I cannot understand the reference to db2cdb2inst1
on the connecting machine. It is obviously being "picked up" from the
server side of the conversation. Then it complains (actually DB2
complains) that it cannot find the service :

SQL1337N The service "db2cdb2ins t1" was not found.

Mairhtin


"Knokmans" <kn******@nospa m.comwrote in
news:46******** **************@ dreader13.news. xs4all.nl:
I assume your server is Unix/Linux....
if it is Windows replace /etc/services by
c:\windows\syst em32\drivers\et c\services.

On your server be sure :
-db2 get dbm cfg |grep SVCE
TCP/IP Service name (SVCENAME) =
db2cdb2inst1
- cat /etc/services|grep db2inst1
db2cdb2inst1 50000/tcp
- db2set
DB2COMM=tcpip
- restart the db2instance:
db2stop [force]
db2start

On your client: catalogging seems to be OK except for the fact you
enter: -catalog db sample as sample2 at node homesvr
this means, when connecting to the database you have to enter
- db2 connect to sample2 [user <usernameusin g <password>]
instead of db2 connect to sample (without 2).

Knokmans
"mairhtin o'feannag" <no**@none.comw rote in message
news:Xn******** *************** *******@207.115 .33.102...
>Ok, Update.

I changed the name of the service on the server machine, made it
50000, altered the client connect (catalogd node/db) and now the
error is VERY odd.

From the server machine :

db2cdb2inst1 50000/tcp
DB2_db2inst1 60000/tcp
DB2_db2inst1 _1 60001/tcp
DB2_db2inst1 _2 60002/tcp
etc.

the catalog statement on the connecting machine :

catalog tcpip node homesvr remote 67.170.223.55 server 50000;
catalog db sample as sample2 at node homesvr;

DB2 LIST NODE DIRECTORY : (on client machine)
Node Directory

Number of entries in the directory = 1

Node 1 entry:

Node name = HOMESVR
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = 67.170.223.55
Service name = 50000

then, connect to sample;

Error message:

SQL1337N The service "db2cdb2ins t1" was not found.

I have no idea how the service could not be found, since I don't
explicitly supply the service name, it's picked up from the server
machine !?!?!?!?

Mairhtin


Apr 27 '07 #9
mairhtin o'feannag wrote:
I have done just that several times. Currently the SVCENAME is set to
50000, which is why I cannot understand the reference to db2cdb2inst1
on the connecting machine. It is obviously being "picked up" from the
server side of the conversation. Then it complains (actually DB2
complains) that it cannot find the service :

SQL1337N The service "db2cdb2ins t1" was not found.
Just a guess: do you have "db2cdb2ins t1" in your /etc/services file on the
client system set to port 50000?

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Apr 27 '07 #10

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

Similar topics

6
4956
by: Chris Love | last post by:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) I get this the frist time I open an ASP.NEt 2.0 site on my development machine now. It started happening when I tried to use the...
7
2197
by: deltalimagolf | last post by:
I now get the following error message after copying an asp.net application to the deployment web server. I don't have SQLExpress or any version of SQL 2005 installed. I found the "LocalSQLServer" connection string in the machine.config, changed that to look at a SQL 2000 database, but the error still comes up. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be...
5
1937
by: James | last post by:
Hello, I have written a simple logon page that redirects to another page when successful. All works fine on my computer but when I upload it I get the error message below. I have written it in ASP.net v2, and have put it on IIS v6 on windows server 2003. I think it may be something to do with connection string to the database,
1
3058
by: =?Utf-8?B?TWljaGFlbA==?= | last post by:
Hi, I have a working site on my desktop. I tried to move it to production and I am getting an error on my new server. It has something to do with setting a profile. Here is the error. Server Error in '/' Application. --------------------------------------------------------------------------------
5
2541
by: Alan Silver | last post by:
Hello, Server configuration: Windows 2003 Server SP2 SQL Server 2000 SP4 ..NET v2.0.50727 just built up a new server using the same configuration as my current one. I even used the same CDs and registration keys, so I'm certain that the two machines are as similar as they can be.
1
1652
by: SayamiSuchi | last post by:
Hi.. I have been assigned to make a database in some remote machine.The machine has MSSQL 2005.I need to connect to that remote machine's sql server via my pc using my SQL Management express.I do have that computer's IP address(say,123.456.789.000),and the username and password.But when i try to connect to the server ,I get the following error: Cannot connect to 123.456.789.000\sqlexpress An error has occured while establishing a...
0
2005
by: aboutjav.com | last post by:
Hi, I need some help. I am getting this error after I complete the asp.net register control and click on the continue button. It crashed when it tries to get it calls this Profile property ((string)(this.GetPropertyValue("Address1")));
5
3558
by: Cirene | last post by:
I just deployed my new ASP.NET (3.5 FW) site to the hosting company I'm using, webhost4life. NOTE: I HAVE deployed other SQL Server sites to the same account with no issues. Now I'm getting this error. Any idea why? Server Error in '/myuser4/MyWebApp' Application. --------------------------------------------------------------------------------
13
3328
by: AAaron123 | last post by:
I downloaded the personal website starter kit and when I run it I get the error shown below. I found a way of using Launch Surface Area Configuration that is supposed to fix the remote setting but I tried it and still get the error. I do not have SQL Server 2005 installed (thought I did once). I do have SQL Server 2008 installed. I don't see anywhere in the code where SQL Server 2005 is referenced.
0
8828
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9537
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9319
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9243
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8241
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4599
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2213
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.