OPatch Fails with "liboraInstaller.so: wrong ELF class: ELFCLASS64" Error Code 255 (Doc ID 2224698.1)

Last updated on JANUARY 27, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.

Symptoms

[oracle@oramo01:~/opatch/OPatch]$ ./opatch lsinventory
java.lang.UnsatisfiedLinkError: /apps/oracle/product/11.2.0/db/oui/lib/linux/liboraInstaller.so: /apps/oracle/product/11.2.0/db/oui/lib/linux/liboraInstaller.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1813)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1002)
at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:387)
at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.(OiipuUnixOps.java:122)
at oracle.sysman.oii.oiip.oiipg.OiipgEnvironment.ssgetUidux(OiipgEnvironment.java:528)
at oracle.sysman.oii.oiix.OiixEnvironmentOps.ssgetUidux(OiixEnvironmentOps.java:159)
at oracle.opatch.OUIReplacer.isRootAccess(OUIReplacer.java:614)
at oracle.opatch.OPatch.process(OPatch.java:604)
at oracle.opatch.OPatch.main(OPatch.java:846)

Changes

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms