Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 07:25 AM
Mairhtin O'Feannag
Guest
 
Posts: n/a
Default install of java jre for db2setup under linux RH 9.0

Hello,

I have a new Linux RH 9.0 server, on which I'm trying to setup DB2. I
did the RPM install of IBMJava2-JRE-1.4.1-2.0, which I got from the IBM
site. All *APPEARED* to have worked fine. But ... rpm -aq IBMJava2-JRE-
1.4.1-2.0 shows no entry. A simple rpm -aq shows it as the last item in
the list. <scratching head>.

Now, when I got to the place I untarred DB2 v8.1 (/local4/db281/009
_ESE_LNX_32_NLV) and type ./db2setup, what I get is :


/local4/db281/009_ESE_LNX_32_NLV/db2/linux/install/db2jinst: line 130:
3210 Segmentation fault $JAVA_PATH/$JAVA_INTERPRETER $JAVA_OPTIONS -
cp $JAVA_CLASSPATH $DB2SetupRun "$@" 2>/tmp/db2setup.err.running


and I have no idea what this means. The 130th line of that script is a
"fi" statement. ????????

Can someone help me?

Mairhtin O'Feannag

San Francisco, Ca.
  #2  
Old November 12th, 2005, 07:26 AM
Darin McBride
Guest
 
Posts: n/a
Default Re: install of java jre for db2setup under linux RH 9.0

Mairhtin O'Feannag wrote:
[color=blue]
> Hello,
>
> I have a new Linux RH 9.0 server, on which I'm trying to setup DB2. I
> did the RPM install of IBMJava2-JRE-1.4.1-2.0, which I got from the IBM
> site. All *APPEARED* to have worked fine. But ... rpm -aq IBMJava2-JRE-
> 1.4.1-2.0 shows no entry. A simple rpm -aq shows it as the last item in
> the list. <scratching head>.[/color]

Try:

rpm -qa IBMJava2-JRE

The version portion is not part of the RPM name that you're querying.
[color=blue]
> Now, when I got to the place I untarred DB2 v8.1 (/local4/db281/009
> _ESE_LNX_32_NLV) and type ./db2setup, what I get is :
>
>
> /local4/db281/009_ESE_LNX_32_NLV/db2/linux/install/db2jinst: line 130:
> 3210 Segmentation fault $JAVA_PATH/$JAVA_INTERPRETER $JAVA_OPTIONS -
> cp $JAVA_CLASSPATH $DB2SetupRun "$@" 2>/tmp/db2setup.err.running
>
>
> and I have no idea what this means. The 130th line of that script is a
> "fi" statement. ????????[/color]

It means a couple things:

1. The java that db2setup uses is still the java that's on the CD
image, not the one that's installed locally.

2. RH 9 is not, nor will be, validated as an "approved and supported"
platform with which to run DB2. Please see the linux validation site:
http://www.ibm.com/db2/linux/validate.

Unofficially, it means that you need the same workaround as RHEL3
needs, which I believe is documented on the validation site, but I do
want to stress that RH9 is still not officially supported, even if you
get the install working.

  #3  
Old November 12th, 2005, 07:26 AM
Mairhtin O'Feannag
Guest
 
Posts: n/a
Default Re: install of java jre for db2setup under linux RH 9.0

Darin,

I was able to get around this using a trick that someone posted on the
newsgroups. I used export LD_ASSUME_KERNEL=2.2.5 .... I was just
wondering if this is going to cause other problems. I use the graphical
tools locallay on my Winders box to administer the remote instance, so I
can live with not having the tools on the Linux box - I can even debug
remotely, I believe, without having the GUI tools.

The individual also indicated that one should put this in the .profile
for the instance owner.

Any suggestions?

Mairhtin


Darin McBride <dmcbride@naboo.to.org.no.spam.for.me> wrote in
news:BCfqc.488652$Pk3.153071@pd7tw1no:
[color=blue]
> Mairhtin O'Feannag wrote:
>[color=green]
>> Hello,
>>
>> I have a new Linux RH 9.0 server, on which I'm trying to setup DB2.
>> I did the RPM install of IBMJava2-JRE-1.4.1-2.0, which I got from the
>> IBM site. All *APPEARED* to have worked fine. But ... rpm -aq
>> IBMJava2-JRE- 1.4.1-2.0 shows no entry. A simple rpm -aq shows it as
>> the last item in the list. <scratching head>.[/color]
>
> Try:
>
> rpm -qa IBMJava2-JRE
>
> The version portion is not part of the RPM name that you're querying.
>[color=green]
>> Now, when I got to the place I untarred DB2 v8.1 (/local4/db281/009
>> _ESE_LNX_32_NLV) and type ./db2setup, what I get is :
>>
>>
>> /local4/db281/009_ESE_LNX_32_NLV/db2/linux/install/db2jinst: line
>> 130: 3210 Segmentation fault $JAVA_PATH/$JAVA_INTERPRETER
>> $JAVA_OPTIONS - cp $JAVA_CLASSPATH $DB2SetupRun "$@"
>> 2>/tmp/db2setup.err.running
>>
>>
>> and I have no idea what this means. The 130th line of that script is
>> a "fi" statement. ????????[/color]
>
> It means a couple things:
>
> 1. The java that db2setup uses is still the java that's on the CD
> image, not the one that's installed locally.
>
> 2. RH 9 is not, nor will be, validated as an "approved and supported"
> platform with which to run DB2. Please see the linux validation site:
> http://www.ibm.com/db2/linux/validate.
>
> Unofficially, it means that you need the same workaround as RHEL3
> needs, which I believe is documented on the validation site, but I do
> want to stress that RH9 is still not officially supported, even if you
> get the install working.
>[/color]

  #4  
Old November 12th, 2005, 07:26 AM
Mark A
Guest
 
Posts: n/a
Default Re: install of java jre for db2setup under linux RH 9.0

> Darin,[color=blue]
>
> I was able to get around this using a trick that someone posted on the
> newsgroups. I used export LD_ASSUME_KERNEL=2.2.5 .... I was just
> wondering if this is going to cause other problems. I use the graphical
> tools locallay on my Winders box to administer the remote instance, so I
> can live with not having the tools on the Linux box - I can even debug
> remotely, I believe, without having the GUI tools.
>
> The individual also indicated that one should put this in the .profile
> for the instance owner.
>
> Any suggestions?
>
> Mairhtin
>[/color]
You only need to use assume kernel during the install. Make sure you have
installed the latest IBM Java2 code and then run the following:

db2 update dbm cfg using JDK_PATH /opt/IBMJava2-141
db2 update admin cfg using jdk_path /opt/IBMJava2-141

Note that your Java directory may be different if you get the latest code
from the IBM web site.

The above works fine for me with DB2 version 8, fixpak 5.


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.