473,224 Members | 1,434 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,224 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 13487
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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.