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

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_END 60003/tcp

TCP/IP Service name (SVCENAME) = DB2_db2inst1

[db2inst1@mairhtin 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 15904
On Apr 23, 11:34 am, "mairhtin o'feannag" <n...@none.comwrote:
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_END 60003/tcp

TCP/IP Service name (SVCENAME) = DB2_db2inst1

[db2inst1@mairhtin 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********@REDIFFMAIL.COMwrote in
news:11**********************@b75g2000hsg.googlegr oups.com:
On Apr 23, 11:34 am, "mairhtin o'feannag" <n...@none.com>
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_END 60003/tcp

TCP/IP Service name (SVCENAME) = DB2_db2inst1

[db2inst1@mairhtin 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 #3
On Apr 23, 1:42 pm, "mairhtin o'feannag" <n...@none.comwrote:
Yes, the remote server is started and I can connect to it
locally.

situ <SRIDHAR...@REDIFFMAIL.COMwrote innews:11**********************@b75g2000hsg.google groups.com:


On Apr 23, 11:34 am, "mairhtin o'feannag" <n...@none.com>
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_END 60003/tcp
TCP/IP Service name (SVCENAME) = DB2_db2inst1
[db2inst1@mairhtin 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_END 60003/tcp

TCP/IP Service name (SVCENAME) = DB2_db2inst1

[db2inst1@mairhtin 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.comwrote in message
news:Xn******************************@207.115.17.1 02...
Yes, the remote server is started and I can connect to it
locally.

situ <SR********@REDIFFMAIL.COMwrote in
news:11**********************@b75g2000hsg.googlegr oups.com:
>On Apr 23, 11:34 am, "mairhtin o'feannag" <n...@none.com>
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_END 60003/tcp

TCP/IP Service name (SVCENAME) = DB2_db2inst1

[db2inst1@mairhtin 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 #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 "db2cdb2inst1" 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\system32\drivers\etc\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 <usernameusing <password>]
instead of db2 connect to sample (without 2).

Knokmans
"mairhtin o'feannag" <no**@none.comwrote in message
news:Xn******************************@207.115.33.1 02...
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 "db2cdb2inst1" 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 "db2cdb2inst1" was not found.

Mairhtin


"Knokmans" <kn******@nospam.comwrote in
news:46**********************@dreader13.news.xs4al l.nl:
I assume your server is Unix/Linux....
if it is Windows replace /etc/services by
c:\windows\system32\drivers\etc\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 <usernameusing <password>]
instead of db2 connect to sample (without 2).

Knokmans
"mairhtin o'feannag" <no**@none.comwrote in message
news:Xn******************************@207.115.33.1 02...
>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 "db2cdb2inst1" 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 "db2cdb2inst1" was not found.
Just a guess: do you have "db2cdb2inst1" 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
You can give a db2 ? <messageon the commandline. I quote:

db2 ? SQL1337N
SQL1337N The service "<service-name>" was not found.
Explanation:
The system cannot resolve the port number associated with the
service-name. Possible causes are:
o An incorrect service-name value was specified when the TCP/IP
node was cataloged.
o The correct service-name was specified, but was not defined
in the client's services file.

Federated system users: this situation can also be detected by
the data source.

User Response:
Make sure that the service-name specified when cataloging the
TCP/IP node is a correct name, and that it is defined in the
local services file.
Federated system users must also ensure that the name is defined
in the services file at the data source.
"Knut Stolze" <st****@de.ibm.comwrote in message
news:59*************@mid.individual.net...
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 "db2cdb2inst1" was not found.

Just a guess: do you have "db2cdb2inst1" 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 #11

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

Similar topics

6
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...
7
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"...
5
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...
1
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. ...
5
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...
1
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...
0
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 ...
5
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...
13
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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...

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.