Database Administration (MOSC)

MOSC Banner

libocijdbc11.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)

Hi all,

I am using oci driver on the sample JDBCversion.java and running into this error below.

In /u01/app/oracle/product/11204E/oui/oraparam.ini, JRE_MEMORY_OPTIONS is already -d64.

JRE_MEMORY_OPTIONS=" -d64 -mx150m"


Environment variables:

export PATH=$PATH:/u01/app/oracle/product/11204E/jdk/bin

export CLASSPATH=$ORACLE_HOME/jdbc/lib/ojdbc5.jar:$ORACLE_HOME/jlib/orai18n.jar


Error below:

Exception in thread "main" java.lang.UnsatisfiedLinkError: 

/u01/app/oracle/product/11204E/lib/libocijdbc11.so: ld.so.1: java: /u01/app/oracle/product/11204E/lib/libocijdbc11.so: 

wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)        

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center