I'm posting this to the newsgroup for archival purposes. :)
In this thread:
http://groups.google.com/groups?hl=e...6%2540pd7tw3no
I had problems getting DB2 UDB 8.1 installed on my HP-UX 11i system.
I was able to get through the installation mostly, but it hung while
creating the instance. Since UDB 8.1 had been installed, I ran
"/opt/IBM/db2/V8.1/instance/db2isetup" manually and was able to get
the DB2 instance created. I did run into a snag running db2isetup
since it couldn't find a "valid" Java environment even though jre 1.3
and 1.4 are both installed on my system. I had to set the
"DB2_USE_JAVA_HOME" environment variable to get 'JAVA_HOME' to be used
by db2isetup and I was able to get the instance created.
Here is what happened:
$ cd /opt/IBM/db2/V8.1/instance
$ pwd
/opt/IBM/db2/V8.1/instance
$ su
# ./db2isetup
DBI1377N db2isetup was unable to locate a suitable Java Runtime
Environment on your computer. If a Java Runtime
Environment v.13 is present, please set your JAVA_HOME
environment variable and try running the command again.
Otherwise, please refer to the DB2 Installation Notes
for information on the recommended Java environment for
your operating system.
# echo $JAVA_HOME
/opt/java1.4/jre
# ls -l /opt/java1.4/jre/bin
total 1648
-r-xr-xr-x 1 bin bin 20480 May 2 2003
HPUXChildWrapper
dr-xr-xr-x 2 bin bin 8192 Jul 1 14:34 PA_RISC
dr-xr-xr-x 2 bin bin 8192 Jul 1 14:34 PA_RISC2.0
dr-xr-xr-x 2 bin bin 8192 Jul 1 14:34 PA_RISC2.0W
-r-xr-xr-x 1 bin bin 81592 May 2 2003 java
-r-xr-xr-x 1 bin bin 81592 May 2 2003 jcpm_server
-r-xr-xr-x 1 bin bin 89784 May 2 2003 keytool
-r-xr-xr-x 1 bin bin 89784 May 2 2003 orbd
-r-xr-xr-x 1 bin bin 89784 May 2 2003 policytool
-r-xr-xr-x 1 bin bin 89784 May 2 2003 rmid
-r-xr-xr-x 1 bin bin 89784 May 2 2003 rmiregistry
-r-xr-xr-x 1 bin bin 89784 May 2 2003 servertool
-r-xr-xr-x 1 bin bin 89784 May 2 2003 tnameserv
# java -version
java version "1.4.1.02"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.1.02-030502-13:44)
Java HotSpot(TM) Server VM (build 1.4.1
1.4.1.02-030502-15:31-PA_RISC2.0 PA2.0, mixed mode)
#
So, I took a peek at db2isetup and discovered the "DB2_USE_JAVA_HOME"
variable and when I set that, I got farther:
# export DB2_USE_JAVA_HOME=1
# ./db2isetup
You are using a Java(tm) Runtime Environment that has not been
officially tested for use with DB2. This command will continue to
execute, however if you experience problems, please refer to the DB2
installation documentation for a list of supported environments.
The DISPLAY variable is not set properly. Ensure that the DISPLAY
variable is set properly and that permissions are set properly to open
windows on the display specified, then rerun the command.
#
Of course, I set the DISPLAY variable accordingly and all was well
after that. Many thanks to Mr Darin McBride for his help with this.
:)
Peace...
Tom