473,657 Members | 2,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

db2icrt on Debian Sarge fails

Hi.

I am trying to get db2 PE up and running on Debian Sarge. I have installed
all rpms using alien. I added the licence and I can create the das, but if
I try to create an instance with

/opt/IBM/db2/V8.1/instance/db2icrt -d -u db2run1 db2inst1

and the log file in /tmp tells me

## call function updt_dbmcfg
Program name = db2idbm
Instance home dir = /var/db2/inst1, Sysadm group = db2inst
Instance type = 6, Auth type = SERVER

SQL10007N Message "-1390" could not be retrieved. Reason code: "3".
Update DBM cfg SYSADM_GROUP errcode = 8
DBI1281E Die Konfigurationsd atei des Datenbankmanage rs konnte
nicht initialisiert werden.

I have double checked the groups and directory permission, looks OK. How
can I find out, what -1390, Reason code: "3" and errcode 8 mean?

Any hints what is going on?

Thanx,
Joachim

Nov 12 '05 #1
13 4332
On Thu, 15 Sep 2005 21:29:08 +0200, Joachim Zobel wrote:

SQL10007N Message "-1390" could not be retrieved. Reason code: "3".
Update DBM cfg SYSADM_GROUP errcode = 8 DBI1281E Die Konfigurationsd atei
des Datenbankmanage rs konnte
nicht initialisiert werden.


I have tracked down, that the command that fails is actually

db2 update database manager configuration using SYSADM_GROUP ${SysAdmGrp?}

but I am still searching for docs on code 3 et al.

Sincerely,
Joachim

Nov 12 '05 #2
Joachim Zobel wrote:
Hi.

I am trying to get db2 PE up and running on Debian Sarge. I have installed
all rpms using alien. I added the licence and I can create the das, but if
I try to create an instance with

/opt/IBM/db2/V8.1/instance/db2icrt -d -u db2run1 db2inst1

and the log file in /tmp tells me

## call function updt_dbmcfg
Program name = db2idbm
Instance home dir = /var/db2/inst1, Sysadm group = db2inst
Instance type = 6, Auth type = SERVER

SQL10007N Message "-1390" could not be retrieved. Reason code: "3".
Update DBM cfg SYSADM_GROUP errcode = 8
DBI1281E Die Konfigurationsd atei des Datenbankmanage rs konnte
nicht initialisiert werden.

I have double checked the groups and directory permission, looks OK. How
can I find out, what -1390, Reason code: "3" and errcode 8 mean?

Any hints what is going on?


Unfortunately, there are a number of environment issues that could give you
this error. And, even worse, you're on an officially unsupported platform,
which makes it really difficult to get IBM to look at it.

That said, message -1390 is "DB2INSTANC E not set or undefined." Without
that variable, DB2 can't figure out how to load the German version of the
message, and then throws an SQL10007 message up (in English, of course).
Unfortunately, DB2INSTANCE is set during db2icrt, which points to a deeper
environment problem.

If you were to have this problem on a supported platform, I'd suggest
calling IBM support.

If you haven't installed the latest fixpack (FP10, I believe), that may
help. Of course, you're going to have to do that manually, as well, since
DB2 doesn't support alien directly.

Good luck,
Nov 12 '05 #3
Joachim Zobel wrote:
Hi.

I am trying to get db2 PE up and running on Debian Sarge. I have installed
all rpms using alien. I added the licence and I can create the das, but if
I try to create an instance with

/opt/IBM/db2/V8.1/instance/db2icrt -d -u db2run1 db2inst1

and the log file in /tmp tells me

## call function updt_dbmcfg
Program name = db2idbm
Instance home dir = /var/db2/inst1, Sysadm group = db2inst
Instance type = 6, Auth type = SERVER

SQL10007N Message "-1390" could not be retrieved. Reason code: "3".
Update DBM cfg SYSADM_GROUP errcode = 8
DBI1281E Die Konfigurationsd atei des Datenbankmanage rs konnte
nicht initialisiert werden.

