Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: ELFCLASS64 Error on AS10g Release 3

Re: ELFCLASS64 Error on AS10g Release 3

From: Nick <NickFCook_at_gmail.com>
Date: 19 Jul 2006 06:12:35 -0700
Message-ID: <1153314755.641407.16260@p79g2000cwp.googlegroups.com>


Thanks for the replies...

There is a 64-bit version available, but it's the one that came with the OS... not supported with release 3.

[oracle @ ...] $ java -d64 -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03) Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_08-b03, mixed mode) [oracle @ ...] $

The version under the release 3 ORACLE_HOME is a 32-bit version:

[oracle @ ....] $ $ORACLE_HOME/jdk/bin/java -d64 -version execve(): No such file or directory

Error trying to exec $ORACLE_HOME/jdk/bin/sparcv9/java.
Check if file exists and permissions are set correctly.
Failed to start a 64-bit JVM process from a 32-bit JVM.
Verify all necessary J2SE components have been installed. (Solaris SPARC 64-bit components must be installed after 32-bit components.)

To answer the other questions...
> Which log is that?

It is the log.xml file under our oc4j instance...

> I take it you mean metalink Note:301956.1 ?
Yes, that note... and also many other sources.

> Are you using 32 bit java or 64 bit?

The version that is under ORACLE_HOME... 32-bit

> Please echo your exact LD_LIBRARY_PATH on all tiers.
[oracle @ ...] $ echo $LD_LIBRARY_PATH
$ORACLE_HOME/lib32:$ORACLE_HOME/lib:/usr/lib:usr/local/lib:/lib:$ORACLE_HOME/jdk/jre/lib/sparc:. This is the same for all tiers...

> Did you restart Oracle with the new path information? Also, check the
> oracle executable with ldd to be certain which ELF information it has,
> and run the file command on libocijdbc10.so.
Yes, I restarted with the new PATH info.

[oracle @ ...] $ cd $ORACLE_HOME/lib
[oracle @ ...] $ file libocijdbc10.so
libocijdbc10.so:        ELF 64-bit MSB dynamic lib SPARCV9 Version 1,
dynamically linked, not stripped
[oracle @ ...] $ cd $ORACLE_HOME/lib32
[oracle @ ...] $ file libocijdbc10.so
libocijdbc10.so:        ELF 32-bit MSB dynamic lib SPARC Version 1,
dynamically linked, not stripped

> Are you setting CLASSPATH?
>
> There might be some *properties file, but it's been too long since I've
> worked on this stuff to remember the details.
I have not set a CLASSPATH... I haven't found that in any oracle docs... what would you recommend?

I'll search for properties files, but no luck yet....

joel garry wrote:
> Nick wrote:
> > Hi All,
> >
> > I'm deploying a java app to Oracle AS 10g R3 on a Solaris 9 SPARC
> > station. Each time we hit the app we get the error in our log below:
>
> Which log is that?
>
> >
> > java.lang.UnsatisfiedLinkError: $ORACLE_HOME/lib/libocijdbc10.so:
> > ld.so.1: java: fatal: $ORACLE_HOME/lib/libocijdbc10.so: wrong ELF
> > class: ELFCLASS64</MSG_TEXT>
> >
> > I've seen the fix all over the place to update the LD_LIBRARY_PATH to
> > have $ORACLE_HOME/lib32 come first. I've done this in the .profile and
> > /etc/profile, but I'm still getting the same exact error. For some
> > reason, I can't get it to look in $ORACLE_HOME/lib32.
>
> I take it you mean metalink Note:301956.1 ?
>
> Are you using 32 bit java or 64 bit?
>
> Please echo your exact LD_LIBRARY_PATH on all tiers.
>
> >
> > Is there anywhere else I would need to set this path?
>
> Did you restart Oracle with the new path information? Also, check the
> oracle executable with ldd to be certain which ELF information it has,
> and run the file command on libocijdbc10.so.
>
> You would need to set this path anywhere that something starts up an
> oracle executable.
>
> Are you setting CLASSPATH?
>
> There might be some *properties file, but it's been too long since I've
> worked on this stuff to remember the details.
>
> jg
> --
> @home.com is bogus.
> "Why, I am the very model of lovingkindness and gentility AND YOU
> BETTER BELIEVE IT YOU BASTARD!" - The Real Bev
Received on Wed Jul 19 2006 - 08:12:35 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US