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

    Opatch error

    2772429

      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/11.2.0.4/db_home/oui/lib/linux". 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/11.2.0.4/OPatch:] export OPATCH_DEBUG=true
      [oracle@usaussbxebs01:/u01/PATCH/db/tech_st/11.2.0.4/OPatch:] 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.2.0.3.2.jar]
      - Detect the option -jre/-jdk ? 0
      - Detect the bundled jre (./jre) ? 1
      CAS jars exist ? 0 [./jlib/com.oracle.glcm.patch.content-store_12.2.0.3.2.jar]
      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/11.2.0.4/cfgtoollogs/opatch
      _osArch (from OCM API) is i386
      ./jre/bin/java -Xmx3072m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/u01/PATCH/db/tech_st/11.2.0.4/cfgtoollogs/opatch -cp /u01/PATCH/db/tech_st/11.2.0.4/oui/jlib/OraInstaller.jar:/u01/PATCH/db/tech_st/11.2.0.4/oui/jlib/OraInstallerNet.jar:/u01/PATCH/db/tech_st/11.2.0.4/oui/jlib/OraPrereq.jar:/u01/PATCH/db/tech_st/11.2.0.4/oui/jlib/share.jar:/u01/PATCH/db/tech_st/11.2.0.4/oui/jlib/orai18n-mapping.jar:/u01/PATCH/db/tech_st/11.2.0.4/oui/jlib/xmlparserv2.jar:/u01/PATCH/db/tech_st/11.2.0.4/oui/jlib/emCfg.jar:/u01/PATCH/db/tech_st/11.2.0.4/oui/jlib/ojmisc.jar:./jlib/oracle.opatch.classpath.jar:./auto/core/modules/features/oracle.glcm.oplan.core.classpath.jar:./auto/core/modules/features/oracle.glcm.osys.core.classpath.jar:./ocm/lib/emocmclnt.jar -DOPatch.ORACLE_HOME=/u01/PATCH/db/tech_st/11.2.0.4 -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/11.2.0.4/oui -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/11.2.0.4/oraInst.loc
      OPatch Version: 11.2.0.3.18
      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/11.2.0.4/OPatch:]

       

       

      [oracle@usaussbxebs01:/u01/PATCH/db/tech_st/11.2.0.4/OPatch:] 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/11.2.0.4/OPatch:]
      [oracle@usaussbxebs01:/u01/PATCH/db/tech_st/11.2.0.4/OPatch:] $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)
      [oracle@usaussbxebs01:/u01/PATCH/db/tech_st/11.2.0.4/OPatch:]

       

        • 1. Re: Opatch error
          Kirushna

          Hi,

           

          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>

           

          Regards,

          Kirushna

          1 person found this helpful