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

SQL6031N after /etc/services was changed.

I am getting the following error when I run a db2 clp command.
$ db2 list applications
SQL6031N Error in the db2nodes.cfg file at line number "0". Reason
code
"11".
$ db2level
DB21085I Instance "db2inst7" uses DB2 code release "SQL07029" with
level
identifier "030A0105" and informational tokens "DB2 v7.1.0.111",
"s050516" and
"U803327".
I believe the /etc/services file was overwritten with a file that did
not have the entries for the db2 instance. I have added the
appropriate entries but I am still unable to run a clp command.
db2stop also errors out with the same message.

I am able to connect to db2 from a remote server but I cannot connect
from the database server.

Any suggestions on how to work through this?

Rick

Nov 12 '05 #1
3 13525
Make sure the service name in /etc/services matches the SVCENAME in the
DBM config. This is a dbm parameter and will probably require stopping
and restarting the instance to fix it. If you specify the numeric port
for SVCENAME then the /etc/services file isn't used. I'd still put the
entry there for documentation when using the numeric port number.

Phil Sherman

RickC wrote:
I am getting the following error when I run a db2 clp command.
$ db2 list applications
SQL6031N Error in the db2nodes.cfg file at line number "0". Reason
code
"11".
$ db2level
DB21085I Instance "db2inst7" uses DB2 code release "SQL07029" with
level
identifier "030A0105" and informational tokens "DB2 v7.1.0.111",
"s050516" and
"U803327".
I believe the /etc/services file was overwritten with a file that did
not have the entries for the db2 instance. I have added the
appropriate entries but I am still unable to run a clp command.
db2stop also errors out with the same message.

I am able to connect to db2 from a remote server but I cannot connect
from the database server.

Any suggestions on how to work through this?

Rick

Nov 12 '05 #2
Rick, as you can connect to the database remotely this means that
SVCENAME is set correctly.

Set the instance-owning partition port in /etc/services to:

DB2_instance_name port_number

Example for instance name "db2inst1":

DB2_db2inst1 60000/tcp

I did a quick test removing the line from existing services file and
got the same error message. Read more about Fast Communications Manager
(FCM) and the related entries in services file:

DB2_db2inst1 60000/tcp
DB2_db2inst1_1 60001/tcp
DB2_db2inst1_2 60002/tcp
DB2_db2inst1_END 60003/tcp

(the example is related to version 8 but the first line is also related
to version 7)

Regards, Artur

Nov 12 '05 #3
Thanks Artur that was very helpful. I didn't know that the FCM port(s)
were needed for a single partition database.
So each db2 instance requires at least two entries in the /etc/services
file

The first entry corresponds with SVCENAME. db2 get dbm cfg|grep
SVCENAME

The second entry (FCM port) must follow a naming convention.
DB2_{instance name} {port#}/tcp
DB2_{instance name}_END {port#+n}/tcp

I'm taking a backup of the /etc/services file in case it gets wiped out
again.

Thanks,
Rick C.

Nov 12 '05 #4

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

Similar topics

2
by: Liza | last post by:
I've learnt that there are 3 types of web services...........one that provide information, once that provide a transaction, ones are an integration of webservices. WHy bother have a web service...
1
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not...
2
by: Ollie | last post by:
okay before anyone says I shouldn't use session state in a web services don't both..... I have 2 web services that both use sesssion state and share the session state between the web services,...
1
by: christopher green | last post by:
Ok guys I'm tearing my hair out here. As a result of a recent ms patch that has been installed on a server a number of c# based windows services are failing to start. There are no entries in the...
6
by: Dan V. | last post by:
Is there a way to query a remote xml file periodically by not using web services? For Windows and Unix platforms. Is there a cheap software product that I can install on each client and my Windows...
1
by: Al | last post by:
I have a single project that contains 8 different windows services. There is a seperate installation project in the solution for the Windows Services. Both projects build fine with no errors. The...
7
by: Stu | last post by:
Hi, I have a web service which returns a record set and works well integrated with an asp dot net page. However if I decided to develop a unix app will i be able to read the dataset as it is...
0
by: Anonieko | last post by:
A lot of times, web hostings for ASPNET 2.0 will offer only MS Access DB for database for basic plan, a question often asked is how can I use the membership services, role, web parts services, etc ...
5
by: JT | last post by:
Hi, I think I need a "best practices" lesson on web sites and web services. In order to conform to the restraints of my web host, my web services seem to need to be in a subfolder of my web...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.