Operating System - HP-UX
1823058 Members
3181 Online
109645 Solutions
New Discussion юеВ

oracle 9i Install and JDK

 
Dale Edmunds
Frequent Advisor

oracle 9i Install and JDK

Hi,

I'm in the process of installing Oracle 9i on my HP-UX 11.11 system. Using the InstallPrep.sh script from Oracle to test whether various things are in place and OK, the script does a JDK verification test. The output is:

JDK version is 31
JDK version installed must be 1310
Please download (32bit word size version when available) from the OS vendors web site at:
http://www.hp.com/products1/unix/java

JDK test failed

I'm confused about what exactly JDK is (find lots of SDK, RTE stuff though), where to install it, or even what I need to download to get through this test. I downloaded sdk13105_bundle.tar - but this isn't the right thing as it still failed the test.

Any ideas?

Thanks

Dale
14 REPLIES 14
Victor Fridyev
Honored Contributor

Re: oracle 9i Install and JDK

Hi,

As far as I remember, you have to install RTE

HTH
Entities are not to be multiplied beyond necessity - RTFM
Eric Antunes
Honored Contributor

Re: oracle 9i Install and JDK

Hi,

JDK is Java Developers Kit. See at SAM what version you have:

#SAM -> Software Management -> List Software -> List Installed Software -> View -> Change Software View -> Start With Products. JDK is listed in alphabetical order.

Best Regards,

Eric Antunes
Each and every day is a good day to learn.
Dale Edmunds
Frequent Advisor

Re: oracle 9i Install and JDK

Hi,

Thanks - my JDK set-up is:
Jdk -> 1.3.1.05.00 Java2 1.3 SDK

Yet it still fails the check for JDK which is 1.3.1.02

Confused!

Regards

Dale
Fred Ruffet
Honored Contributor

Re: oracle 9i Install and JDK

Sun is a bit confusing with its java names. I think you need RTE. No luck : JDK has been suppressed 11/30 !

Exact link for download (1.3.1.14 for PA-RISC) should be :
http://www.hp.com/products1/unix/java/java2/sdkrte1_3/downloads/license_rte_1-3-1-14_pa-risc.html

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Eric Antunes
Honored Contributor

Re: oracle 9i Install and JDK

Well, on Oracle 9i I'm not sure but on Oracle 8 you need to have $PATH oracle user variable pointing to:

$ORACLE_BASE/local/java/jre/bin

Eric
Each and every day is a good day to learn.
Dale Edmunds
Frequent Advisor

Re: oracle 9i Install and JDK

Hi,

OK - thanks for the reponses.

I wil download and install from the link. I will also look into the $PATH variable. Under my 8.1.7 install I have nothing after $ORACLE_BASE called 'local'. So Java's probably not even installed.

Will work through the help, and update and hopefully assign point :o)

Regards

Dale
Dale Edmunds
Frequent Advisor

Re: oracle 9i Install and JDK

OK - Thanks guys, I've assigned points based on the progress so far. I downloaded and installed RTE, and the install completed successfully of 9i........

......now I have problems with the linking stage! Specifically:

/usr/ccs/bin/make -f ins_plsql.mk install ORACLE_HOME=/oracle/product9i/9.2.0

results in the error:

ld: Mismatched ABI (not an ELF file) for -llibcl.sl
Fatal error.
*** Error exit code 1

I've no doubt there's a missing patch somewhere, even though I've got the server pretty much up to date. Oh well - no pain no gain!

Thanks

Dale

Eric Antunes
Honored Contributor

Re: oracle 9i Install and JDK

Hi Dale,

Check this thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=200224

You may have the same bits issue: Oracle 9i is 64 bits compiled? And you HP-UX version??

Regards,

Eric
Each and every day is a good day to learn.
Dale Edmunds
Frequent Advisor

Re: oracle 9i Install and JDK

Hi,

11.11:

drserver.oracle.LIVE > : uname -a
HP-UX drserver B.11.11 U 9000/871 2005557050 unlimited-user license

So O/S is 64 bit, and 9.2.0.1 RDBMS is 64-bit only.

My $ORACLE_HOME/lib contains 64 bit files, and the $ORACLE_HOME/lib32 32 bit.

I can find no reference in the .profile that points the PATH or any other environment variable to the 32 bit files, but my make.log for the relink shows:

Created /oracle/product9i/9.2.0/lib/libclntst9.a
Extracting from /oracle/product9i/9.2.0/lib32/libclient9.a ...
Extracting from /oracle/product9i/9.2.0/lib32/libcommon9.a ...
Extracting from /oracle/product9i/9.2.0/lib32/libcore9.a ...

so I'm not sure why there's a reference to 32 in there! Will read the thread you found....

Thanks

Dale
Edgar_8
Regular Advisor

Re: oracle 9i Install and JDK

Hi Dale,

What is O/S bit version:

#getconf KERNEL_BITS

Regards
Dale Edmunds
Frequent Advisor

Re: oracle 9i Install and JDK

drserver.root > : getconf KERNEL_BITS
64

I've checked my required patchset revisions and either what Oracle want - or higher. I've set PATH, LD_LIBRARY_PATH and SHLIB_PATH as required:

drserver.oracle.LIVE > : echo $PATH
.:/oracle/product9i/9.2.0/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/bin/X11:/usr/lib:/usr/ccs/lib:/bin:/etc:/usr/ucb:/usr/contrib/bin:/opt/java1.3/bin
drserver.oracle.LIVE > : echo $LD_LIBRARY_PATH
/oracle/product9i/9.2.0/lib:/oracle/product9i/9.2.0/jdbc/lib:/usr/dt/lib:/usr/openwin/lib:/usr/ccs/lib
drserver.oracle.LIVE > : echo $SHLIB_PATH
/oracle/product9i/9.2.0/lib32.

