OPatch failed with error code 255 when using OPatch version 12.2.0.1.10/12.2.0.1.11 for Solaris on SPARC (32-bit) to apply patch or run opatch lsinventory

(Doc ID 2336715.1)

Last updated on DECEMBER 11, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 to 12.2.0.1 [Release 12.1 to 12.2]
Oracle Solaris on SPARC (32-bit)

Symptoms

 Using OPatch 12.2.0.1.11 for Solaris on SPARC (32-bit) to apply patch or run opatch lsinventory, the error occurred as below:

- apply patch

% cd $HOME/tmp/25171037
% /opt/app/oracle/product/12.1.0/client_1/OPatch/opatch apply
java.lang.UnsatisfiedLinkError: /opt/app/oracle/product/12.1.0/client_1/oui/lib/solaris/liboraInstaller.so: ld.so.1: java: fatal: /opt/app/oracle/product/12.1.0/client_1/oui/lib/solaris/liboraInstaller.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:364)
at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:128)
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:620)
at oracle.opatch.OPatch.main(OPatch.java:871)

OPatch failed with error code 255
%

- run opatch lsinventory

$ ./opatch lsinventory
java.lang.UnsatisfiedLinkError: /export/home/ora1212/test1019/app/oracle/product/12.1.0/client_1/oui/lib/solaris/liboraInstaller.so: ld.so.1: java: fatal: /export/home/ora1212/test1019/app/oracle/product/12.1.0/client_1/oui/lib/solaris/liboraInstaller.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:364)
at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:128)
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:620)
at oracle.opatch.OPatch.main(OPatch.java:871)

OPatch failed with error code 255

Changes

 none

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