1 Reply Latest reply on Feb 13, 2018 7:50 AM by Kirushna

    Opatch error


      Hi all,

      I am facing below error while applying Opatch.I find Doc ID 2102647.1 in metalink.  with same symptoms.can you please suggest what note is suggesting.




      $opatch lsinventory


      OPatch cannot continue because it would not be able to load OUI platform dependent library from the directory "/u01/oracle/product/". The directory does not exist in the Oracle home.

      This could be due to the following reasons.

      (1) Incompatible usage of java with OUI (32/64 bit).

      (2) Wrong 32-bit Oracle Home installation in 64-bit environment (or) vice-versa.

      Please contact Oracle support for more details.


      OPatch failed with error code 1



      [oracle@usaussbxebs01:/u01/PATCH/db/tech_st/] export OPATCH_DEBUG=true
      [oracle@usaussbxebs01:/u01/PATCH/db/tech_st/] opatch version
      OPatch was not able to set FMW_COMPONENT_HOME by itself.
      CAS jars exist ? 0 [./jlib/com.oracle.glcm.patch.content-store_12.]
      - Detect the option -jre/-jdk ? 0
      - Detect the bundled jre (./jre) ? 1
      CAS jars exist ? 0 [./jlib/com.oracle.glcm.patch.content-store_12.]
      JAVA version : 6 [./jre]
      Can Use JAVA ? 1
      Machine Info: Linux usaussbxebs01 2.6.18-423.el5 #1 SMP Fri Sep 22 14:26:40 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
      _osArch is i386
      _javaVMSpecVersion is 1.0
      _javaVMSpecVendor is Sun Microsystems Inc.
      _javaVMSpecName is Java Virtual Machine Specification
      _javaVMVendor is Sun Microsystems Inc.
      _javaJRESpecVersion is 1.6
      _javaJRESpecVendor is Sun Microsystems Inc.
      _javaJRESpecName is Java Platform API Specification
      _javaSupportedClassVersion is 50.0
      OPatch compiled with ,
      JRE_MEMORY_OPTIONS are -Xmx3072m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/u01/PATCH/db/tech_st/
      _osArch (from OCM API) is i386
      ./jre/bin/java -Xmx3072m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/u01/PATCH/db/tech_st/ -cp /u01/PATCH/db/tech_st/ -DOPatch.ORACLE_HOME=/u01/PATCH/db/tech_st/ -DOPatch.DEBUG=true -DOPatch.MAKE=false -DOPatch.RUNNING_DIR=. -DOPatch.MW_HOME= -DOPatch.WL_HOME= -DOPatch.COMMON_COMPONENTS_HOME= -DOPatch.OUI_LOCATION=/u01/PATCH/db/tech_st/ -DOPatch.FMW_COMPONENT_HOME= -DOPatch.OPATCH_CLASSPATH= -DOPatch.WEBLOGIC_CLASSPATH= -DOPatch.SKIP_OUI_VERSION_CHECK= -DOPatch.PARALLEL_ON_FMW_OH= oracle/opatch/OPatch version -invPtrLoc /u01/PATCH/db/tech_st/
      OPatch Version:
      OPatch Build Number: 1516608000
      Internal Release Date: Jan 22, 2018
      This version of OPatch has no CAS.


      OPatch succeeded.



      [oracle@usaussbxebs01:/u01/PATCH/db/tech_st/] ls -lart $ORACLE_HOME/oui/lib/
      total 12
      drwxr-xr-x 2 oracle dba 4096 Nov 17 05:24 linux64
      drwxr-xr-x 8 oracle dba 4096 Nov 17 05:24 ..
      drwxr-xr-x 3 oracle dba 4096 Nov 17 05:24 .
      [oracle@usaussbxebs01:/u01/PATCH/db/tech_st/] $ORACLE_HOME/jdk/bin/java -version
      java version "1.5.0_51"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_51-b10)
      Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_51-b10, mixed mode)


        • 1. Re: Opatch error



          If you are getting same issue, java bit version is not compatible with Oracle Home bit version.


          Have you set JAVA_HOME in env before using OPatch


          Post output for below commands,

          $ which java

          $ java -version


          have you checked...

          opatch lsinventory -jdk <path_to_64_bit_jdk>




          1 person found this helpful