By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,610 Members | 1,677 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,610 IT Pros & Developers. It's quick & easy.

DB2 install on Gentoo Linux

P: n/a
Hello!

I got IBM DB2 V8.1 successfully installed via rpm on my gentoo system
except the DAS and the instance. When I run:

/opt/IBM/db2/V8.1/instance/dascrt -u dasusr1

I get following error message:

tail: cannot open `+2' for reading: No such file or directory
lcount = 0
DBI1069E Unexpected error. Function = chk_fsystype, Return code =
22.

Explanation:

An unexpected error occurred during the execution of this
program.

User Response:

If the problem persists, contact IBM Support with the following
information:

o Message number

o Function name

o Return code

o Problem description


DBI1079I Output is saved in the log file /tmp/dascrt.log.18686.

Explanation:

All processed and failed operations have been saved into this log
file.

User Response:

Do not modify this file in any way. This file is for IBM
Technical Support reference.
The get the same error message when I try to create an instance like
that:

/opt/IBM/db2/V8.1/instance/db2icrt -a server -u db2fenc1 db2inst1
Does anybody have a solution for this problem? Especially for Gentoo
Linux?
Thanks
darktemplaaa
Nov 12 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
darktemplaaa wrote:
Hello!

I got IBM DB2 V8.1 successfully installed via rpm on my gentoo system
except the DAS and the instance. When I run:

/opt/IBM/db2/V8.1/instance/dascrt -u dasusr1

I get following error message:

tail: cannot open `+2' for reading: No such file or directory
lcount = 0
DBI1069E Unexpected error. Function = chk_fsystype, Return code =
22.

Explanation:

An unexpected error occurred during the execution of this
program.

User Response:

If the problem persists, contact IBM Support with the following
information:

o Message number

o Function name

o Return code

o Problem description


DBI1079I Output is saved in the log file /tmp/dascrt.log.18686.

Explanation:

All processed and failed operations have been saved into this log
file.

User Response:

Do not modify this file in any way. This file is for IBM
Technical Support reference.
The get the same error message when I try to create an instance like
that:

/opt/IBM/db2/V8.1/instance/db2icrt -a server -u db2fenc1 db2inst1
Does anybody have a solution for this problem? Especially for Gentoo
Linux?


What is your version of tail? Can you see if you can get a different
one? I've seen this problem on other Linux platforms with other
distros, and upgrading the distro solved the problem. I understand
Gentoo doesn't quite work the same as other distros, so I pretty much
have to leave the solution as an excersise for the reader, since, as is
normal in these circumstances, the author has no clue ;-)

This one works (RHEL3U3):

$ tail --version
tail (coreutils) 4.5.3
Written by Paul Rubin, David MacKenzie, Ian Lance Taylor, and Jim Meyering.

Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Nov 12 '05 #2

P: n/a
Darin McBride wrote:
darktemplaaa wrote:

Hello!

I got IBM DB2 V8.1 successfully installed via rpm on my gentoo system
except the DAS and the instance. When I run:

/opt/IBM/db2/V8.1/instance/dascrt -u dasusr1

I get following error message:

tail: cannot open `+2' for reading: No such file or directory
lcount = 0
DBI1069E Unexpected error. Function = chk_fsystype, Return code =
22.

Explanation:

An unexpected error occurred during the execution of this
program.

User Response:

If the problem persists, contact IBM Support with the following
information:

o Message number

o Function name

o Return code

o Problem description


DBI1079I Output is saved in the log file /tmp/dascrt.log.18686.

Explanation:

All processed and failed operations have been saved into this log
file.

User Response:

Do not modify this file in any way. This file is for IBM
Technical Support reference.
The get the same error message when I try to create an instance like
that:

/opt/IBM/db2/V8.1/instance/db2icrt -a server -u db2fenc1 db2inst1
Does anybody have a solution for this problem? Especially for Gentoo
Linux?

What is your version of tail? Can you see if you can get a different
one? I've seen this problem on other Linux platforms with other
distros, and upgrading the distro solved the problem. I understand
Gentoo doesn't quite work the same as other distros, so I pretty much
have to leave the solution as an excersise for the reader, since, as is
normal in these circumstances, the author has no clue ;-)

This one works (RHEL3U3):

$ tail --version
tail (coreutils) 4.5.3
Written by Paul Rubin, David MacKenzie, Ian Lance Taylor, and Jim Meyering.

Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


The current stable version of tail on Gentoo is 5.2.1 (just checked my
server). The major version jump probably explains the incompatibility:
here's the relevant section for the 5.2.1 info page:

<<<
On older systems, `tail' supports an obsolete option
`-COUNTOPTIONS', which is recognized only if it is specified first.
COUNT is a decimal number optionally followed by a size letter (`b',
`k', `m') as in `-c', or `l' to mean count by lines, or other option
letters (`cfqv'). Some older `tail' implementations also support an
obsolete option `+COUNT' with the same meaning as `-+COUNT'. POSIX
1003.1-2001 (*note Standards conformance::) does not allow these
options; use `-c COUNT' or `-n COUNT' instead.


