1 2 Previous Next 29 Replies Latest reply on Jul 14, 2015 6:36 PM by yoonas

    Error in Opatch: After java upgrade cannot lock OUI inventory

    Kumar Vellaisamy

      Dear Team,

       

      Instance Details:

       

      Database - 11.2.0.3

      Application - 12.1.3

      OS - Windows 2008 64 bit


      We have crosschecked our environment.

       

      After Jave upgrade(1.6u38), The opatch lsinventory command is not working.

       

      Workaround:

       

      if we changed the java location to old jdk folder of (1.4.2_14), then it works fine and we can able to see the opatch lsinventory output.

       

      Kindly help us to resolve this issue ASAP.

       

      Thanks

      Kumar Vellaisamy

        • 1. Re: Error in Opatch: After java upgrade cannot lock OUI inventory
          Bashar.

          Hi,

           

          Which Java folder did you upgrade?

          $ORACLE_HOME/jdk

          $ORACLE_HOME/jre

          $ORACLE_HOME/appsutil/jre

           

          The first two locations should NOT be upgraded.

           

          Using Latest Java 6.0 Update With Oracle E-Business Suite Release 12 (Doc ID 455492.1)

           

          Regards,

          Bashar

          • 3. Re: Error in Opatch: After java upgrade cannot lock OUI inventory
            yoonas

            Hi,

            if we changed the java location to old jdk folder of (1.4.2_14),

            So i guess jdk home is upgraded

             

            Did you follow the notes provided by Bashar for the upgrade?

             

            Regards

            Yoonas

            • 4. Re: Error in Opatch: After java upgrade cannot lock OUI inventory
              Kumar Vellaisamy

              Hi,

               

              Yes, we have followed this below document for java upgrade,

               

              Using Latest Java 6.0 Update With Oracle E-Business Suite Release 12 (Doc ID 455492.1)


              Thanks

              Kumar Vellaisamy

              • 5. Re: Error in Opatch: After java upgrade cannot lock OUI inventory
                Bashar.

                Hi,

                 

                Please post the path of the jdk/jre that you upgraded.

                 

                Regards,

                Bashar

                • 6. Re: Error in Opatch: After java upgrade cannot lock OUI inventory
                  Kumar Vellaisamy

                  Hi,

                   

                  F:/oracle/testapps/apps/tech_st/10.1.2/jdk

                   

                  F:\oracle\testapps\apps\tech_st\10.1.3\appsutil\jdk

                   

                  Java upgraded patch location.

                   

                  Regards

                  Karthick G

                  • 7. Re: Error in Opatch: After java upgrade cannot lock OUI inventory
                    yoonas

                    what is the output of (in the same session where you are invoking opatch)

                    which opatch

                    which java

                    opatch lsinventory -report

                     

                    if we changed the java location to old jdk folder of (1.4.2_14) then it works fine and we can able to see the opatch lsinventory output.

                    Please run above commands in both ways

                     

                    If you get any errors post here

                    Please also check $ORACLE_HOME/.patch_storage

                    • 8. Re: Error in Opatch: After java upgrade cannot lock OUI inventory
                      Kumar Vellaisamy

                      Dear Team,

                       

                      Kindly find the below details for your reference.

                       

                      F:\oracle\testapps\apps>which opatch

                      F:/oracle/testapps/apps/tech_st/10.1.2/OPatch/opatch.bat

                       

                      F:\oracle\testapps\apps\tech_st>which java

                      F:/oracle/testapps/apps/tech_st/10.1.2/jdk/jre/bin/java.exe

                       

                      C:\Program Files (x86)\Oracle\Inventory

                      There is no lock folder under the Inventory directory.

                       

                      2. ORACLE_HOME\.patch_storage\patch_locked.

                      There is no patch_locked folder under the .patch_storage.

                       

                      F:\oracle\testapps\apps\tech_st>opatch lsinventory -report

                       

                      Oracle Interim Patch Installer version 1.0.0.0.61

                      Copyright (c) 2009 Oracle Corporation. All Rights Reserved..

                       

                      Oracle recommends you to use the latest OPatch version

                      and read the OPatch documentation available in the OPatch/docs

                      directory for usage. For information about the latest OPatch and

                      other support-related issues, refer to document ID 293369.1

                      available on My Oracle Support (https://myoraclesupport.oracle.com)

                       

                       

                      Oracle Home                    : F:\oracle\testapps\apps\tech_st\10.1.2

                      Oracle Home Inventory      : F:\oracle\testapps\apps\tech_st\10.1.2\inventory

                      Central Inventory                : C:\Program Files (x86)\oracle\inventory

                         from               : N/A

                      OUI location                  : F:\oracle\testapps\apps\tech_st\10.1.2\oui

                      OUI shared library         : F:\oracle\testapps\apps\tech_st\10.1.2\oui\lib\win32\ora

                      Installer.dll

                      Java location                : "F:\oracle\testapps\apps\tech_st\10.1.2\jdk\jre\bin\java

                      .exe"

                      Log file location         : F:\oracle\testapps\apps\tech_st\10.1.2/.patch_storage/<p

                      atch ID>/*.log

                       

                      Creating log file "F:\oracle\testapps\apps\tech_st\10.1.2\.patch_storage\LsInven

                      tory__07-07-2015_00-55-40.log"

                       

                       

                      Result:

                       

                      java.lang.NullPointerException

                              at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                      OiicStandardInventorySession.java:401)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:243)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:218)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:167)

                              at opatch.O2O.setupSession(O2O.java:535)

                              at opatch.O2O.setupInventory(O2O.java:597)

                              at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                              at opatch.LsInventory.main(LsInventory.java:194)

                      java.lang.NullPointerException

                              at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                      OiicStandardInventorySession.java:401)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:243)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:218)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:167)

                              at opatch.O2O.setupSession(O2O.java:535)

                              at opatch.O2O.setupInventory(O2O.java:597)

                              at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                              at opatch.LsInventory.main(LsInventory.java:194)

                      java.lang.NullPointerException

                              at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                      OiicStandardInventorySession.java:401)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:243)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:218)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:167)

                              at opatch.O2O.setupSession(O2O.java:535)

                              at opatch.O2O.setupInventory(O2O.java:597)

                              at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                              at opatch.LsInventory.main(LsInventory.java:194)

                      java.lang.NullPointerException

                              at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                      OiicStandardInventorySession.java:401)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:243)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:218)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:167)

                              at opatch.O2O.setupSession(O2O.java:535)

                              at opatch.O2O.setupInventory(O2O.java:597)

                              at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                              at opatch.LsInventory.main(LsInventory.java:194)

                      java.lang.NullPointerException

                              at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                      OiicStandardInventorySession.java:401)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:243)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:218)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:167)

                              at opatch.O2O.setupSession(O2O.java:535)

                              at opatch.O2O.setupInventory(O2O.java:597)

                              at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                              at opatch.LsInventory.main(LsInventory.java:194)

                      java.lang.NullPointerException

                              at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                      OiicStandardInventorySession.java:401)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:243)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:218)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:167)

                              at opatch.O2O.setupSession(O2O.java:535)

                              at opatch.O2O.setupInventory(O2O.java:597)

                              at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                              at opatch.LsInventory.main(LsInventory.java:194)

                      java.lang.NullPointerException

                              at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                      OiicStandardInventorySession.java:401)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:243)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:218)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:167)

                              at opatch.O2O.setupSession(O2O.java:535)

                              at opatch.O2O.setupInventory(O2O.java:597)

                              at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                              at opatch.LsInventory.main(LsInventory.java:194)

                      java.lang.NullPointerException

                              at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                      OiicStandardInventorySession.java:401)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:243)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:218)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:167)

                              at opatch.O2O.setupSession(O2O.java:535)

                              at opatch.O2O.setupInventory(O2O.java:597)

                              at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                              at opatch.LsInventory.main(LsInventory.java:194)

                      java.lang.NullPointerException

                              at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                      OiicStandardInventorySession.java:401)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:243)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:218)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:167)

                              at opatch.O2O.setupSession(O2O.java:535)

                              at opatch.O2O.setupInventory(O2O.java:597)

                              at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                              at opatch.LsInventory.main(LsInventory.java:194)

                      java.lang.NullPointerException

                              at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                      OiicStandardInventorySession.java:401)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:243)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:218)

                              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                      tandardInventorySession.java:167)

                              at opatch.O2O.setupSession(O2O.java:535)

                              at opatch.O2O.setupInventory(O2O.java:597)

                              at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                              at opatch.LsInventory.main(LsInventory.java:194)

                      LsInventory: OPatch Exception while accessing O2O

                       

                      OPATCH_JAVA_ERROR  : An exception of type "OPatchException" has occurred:

                      OPatch Exception:

                        Can not lock OUI inventory (READ/WRITE Level)

                        An exception occurs

                        null

                        Can not lock OUI inventory (READ/WRITE Level)

                        An exception occurs

                        null

                        Can not lock OUI inventory (READ/WRITE Level)

                        An exception occurs

                        null

                        Can not lock OUI inventory (READ/WRITE Level)

                        An exception occurs

                        null

                        Can not lock OUI inventory (READ/WRITE Level)

                        An exception occurs

                        null

                        Can not lock OUI inventory (READ/WRITE Level)

                        An exception occurs

                        null

                        Can not lock OUI inventory (READ/WRITE Level)

                        An exception occurs

                        null

                        Can not lock OUI inventory (READ/WRITE Level)

                        An exception occurs

                        null

                        Can not lock OUI inventory (READ/WRITE Level)

                        An exception occurs

                        null

                        Can not lock OUI inventory (READ/WRITE Level)

                        An exception occurs

                        null

                       

                      There is no Interim Patch

                       

                      OPATCH_JAVA_ERROR  : An exception of type "OPatchException" has occurred:

                      Can not get a list of inventory on this home.

                       

                      ERROR: OPatch failed because of Inventory problem.

                      OPatch returns with error code = 100

                       

                      F:\oracle\testapps\apps\tech_st>

                       

                       

                      Regards

                      Karthick G

                      • 9. Re: Re: Error in Opatch: After java upgrade cannot lock OUI inventory
                        yoonas

                        2. ORACLE_HOME\.patch_storage\patch_locked.

                         

                        There is no patch_locked folder under the .patch_storage.

                        At ORACLE_HOME\.patch_storage not at ORACLE_HOME\.patch_storage\patch_locked

                         

                         

                        The above is a result when you run opatch with 1.6 JDK i think, can you just updated with the other case as well(when you use old jdk)

                         

                         

                        Please update output of

                         

                        ls $ORACLE_HOME/jre  -  ls F:\oracle\testapps\apps\tech_st\10.1.2\jre

                        F:\oracle\testapps\apps\tech_st\10.1.2\jre\<replace with folder_name>\bin\java.exe -version

                        F:\oracle\testapps\apps\tech_st\10.1.2\jdk\jre\bin\java.exe -version

                         

                        This note is with the same error you are hitting , OPATCH_JAVA_ERROR With "Can not lock OUI inventory (READ/WRITE Level)" in Logs (Doc ID 1264274.1)

                        • 10. Re: Error in Opatch: After java upgrade cannot lock OUI inventory
                          Kumar Vellaisamy

                          Hi Team,

                           

                          Sorry for the delay.

                           

                          Kindly help us to resolve this issue ASAP. We are struck'ed

                           

                          ls $ORACLE_HOME/jre  -  ls F:\oracle\testapps\apps\tech_st\10.1.2\jre

                          Ans: There is no jre location under 10.1.2 Oracle home

                           

                          F:\oracle\testapps\apps\tech_st\10.1.2\jre\<replace with folder_name>\bin\java.exe -version

                          Ans: There is no jre location under 10.1.2 Oracle home

                           

                          Now We have changed to old java under 10.1.2 Oracle home for your reference, Now its working fine.

                           

                          F:\oracle\devapps\apps\tech_st\10.1.2\jdk\jre\bin>java -version

                          java version "1.4.2_14"

                          Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_14-b05)

                          Java HotSpot(TM) Client VM (build 1.4.2_14-b05, mixed mode)

                           

                          F:\oracle\devapps\apps\tech_st\10.1.2>opatch lsinventory

                           

                          Oracle Interim Patch Installer version 1.0.0.0.61

                          Copyright (c) 2009 Oracle Corporation. All Rights Reserved..

                           

                          Oracle recommends you to use the latest OPatch version

                          and read the OPatch documentation available in the OPatch/docs

                          directory for usage. For information about the latest OPatch and

                          other support-related issues, refer to document ID 293369.1

                          available on My Oracle Support (https://myoraclesupport.oracle.com)

                           

                          Oracle Home           : F:\oracle\devapps\apps\tech_st\10.1.2

                          Oracle Home Inventory : F:\oracle\devapps\apps\tech_st\10.1.2\inventory

                          Central Inventory     : C:\Program Files (x86)\oracle\inventory

                             from               : N/A

                          OUI location          : F:\oracle\devapps\apps\tech_st\10.1.2\oui

                          OUI shared library    : F:\oracle\devapps\apps\tech_st\10.1.2\oui\lib\win32\oraI

                          nstaller.dll

                          Java location         : "F:\oracle\devapps\apps\tech_st\10.1.2\jdk\jre\bin\java.

                          exe"

                          Log file location     : F:\oracle\devapps\apps\tech_st\10.1.2/.patch_storage/<pa

                          tch ID>/*.log

                           

                           

                          Creating log file "F:\oracle\devapps\apps\tech_st\10.1.2\.patch_storage\LsInventory__07-10-2015_01-18-46.log"

                           

                          Result:

                           

                            Installed Patch List:

                            =====================

                            1) Patch  12848228 applied on Sun Sep 29 14:44:01 VET 2013

                                Unique Patch ID:  14066256

                                [ Bug fixes: 12848228  ]

                            2) Patch  8300196 applied on Thu Mar 26 11:02:35 VET 2009

                                [ Bug fixes: 8300196  ]

                            3) Patch  7329300 applied on Thu Mar 26 11:01:46 VET 2009

                                [ Bug fixes: 7329300  ]

                            4) Patch  7608327 applied on Thu Mar 26 11:00:32 VET 2009

                                [ Bug fixes: 7135488 7379127 7608327 7156655 7156648 7379122 7135493  ]

                            5) Patch  7486619 applied on Thu Mar 26 10:58:32 VET 2009

                                [ Bug fixes: 5965763 5179574 5458753 5123798 5634746 5662718 4444429 50554

                          42 4554284 4903532 4439469 3879892 5389003 4197970 7044603 4900129 5599596 33564

                          92 6066970 3365575 4137422 5417371 5049074 4598613 6082292 4581220 5851310 45935

                          37 5901877 5227050 5654013 4405452 4742607 6637274 4671216 6375506 4331689 55870

                          38 5698037 4739114 4533048 5261796 4329444 4537790 5660845 5734276 5651245 46383

                          91 4689959 6833159 3043199 7226075 5857345 5490935 4561318 5325821 6647068 66091

                          15 4625102 4083461 4871035 7047034 5229137 7330258 4964703 4768040 6121452 57659

                          58 5920672 5188810 6751853 5232076 5163554 4448018 5410059 5183129 5103126 56371

                          47 4764518 4932527 5394728 5605370 6531613 3950478 4222791 4864649 3928773 48954

                          16 5600971 5068565 3114089 5049077 6530342 4632780 7172912 3385230 3613066 49241

                          74 5751441 5057606 6113018 4760148 4542097 6499258 4632072 5490845 4593539 60720

                          62 6777940 4943839 6344701 4760744 5071931 4751932 4563343 6383491 5017662 43911

                          64 4939157 5043713 5984608 5068988 3726607 5716295 3514771 6079603 4407719 73091

                          04 4573573 7258065 5183330 5381668 4547083 4417341 6263336 3823693 4523125 60341

                          73 4573980 6028755 5336737 7560928 5694719 4390036 6864202 5874989 6342593 66395

                          53 5251148 5225797 5490058 4439455 6943778 3912907 5596325 4529637 4742903 47047

                          00 5092688 5390154 4335559 7046005 4703814 7395472 5731187 3543720 5913479 38376

                          00 5711011 3962946 4587607 4214618 5571916 4458415 4712638 6993462 4892623 50950

                          25 4663819 6803397 6316174 6791710 4607523 3680611 5002265 4882231 5233111 63709

                          67 4359124 5120780 6404864 3872038 5003119 4743582 5500883 5450493 4443086 47005

                          43 5743928 4597251 6395024 4134994 4371966 5242647 5257709 5738539 4624776 59334

                          77 4899105 4297270 6647005 5955975 6072112 5056864 5411847 5345593 4605877 46054

                          00 5022061 4713437 5689908 6487851 5136454 4966897 5020105 4736134 6115804 45758

                          54 3662022 5901912 6400501 6867107 4335420 5090822 5907304 6408393 6079585 45183

                          85 5080775 5345988 3603160 6408317 5114330 5178202 4337583 4874628 5632264 47362

                          48 4360454 7486619 4682514 4625938 4904454 4376624 4715022 4754900 3559326 43599

                          97 5611353 4377469 3842618 5057964 5738457 4449900 6046728 5408970 3667025 55097

                          07 4703253 5380055 5037807 5951091 7047019 4397366 4218407 4608183 5487993 51317

                          22 7154098 6864078 5523799 5415410 5014128 7367493 5385973 4545809 4150034  ]

                            6) Patch  7140405 applied on Thu Mar 26 10:51:30 VET 2009

                                [ Bug fixes: 6764875 6116405  ]

                            7) Patch  7423007 applied on Thu Mar 26 10:50:26 VET 2009

                                [ Bug fixes: 6371228 7423007 5917053  ]

                            8) Patch  7230258 applied on Thu Mar 26 10:49:47 VET 2009

                                [ Bug fixes: 7016961  ]

                            9) Patch  7462914 applied on Thu Mar 26 10:49:06 VET 2009

                                [ Bug fixes: 4526825 4407272 7462914 6857221 7414182  ]

                            10) Patch  7229760 applied on Thu Mar 26 10:48:26 VET 2009

                                [ Bug fixes: 6395358 6790720 7000696 7114153 6446152 7242694 5465339 68212

                          97 7021759 6823259 6724714 7046878 7229760 7150529 6999812 6704955 6251633 67708

                          10  ]

                           

                          OPatch succeeded.

                          OPatch returns with error code = 0

                           

                          Regards

                          Karthick G

                          • 11. Re: Error in Opatch: After java upgrade cannot lock OUI inventory
                            Kumar Vellaisamy

                            Hi,

                             

                            We are waiting for your response, Kindly help us to resolve this issue ASAP.

                             

                            Regards

                            • 12. Re: Error in Opatch: After java upgrade cannot lock OUI inventory
                              yoonas

                              You were delaying

                               

                              Now We have changed to old java under 10.1.2 Oracle home for your reference, Now its working fine.

                               

                              F:\oracle\devapps\apps\tech_st\10.1.2\jdk\jre\bin>java -version

                              java version "1.4.2_14"

                              Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_14-b05)

                              Java HotSpot(TM) Client VM (build 1.4.2_14-b05, mixed mode)

                               

                              F:\oracle\devapps\apps\tech_st\10.1.2>opatch lsinventory

                              Can you change java to jdk 6(replace 1.4 with 1.6) and run the commands and post output.

                               

                               

                              F:\oracle\devapps\apps\tech_st\10.1.2\jdk\jre\bin>java -version

                              F:\oracle\devapps\apps\tech_st\10.1.2>opatch lsinventory -report


                              Please check oui version also




                              • 13. Re: Error in Opatch: After java upgrade cannot lock OUI inventory
                                Kumar Vellaisamy

                                Hi,

                                 

                                Sorry for the delay,

                                 

                                Kindly find the below details for your reference.

                                 

                                F:\oracle\devapps\apps\tech_st\10.1.2\oui>cat oraparam.ini | grep OUI_VERSION

                                OUI_VERSION=10.1.0.6.0

                                 

                                We have changed from old java to new java as 1.6u38, Now the opatch lsinventory command is not working.

                                 

                                F:\oracle\devapps\apps\tech_st\10.1.2>opatch lsinventory

                                 

                                 

                                Oracle Interim Patch Installer version 1.0.0.0.62

                                Copyright (c) 2009 Oracle Corporation. All Rights Reserved..

                                 

                                 

                                Oracle recommends you to use the latest OPatch version

                                and read the OPatch documentation available in the OPatch/docs

                                directory for usage. For information about the latest OPatch and

                                other support-related issues, refer to document ID 293369.1

                                available on My Oracle Support (https://myoraclesupport.oracle.com)

                                 

                                 

                                Oracle Home                : F:\oracle\devapps\apps\tech_st\10.1.2

                                Oracle Home Inventory : F:\oracle\devapps\apps\tech_st\10.1.2\inventory

                                Central Inventory     : C:\Program Files (x86)\oracle\inventory

                                   from               : N/A

                                OUI location          : F:\oracle\devapps\apps\tech_st\10.1.2\oui

                                OUI shared library    : F:\oracle\devapps\apps\tech_st\10.1.2\oui\lib\win32\oraI

                                nstaller.dll

                                Java location         : "F:\oracle\devapps\apps\tech_st\10.1.2\jdk\jre\bin\java.

                                exe"

                                Log file location     : F:\oracle\devapps\apps\tech_st\10.1.2/.patch_storage/<pa

                                tch ID>/*.log

                                 

                                 

                                Creating log file "F:\oracle\devapps\apps\tech_st\10.1.2\.patch_storage\LsInventory__07-14-2015_01-10-05.log"

                                 

                                Result:

                                 

                                java.lang.NullPointerException

                                        at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                                OiicStandardInventorySession.java:401)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:243)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:218)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:167)

                                        at opatch.O2O.setupSession(O2O.java:535)

                                        at opatch.O2O.setupInventory(O2O.java:597)

                                        at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                                        at opatch.LsInventory.main(LsInventory.java:195)

                                java.lang.NullPointerException

                                        at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                                OiicStandardInventorySession.java:401)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:243)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:218)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:167)

                                        at opatch.O2O.setupSession(O2O.java:535)

                                        at opatch.O2O.setupInventory(O2O.java:597)

                                        at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                                        at opatch.LsInventory.main(LsInventory.java:195)

                                java.lang.NullPointerException

                                        at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                                OiicStandardInventorySession.java:401)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:243)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:218)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:167)

                                        at opatch.O2O.setupSession(O2O.java:535)

                                        at opatch.O2O.setupInventory(O2O.java:597)

                                        at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                                        at opatch.LsInventory.main(LsInventory.java:195)

                                java.lang.NullPointerException

                                        at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                                OiicStandardInventorySession.java:401)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:243)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:218)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:167)

                                        at opatch.O2O.setupSession(O2O.java:535)

                                        at opatch.O2O.setupInventory(O2O.java:597)

                                        at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                                        at opatch.LsInventory.main(LsInventory.java:195)

                                java.lang.NullPointerException

                                        at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                                OiicStandardInventorySession.java:401)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:243)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:218)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:167)

                                        at opatch.O2O.setupSession(O2O.java:535)

                                        at opatch.O2O.setupInventory(O2O.java:597)

                                        at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                                        at opatch.LsInventory.main(LsInventory.java:195)

                                java.lang.NullPointerException

                                        at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                                OiicStandardInventorySession.java:401)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:243)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:218)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:167)

                                        at opatch.O2O.setupSession(O2O.java:535)

                                        at opatch.O2O.setupInventory(O2O.java:597)

                                        at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                                        at opatch.LsInventory.main(LsInventory.java:195)

                                java.lang.NullPointerException

                                        at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                                OiicStandardInventorySession.java:401)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:243)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:218)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:167)

                                        at opatch.O2O.setupSession(O2O.java:535)

                                        at opatch.O2O.setupInventory(O2O.java:597)

                                        at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                                        at opatch.LsInventory.main(LsInventory.java:195)

                                java.lang.NullPointerException

                                        at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                                OiicStandardInventorySession.java:401)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:243)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:218)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:167)

                                        at opatch.O2O.setupSession(O2O.java:535)

                                        at opatch.O2O.setupInventory(O2O.java:597)

                                        at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                                        at opatch.LsInventory.main(LsInventory.java:195)

                                java.lang.NullPointerException

                                        at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                                OiicStandardInventorySession.java:401)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:243)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:218)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:167)

                                        at opatch.O2O.setupSession(O2O.java:535)

                                        at opatch.O2O.setupInventory(O2O.java:597)

                                        at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                                        at opatch.LsInventory.main(LsInventory.java:195)

                                java.lang.NullPointerException

                                        at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(

                                OiicStandardInventorySession.java:401)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:243)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:218)

                                        at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS

                                tandardInventorySession.java:167)

                                        at opatch.O2O.setupSession(O2O.java:535)

                                        at opatch.O2O.setupInventory(O2O.java:597)

                                        at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)

                                        at opatch.LsInventory.main(LsInventory.java:195)

                                LsInventory: OPatch Exception while accessing O2O

                                 

                                OPATCH_JAVA_ERROR  : An exception of type "OPatchException" has occurred:

                                OPatch Exception:  Can not lock OUI inventory (READ/WRITE Level)

                                  An exception occurs

                                  null

                                  Can not lock OUI inventory (READ/WRITE Level)

                                  An exception occurs

                                  null

                                  Can not lock OUI inventory (READ/WRITE Level)

                                  An exception occurs

                                  null

                                  Can not lock OUI inventory (READ/WRITE Level)

                                  An exception occurs

                                  null

                                  Can not lock OUI inventory (READ/WRITE Level)

                                  An exception occurs

                                  null

                                  Can not lock OUI inventory (READ/WRITE Level)

                                  An exception occurs

                                  null

                                  Can not lock OUI inventory (READ/WRITE Level)

                                  An exception occurs

                                  null

                                  Can not lock OUI inventory (READ/WRITE Level)

                                  An exception occurs

                                  null

                                  Can not lock OUI inventory (READ/WRITE Level)

                                  An exception occurs

                                  null

                                  Can not lock OUI inventory (READ/WRITE Level)

                                  An exception occurs

                                  null

                                 

                                There is no Interim Patch

                                 

                                OPATCH_JAVA_ERROR  : An exception of type "OPatchException" has occurred:

                                Can not get a list of inventory on this home.

                                 

                                ERROR: OPatch failed because of Inventory problem.

                                OPatch returns with error code = 100

                                 

                                Regards

                                Karthick G

                                • 14. Re: Error in Opatch: After java upgrade cannot lock OUI inventory
                                  yoonas

                                  What about ouput of

                                  With 1.6

                                  F:\oracle\devapps\apps\tech_st\10.1.2\jdk\jre\bin>java -version

                                   

                                  Have you completed this step from note 455492.1 ?

                                  Download and Apply OUI 10.1.0.6 Patch (Required for Windows Customers)

                                   

                                  The issue is discussed here OPATCH_JAVA_ERROR With "Can not lock OUI inventory (READ/WRITE Level)" in Logs (Doc ID 1264274.1)

                                  If it does not work after following above note you might try with laters opatch https://support.oracle.com/epmos/faces/ui/patch/PatchDetail.jspx?_afrLoop=266739070731495&parent=DOCUMENT&patchId=688088…

                                  1 2 Previous Next