I have double checked the groups and directory permission, looks OK. How
can I find out, what -1390, Reason code: "3" and errcode 8 mean?

Any hints what is going on?

Thanx,
Joachim


Joachim,

I wrote an article on doing this for IDUG Solutions Journal in 2003.
Unfortunately the ISJ part of the IDUG website is "undergoing maintenance"
at the moment, so I can't give you an online link to the article.

But I should have a copy lying about on my hard drive somewhere, if you want
to email me offlist (teamdbaATNOSPA Mscotdb.com).

One thing I do recall is that there are different packages for the various
language files, and you may have issues with these.

I do know that I had DB2 running for a long while on Debian Sid, so it
should be possible.

Phil
Nov 12 '05 #4
On Fri, 16 Sep 2005 03:20:29 +0000, Darin McBride wrote:
Unfortunately, there are a number of environment issues that could give
you this error. And, even worse, you're on an officially unsupported
platform, which makes it really difficult to get IBM to look at it.
I am doing this on my laptop (not a production system :), since I want to
try out the WITH clause and learn about db2 in general.
That said, message -1390 is "DB2INSTANC E not set or undefined." Without
that variable, DB2 can't figure out how to load the German version of
the message, and then throws an SQL10007 message up (in English, of
course). Unfortunately, DB2INSTANCE is set during db2icrt, which points
to a deeper environment problem.


This is weird. The script is doing:

#-----------------------------------------------------------------------
# Set the environment for the instance we are running as.
#-----------------------------------------------------------------------
set_instenv

#-----------------------------------------------------------------------
# Update the database manager configuration file to set SYSADM_GROUP to
# the specified group. Check for SQL6031N message.
#-----------------------------------------------------------------------
errmsg=`db2 update database manager configuration using SYSADM_GROUP ${SysAdmGrp?} 2>&1 `

and set_instenv looks as if it can not fail, at least if the instance name
is passed correctly. And using -d tells me it is passed.

Calling db2 manually gives the same error, even if I do an export
DB2INSTANCE=db2 inst before. So -1390 seems to be used as a general "Uh,
there is no instance" error.

Probably I am not fully groking the IBM spirit yet.

Sincerely,
Joachim

Nov 12 '05 #5
Joachim Zobel wrote:
On Fri, 16 Sep 2005 03:20:29 +0000, Darin McBride wrote:
Unfortunately, there are a number of environment issues that could give
you this error. And, even worse, you're on an officially unsupported
platform, which makes it really difficult to get IBM to look at it.
I am doing this on my laptop (not a production system :), since I want to
try out the WITH clause and learn about db2 in general.


I'm hoping to try DB2 out on my gentoo box, too, but I'm not that
adventurous yet ;-)
That said, message -1390 is "DB2INSTANC E not set or undefined." Without
that variable, DB2 can't figure out how to load the German version of
the message, and then throws an SQL10007 message up (in English, of
course). Unfortunately, DB2INSTANCE is set during db2icrt, which points
to a deeper environment problem.


This is weird. The script is doing:

#-----------------------------------------------------------------------
# Set the environment for the instance we are running as.
#-----------------------------------------------------------------------
set_instenv

#-----------------------------------------------------------------------
# Update the database manager configuration file to set SYSADM_GROUP to
# the specified group. Check for SQL6031N message.
#-----------------------------------------------------------------------
errmsg=`db2 update database manager configuration using SYSADM_GROUP
${SysAdmGrp?} 2>&1 `

and set_instenv looks as if it can not fail, at least if the instance name
is passed correctly. And using -d tells me it is passed.


Right - DB2INSTANCE *is* set. Thus, the problem is actually deeper than
that. Usually, this is related to improper permissions to the home
directory, a directory above the home
directory, /etc/services, /usr, /usr/bin, /bin, ... it's not really
entirely clear to me.
Calling db2 manually gives the same error, even if I do an export
DB2INSTANCE=db2 inst before. So -1390 seems to be used as a general "Uh,
there is no instance" error.