My guess is that the DB2 command line utilities need to use "-n 2"
instead of "+2" for the newer versions of tail. I've seen the same sort
of problems trying to install some of the old Lokisoft packages; usually
takes an iterative approach to fix them up.

Dan
Nov 12 '05 #3

P: n/a
da**********@arcor.de (darktemplaaa) wrote in message news:<3d**************************@posting.google. com>...
Hello!

I got IBM DB2 V8.1 successfully installed via rpm on my gentoo system
except the DAS and the instance. When I run:

/opt/IBM/db2/V8.1/instance/dascrt -u dasusr1

I get following error message:

tail: cannot open `+2' for reading: No such file or directory
lcount = 0
DBI1069E Unexpected error. Function = chk_fsystype, Return code =
22.

Explanation:

An unexpected error occurred during the execution of this
program.

User Response:

If the problem persists, contact IBM Support with the following
information:

o Message number

o Function name

o Return code

o Problem description


DBI1079I Output is saved in the log file /tmp/dascrt.log.18686.

Explanation:

All processed and failed operations have been saved into this log
file.

User Response:

Do not modify this file in any way. This file is for IBM
Technical Support reference.
The get the same error message when I try to create an instance like
that:

/opt/IBM/db2/V8.1/instance/db2icrt -a server -u db2fenc1 db2inst1
Does anybody have a solution for this problem? Especially for Gentoo
Linux?
Thanks
darktemplaaa


If you Linux distribution is Release 9, then please search the
newsgroup archives for a solution previously posted (probably
concerning RH 9).

You may need to re-isntall.
Nov 12 '05 #4

P: n/a
Anyone else any idea? It would be very nice getting IBM DB2 running on
Gentoo because of performance optimizing.
Nov 12 '05 #5

P: n/a
darktemplaaa wrote:
Anyone else any idea? It would be very nice getting IBM DB2 running on
Gentoo because of performance optimizing.


Besides the fact that Gentoo isn't officially supported by IBM ...

You can go into /opt/IBM/db2/V8.1/instance, and find all calls to
"tail" in all the shell scripts there and change them to be "tail -n"
instead. So, if it's "tail +2", change it to be "tail -n +2". Of
course, I can't easily test this supposition.
Nov 12 '05 #6

P: n/a
Darin McBride <dm******@naboo.to.org.no.spam.for.me> wrote in message news:<8Ixbd.717664$M95.375302@pd7tw1no>...
darktemplaaa wrote:
Anyone else any idea? It would be very nice getting IBM DB2 running on
Gentoo because of performance optimizing.


Besides the fact that Gentoo isn't officially supported by IBM ...

You can go into /opt/IBM/db2/V8.1/instance, and find all calls to
"tail" in all the shell scripts there and change them to be "tail -n"
instead. So, if it's "tail +2", change it to be "tail -n +2". Of
course, I can't easily test this supposition.

O.K. now I understand what you mean. I'm gonna check it out and will
post my experiences right here in this group.

Thank you

darktemplaaa
Nov 12 '05 #7

P: n/a
da**********@arcor.de (darktemplaaa) wrote in message news:<3d*************************@posting.google.c om>...
Darin McBride <dm******@naboo.to.org.no.spam.for.me> wrote in message news:<8Ixbd.717664$M95.375302@pd7tw1no>...
darktemplaaa wrote:
Anyone else any idea? It would be very nice getting IBM DB2 running on
Gentoo because of performance optimizing.
Besides the fact that Gentoo isn't officially supported by IBM ...

You can go into /opt/IBM/db2/V8.1/instance, and find all calls to
"tail" in all the shell scripts there and change them to be "tail -n"
instead. So, if it's "tail +2", change it to be "tail -n +2". Of
course, I can't easily test this supposition.

O.K. now I understand what you mean. I'm gonna check it out and will
post my experiences right here in this group.

Thank you


darktemplaaa

Yeeesss!! I got it! I changed all calls to "tail" with the "-n" option
as you said. Now it works and the best database runs with the best
linux distribution ;)

Thank you very very much!!!

darktemplaaa
Nov 12 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.