473,399 Members | 3,038 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,399 software developers and data experts.

Multiple Instances and their corresponding entries in the services file

I have approximately 5 instances on my test server that are identical
to my prod server. On the prod server, when I look at the services
file, there is a single entry per instance and everything seems to be
working fine. However, on the test server, after creating each
instance, there are 4 entries per instance. Is there a need for all 4
of these entries? When I add a new service for each instance like on
the prod server and then change the SVCENAME parm for each instance to
match the new service name, I have problems. I keep receiving an error
about the SQL6031N Error in the db2nodes.cfg file at line number "0".
Reason code "11". Any ideas as to why it works on my prod server but
not on my test server? Thanks in advance for any help. Also, here is
an example of the services entries for 1 of the instances on the test
server.

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

Apr 27 '06 #1
7 3707
Your error message is not surprising. Review the complete description of
the SVCENAME data base manager parameter. The port address specified is
"the first of two consecutive ports ...".

Use even numbered port addresses only; 60000, 60002, 60004, 60006.

Phil Sherman
Matt wrote:
I have approximately 5 instances on my test server that are identical
to my prod server. On the prod server, when I look at the services
file, there is a single entry per instance and everything seems to be
working fine. However, on the test server, after creating each
instance, there are 4 entries per instance. Is there a need for all 4
of these entries? When I add a new service for each instance like on
the prod server and then change the SVCENAME parm for each instance to
match the new service name, I have problems. I keep receiving an error
about the SQL6031N Error in the db2nodes.cfg file at line number "0".
Reason code "11". Any ideas as to why it works on my prod server but
not on my test server? Thanks in advance for any help. Also, here is
an example of the services entries for 1 of the instances on the test
server.

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

Apr 27 '06 #2
Thanks for the reply. I'm curious why it works on my prod server but
not on my test server. Does it make a difference if I have Workgroup
Edition on my prod server and EE on my test server? Also, I just
realized that both servers are not at the same fixpack. Could this be
the problem? Thanks.

Apr 27 '06 #3
In article <11**********************@j33g2000cwa.googlegroups .com>,
ma*******@gmail.com says...
I have approximately 5 instances on my test server that are identical
to my prod server. On the prod server, when I look at the services
file, there is a single entry per instance and everything seems to be
working fine. However, on the test server, after creating each
instance, there are 4 entries per instance. Is there a need for all 4
of these entries? When I add a new service for each instance like on
the prod server and then change the SVCENAME parm for each instance to
match the new service name, I have problems. I keep receiving an error
about the SQL6031N Error in the db2nodes.cfg file at line number "0".
Reason code "11". Any ideas as to why it works on my prod server but
not on my test server? Thanks in advance for any help. Also, here is
an example of the services entries for 1 of the instances on the test
server.

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


Those service entries should not be used as SVCENAME. They are used
internally by DB2. You should have other entries in the sevices file. In
my case it also contains the entry 'db2c_DB2 50000/tcp'.
Just add entries to the services file in the 500.. range and use those
names or portnumbers in the instance definitions.
Apr 27 '06 #4
OOPS - incomplete response

The error message states that the defined value in the DBM config does
not have a matching entry in the services file. The second port, one
number higher, is used for interrupt requests from down-level clients.

I'm guessing that your test system uses descriptive names for the port
addresses. Check the services file to verify that the matching names are
indeed in the file.

If the create instance procedure is generating services entries for four
ports for each instance, then I'd suspect that this is early preparation
for some possible future feature of UDB. Note that this is my personal
speculation.

If all the DBM SVCENAMEs match with the first entry in each set in the
services file, try using the actual port addresses in the DBM
configuration to see if this eliminates the error message. You could
also check to see if any fixpak(s) have fixes that resolve a SVCENAME
problem like yours.

Phil Sherman

Phil Sherman wrote:
Your error message is not surprising. Review the complete description of
the SVCENAME data base manager parameter. The port address specified is
"the first of two consecutive ports ...".

Use even numbered port addresses only; 60000, 60002, 60004, 60006.

Phil Sherman
Matt wrote:
I have approximately 5 instances on my test server that are identical
to my prod server. On the prod server, when I look at the services
file, there is a single entry per instance and everything seems to be
working fine. However, on the test server, after creating each
instance, there are 4 entries per instance. Is there a need for all 4
of these entries? When I add a new service for each instance like on
the prod server and then change the SVCENAME parm for each instance to
match the new service name, I have problems. I keep receiving an error
about the SQL6031N Error in the db2nodes.cfg file at line number "0".
Reason code "11". Any ideas as to why it works on my prod server but
not on my test server? Thanks in advance for any help. Also, here is
an example of the services entries for 1 of the instances on the test
server.

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