As long as you're playing with the scripts at all, you could go into the
script where it calls db2idbm, and just forcefully set rc=0 afterwards. It
will proceed to completion, but the instance's dbm cfg won't be set up
properly. And you'll probably still get the same error should you try -
but at least you'll have an instance. Not a very useful instance, mind
you... ;-) There may be more detail left in ~/sqllib/db2dump/db2diag.log

Let's see ...

/etc/passwd

* Check to make sure there is no # or blank lines in it.

# Make sure you use '-' when doing the 'su'. Ex: "su - db2inst1"
# Make sure the machine name is listed in its hosts file.
# Make sure to log on directly to root. ie: do not su to root from another
user. (su - may be ok.)
# Make sure there is no instance created already (find / -name sqllib)
# Check that the instance password has not expired
# Make sure the name of the instance is not too long.
# Check that defaults were not changed to disallow group and others to write
to /dev/null
* -> set the /dev/null permissions to crw-rw-rw-

(This is just based on problems others have had getting this error.)
Nov 12 '05 #6
On Fri, 16 Sep 2005 19:09:25 +0000, Darin McBride wrote:
As long as you're playing with the scripts at all, you could go into the
script where it calls db2idbm, and just forcefully set rc=0 afterwards.
It will proceed to completion, but the instance's dbm cfg won't be set up
properly. And you'll probably still get the same error should you try -
but at least you'll have an instance. Not a very useful instance, mind
you... ;-) There may be more detail left in ~/sqllib/db2dump/db2diag.log

Let's see ...


I did this so I could play around to find out why db2 did not work. This
is what I found.

db2inst1@asus:~ $ export LANG=de_DE.utf8
db2inst1@asus:~ $ db2 update database manager configuration using
SYSADM_GROUP db2inst DB20000I
Der Befehl UPDATE DATABASE MANAGER CONFIGURATION wurde erfolgreich
ausgeführt.

So it is some NLS stuff. I will do further research.

Sincerely,
Joachim

Nov 12 '05 #7

How is the language set for a db2 installation- I remember that to get
german messages I symlinked some de_DE file. This was probably not the
correct way to do this. How is ist done?

Thx,
Joachim
Nov 12 '05 #8
Joachim Zobel wrote:
How is the language set for a db2 installation- I remember that to get
german messages I symlinked some de_DE file. This was probably not the
correct way to do this. How is ist done?


Installation or instance? To run the db2setup wizard in German, you can
either set your LANG to some value that DB2 recognises as German, which
probably includes "de_DE", "de_DE.utf8 ", and possibly even "Deutsch" (I'm
probably not spelling that last one correctly) or, oddly enough,
"German"... or you can pass in a "-i de" parameter to db2setup.

For the instance part of the question, whether that's instance management
(db2icrt, db2iupdt, etc.) or using an instance (db2 udpate dbm cfg, db2
select, db2cc, etc.), only the LANG setting is used.

You should not need to create any symlinks. DB2 v8 is smart enough to map
your LANG setting to the internal form that DB2 uses.
Nov 12 '05 #9
Joachim Zobel wrote:
On Fri, 16 Sep 2005 19:09:25 +0000, Darin McBride wrote:
As long as you're playing with the scripts at all, you could go into the
script where it calls db2idbm, and just forcefully set rc=0 afterwards.
It will proceed to completion, but the instance's dbm cfg won't be set up
properly. And you'll probably still get the same error should you try -
but at least you'll have an instance. Not a very useful instance, mind
you... ;-) There may be more detail left in ~/sqllib/db2dump/db2diag.log

Let's see ...


I did this so I could play around to find out why db2 did not work. This
is what I found.

db2inst1@asus:~ $ export LANG=de_DE.utf8
db2inst1@asus:~ $ db2 update database manager configuration using
SYSADM_GROUP db2inst DB20000I
Der Befehl UPDATE DATABASE MANAGER CONFIGURATION wurde erfolgreich
ausgeführt.

So it is some NLS stuff. I will do further research.