I have 2Gb RAM, swap is:

drserver.root > : swapinfo -q
5488792

So I've eliminated the requirements - just checking the kernal settings...

Regards

Dale
Stuart Abramson
Trusted Contributor

Re: oracle 9i Install and JDK

Notes on Java Versions.

1. There are two Java specifications:

a. Java 1
b. Java 2

2. Further, there are "sub"-specifications:

a. Java 1

o Java 1.1.X

b. Java 2

o Java 1.2.X
o Java 1.3.X
o Java 1.4.X

where, Java 1.2, 1.3 amd 1.4 are Java 2 versions, and the Xs are
levels of HP bug-fixes.

3. Within the Java 2 specifications, Java 1.3 includes all Java 1.2
features, etc.

4. Further, there are two "classes" of products:

SDK System Development Toolkit
RTE Runtime Environmnet

Where,
a. SDK includes:

o compiler
o developers "toolkit"
o debugger
o run-time library

b. RTE includes:
o run-time library only

5. The SDK includes the RTE.

You need the SDK to develop and run.
You only need the RTE if you only going to run pre-compiled object
binaries.

6. You can tell what product you have, by doing a swlist:

sabramsd@acadv07:/opt$ swlist | grep -i java

B5456CA C.01.18.01 HP-UX Development Kit for Java*
B5458DA C.01.18.04 HP-UX Runtime Environment for Java*
B8110AA 1.2.2.08.00 Java 2 SDK for HP-UX (700/800), PA1.1 + PA2.0 Add On
B9788AA 1.3.0.01 Java 2 SDK 1.3 for HP-UX (700/800), PA1.1 + PA2.0 Add On
B9789AA 1.3.0.01 Java 2 RTE 1.3 for HP-UX (700/800), PA1.1 + PA2.0 Add On

7. You can also look in /opt:

$ cd /opt
$ ll -d java*

dr-xr-xr-x 9 bin bin 1024 Jul 15 2000 java V. 1.1
drwxrwxrwx 8 bin bin 1024 Oct 3 13:50 java1.2 V. 1.2
drwxrwxrwx 7 bin bin 1024 Oct 22 17:11 java1.3 V. 1.3

8. So what we should do is install only the latest:

B9788AA 1.3.0.01 Java 2 SDK 1.3 for HP-UX (700/800), PA1.1 + PA2.0 Add On

swinstall -s bkmstr01:/swdepot/11.0/products B9788AA

9. You can download the latest JDK / SDK from the hp java website:

http://www.hp.com/products1/unix/java/

10. To actually run java you must set your path:

export PATH=$PATH:/opt/java1.3/bin/

# java -version

java version "1.3.1.10"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.3.1.10-030630-10:50)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.10-
_30_jun_2003_11_52 PA2.0, mixed mode)

11. Here is what we run at WABTEC:

saroot@wcshps07:/usr/bcv/scripts# swlist | grep -i java
B8111AA 1.2.2.14.02 Java 2 RTE for HP-UX (700/800), PA1.1 + PA2.0 Add On
B9098AA 1.2.2.14.02 Java 2 Plugin for HP-UX (700/800)
B9788AA 1.3.1.10.07 Java2 1.3 SDK for HP-UX
B9789AA 1.3.1.09.05 Java2 1.3 RTE for HP-UX
T1455AA 1.3.1.09.05 Java2 1.3 Netscape Plugin for HP-UX

saroot@wcshps07:/usr/bcv/scripts# export PATH=$PATH:/opt/java1.3/bin

saroot@wcshps07:/usr/bcv/scripts# java -version

java version "1.3.1.10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.10-030630-10:50)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.10-_30_jun_2003_11_52 PA2.0, mixed mode)


12. Install it like this:

saroot@wcshps08:/home/saroot# swlist -s acshps05 -l depot

# Initializing...
# Target "acshps05" has the following depot(s):
/var/adm/swdepots/JetAdmin
/var/adm/swdepots/QPK1100.60.4
/var/adm/swdepots/A51258A_B.11.00.10
/var/adm/swdepots/EMCPower.HP.3.0.2
/var/adm/swdepots/EMCPower.HP.2.1.0_b108
/var/adm/swdepots/Performance
/var/adm/swdepots/SDK1.3

saroot@wcshps08:/home/saroot# swlist -s acshps05:/var/adm/swdepots/SDK1.3

Dale Edmunds
Frequent Advisor

Re: oracle 9i Install and JDK

Hi,

Very comprehensive - I think I'll need to re-read that to fully digest. Checking my server:

drserver.root > : swlist | grep -i java
B8110AA 1.2.2.11.01 Java 2 SDK for HP-UX (700/800), PA1.1 + PA2.0 Add On
B8111AA 1.2.2.11.01 Java 2 RTE for HP-UX (700/800), PA1.1 + PA2.0 Add On
B8752AA 1.2.1.03.00 HP 3D Technology API for Java(tm) Development Kit*
B9098AA 1.2.2.11.01 Java 2 Plugin for HP-UX (700/800)
B9788AA 1.3.1.05.00 Java2 1.3 SDK for HP-UX
B9789AA 1.3.1.14.00 Java2 1.3 RTE for HP-UX
T1455AA 1.3.1.05.00 Java2 1.3 Netscape Plugin for HP-UX

Oracle want me to install 9.2.0.6 - even though link will fail - before we can progress.......

I guess you never stop learning!

regards

Dale

P.S. Will update ASAP - thanks again for all help received.
Volker Borowski
Honored Contributor

Re: oracle 9i Install and JDK

Hi,
This looks like you have two versions installed. Make sure that environment JAVA_HOME ponits to the correct one with

$JAVA_HOME/bin/java -version

May be the environment setting is mixed up
Volker