Apr 27 '06 #5
Matt wrote:
I have approximately 5 instances on my test server that are identical
to my prod server. On the prod server, when I look at the services
file, there is a single entry per instance and everything seems to be
working fine. However, on the test server, after creating each
instance, there are 4 entries per instance. Is there a need for all 4
of these entries? When I add a new service for each instance like on
the prod server and then change the SVCENAME parm for each instance to
match the new service name, I have problems. I keep receiving an error
about the SQL6031N Error in the db2nodes.cfg file at line number "0".
Reason code "11". Any ideas as to why it works on my prod server but
not on my test server? Thanks in advance for any help. Also, here is
an example of the services entries for 1 of the instances on the test
server.

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


Is your test server set up identical to your production server? The reason
why I ask is that these extra service entries should only show up on DB2
UDB ESE, and not on any other product. So if you have ESE on your test
server, but WSE on your production server, for example, that would explain
this difference.

With non-ESE servers, you get one service entry: the connection port. This
entry is usually something like "db2c_<instancename>" unless you opted for
a different name during instance creation (usually in the GUI or response
file). This name goes in your SVCENAME parameter. Again, this should
largely be automatic. (Using db2icrt directly, however, may not create
this, so then it's manual.)

With ESE servers, you get the above connection port PLUS you get
FCM/INTRA-PARALLEL ports. These are *always* of the format
"DB2_<instancename>". The ones with _1, _2, and _END in your example
aren't needed by DB2 explicitly - they are derived internally by just
adding the node number to the port number. They are placed in your
services file mostly to prevent other applications from trying to use them.

These ports are only needed if you're using multiple nodes (whether logical
or physical) in a DPF environment *or* you have intra-parallel turned on,
as I recall. However, even if you're not using either of these yet, DB2
creates them during instance creation (unless they alread exist) to reserve
the ports for when you do need to scale to use these features.

Since these ports have a predefined name, not only can you not change the
names (you can change the numbers, however, as long as they remain
consecutive and not used by any other application on the machine, as well
among the entire cluster if using DPF), you need not configure DB2 in any
way to tell DB2 what the names are. So do not set the SVCENAME to these
values. Leave SVCENAME referencing the connection port from your services
file.

Hope that helps,
Apr 27 '06 #6
Thank you all for your help. The problem seems to be that we have WSE
on the prod server and EE on the test server.

Apr 27 '06 #7
Ian
Darin McBride wrote:

With ESE servers, you get the above connection port PLUS you get
FCM/INTRA-PARALLEL ports. These are *always* of the format
"DB2_<instancename>". The ones with _1, _2, and _END in your example
aren't needed by DB2 explicitly - they are derived internally by just
adding the node number to the port number. They are placed in your
services file mostly to prevent other applications from trying to use them.

Two minor corrections:

These ports are necessary for ESE only, not when you have INTRA_PARALLEL
enabled (otherwise you couldn't use INTRA_PARALLEL with anything other
than ESE!

Also, the DB2_<instancename> and DB2_<instancename>_END ports are both
required, but the _1, _2, etc are not.
Apr 30 '06 #8

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

Similar topics

3
by: MW | last post by:
Hi all, I have written a windows service application and setup project to install/deinstall my service. There is a requirement to run one more instance of the same service with different set...
1
by: Vlad | last post by:
Is there any way to install multiple instances of the same windows service designed with VS.NET 2003? I tried copying the binaries into a separate folder and then copying registry entries for the...
11
by: Mike | last post by:
Looking to find any information on how to properly configure multiple instances of DB2. This is on Win2k db2 ver 7.2. I am basically looking for information on how the multiple instance settings...
1
by: ccr | last post by:
Please view in a text editor so that the columnar text lines up. I used Terminal 9pt font to compose this post and copied/pasted to my newsreader program. I am writing in the hope that one of...
2
by: DraguVaso | last post by:
Hi, I found some examples for storing the FormSettings of a Form in an XML-file, but none of these could match my criteria: What I am looking for is the possibility to save the FormSettings of...
1
by: sunil | last post by:
Hello All. I have written a program as an exe that performs some kind of order processing. The program is first configured and then started manually. I have have multiple instances of this...
2
by: sdstraub | last post by:
I have created 5 services in my project, in the 1st service I set servicestorun = array of all 5 services, I have a project installer with 5 service installers, one for each service. I have code...
0
by: jigsmshah | last post by:
I have a windows service developed in C#.I am reading the connection string from an ini file and also i am reading 3 image file from the bin directory. now the new requirement is that there will be...
4
by: nottarealaddress | last post by:
I'm trying to get my feet wet in VB2005 (our new standard at work after officially stopping new development in VB6 about a month ago). I'm working with a simple sql 2005 table of 50 entries, one...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...
0
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,...

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.