I'm not sure that you have enough evidence here to tell me it's NLS stuff -
if you set your LANG to C or en_US, does it magically start working? I
doubt it has anything to do with your language.

Nov 12 '05 #10

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

Similar topics

1
2601
by: Guillaume Gervais | last post by:
Hello there, I'm using Debian GNU/Linux testing/unstable (sarge) as an operating system. About a month ago, I installed python 2.3 on my machine, from the sources. And it worked perfectly. But about 3 weeks ago, I made a update of the packages list (apt-get update) followed by a apt-get dist-upgrade. I short, I upgraded Debian. But among the ugraded packages was python2.3. And it doesn't seem to
3
1878
by: Alex Stapleton | last post by:
Whenever I run python I get "Warning! you are running an untested version of Python." prepended to the start of any output on stdout. This is with Debian and python 2.3 (running the debian 2.1 and 2.2 binaries doesn't have this effect) Does anyone have any idea how to stop this or have even seen it before?
1
2084
by: Alex Stapleton | last post by:
localhost:~alex#python Python 2.3.3 (#2, Feb 24 2004, 09:29:20) on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import smtplib Segmentation fault (core dumped) This happens under python 2.2 and 2.3 and 2.4 argh!
4
1416
by: Brian van den Broek | last post by:
Hi all, I know that this is something for which I could (keep) STFW, but I'm mostly ignorant of the subject area and under a bit of a deadline. So I hope people won't mind if I truncate my search and ask here. I've tried solo and failed a few times to install various Linux distros on Intel x86 laptops. (The software modem was always the sticking point.) A recent acquaintance has volunteered to guide me through an install tomorrow....
0
2315
by: heddy Boubaker | last post by:
hi, as the subject said I've pb compiling php-4.4.4 and php-5.1.6 with ldap module activated on linux debian sarge (2.6.8-3-686-smp) : - for 4.4.4 I've % /bin/sh /www/src/php-4.4.4/libtool --silent --preserve-dup-deps --mode=compile /www/src/php-4.4.4/meta_ccld -Isapi/cli/ ext/ldap/ldap.lo(.text+0x26a3): In function `zif_ldap_set_option': : undefined reference to `ber_pvt_opt_on' collect2: ld returned 1 exit status
1
1211
by: tannenba | last post by:
Ok- I'm a dummy. I got this book "php and mysql for dummies" and decided to learn it from the book. I loaded my sarge originally with mysql 4 and php4 from the debian pkgs. I tried the test script and it worked. Then...I tried to update it from dotdeb, and problems started. The script doesn't work and mysql-admin says my client is 4.1 while apt-get says I have 5.0. The test script also still works as mysql 4. Also: I can use the gui...
2
2142
by: muquaddim | last post by:
Hi, I am running a Debian/Sarge #uname -a Linux jukebox 2.6.14.2 #5 PREEMPT Mon Nov 28 20:28:54 CET 2005 i686 GNU/Linux I have a java casino game created by jdk (1.6.0_02) netbeans(5..5.1) . If I run it in development machine (windows) it runs okay. It also runs okay in (fedora) But I got problme when I run it in the Debian. after some clickings and typings it gets frozen. just frozen. I can not work with it. I though I would compile it...
119
4451
by: Rhino | last post by:
One of my friends, Scott, is a consultant who doesn't currently have newsgroup access so I am asking these questions for him. I'll be telling him how to monitor the answers via Google Newsgroup searches. Scott has heard a lot of hype about DB2 and Oracle and is trying to understand the pros and cons of each product. I'm quite familiar with DB2 but have never used Oracle so I can't make any meaningful comparisons for him. He does not have...
0
1991
by: carex | last post by:
Hi, A few years ago (2000 ?) I installed an oracle client on a linux server (oracle8iR2 on Debian Woody) and everything went beautifully. (with DBD::Oracle) Now, I need an oracle client on my new laptop. (debian Sarge) I tried oracle 10g instant client but whitout success. See below.
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8605
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
7321
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...
0
5632
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
4151
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...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1607
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.