Opatch raised the following error:


ApplySession failed: ApplySession failed to prepare the system. OracleHomeInventory gets null oracleHomeInfo
System intact, OPatch will not attempt to restore the system

OPatch failed with error code 73

In order to find root cause;
export OPATCH_DEBUG=TRUE
then run "opatch apply" again. Following lines give more information.



Home name= OUIHome1, Location= "/u01/app/oracle/product/10.2.0"
Home name= OraDb11g_home1, Location= "/u01/app/oracle/11g/version/11107"
Home name= OraDb11g_examples, Location= "/u01/app/oracle/11gExamples"
OracleHomeInventory::createInventoryObj() construction done
OracleHomeInventory::load()
OPatchSession cannot load inventory for the given Oracle Home /u01/app/oracle/product/10.2.0.4. Possible causes are:
No read or write permission to ORACLE_HOME/.patch_storage
Central Inventory is locked by another OUI instance
No read permission to Central Inventory
The lock file exists in ORACLE_HOME/.patch_storage
The Oracle Home does not exist in Central Inventory

You can see that opatch runs under /u01/app/oracle/product/10.2.0.4 but inventory doesn't show this path as an Oracle Home. There is something wrong with the inventory data.

To fix the problem, i edited the following file in order to correct "OUIHome1" as /u01/app/oracle/product/10.2.0.4

$ORACLE_BASE/oraInventory/ContentsXML/inventory.xml

format must be like:

8 Responses so far.

  1. Anonymous says:

    Thank You, this fixed my issue.

  2. Anonymous says:

    Thanks You, you save my time. Nguyen

  3. Sravani says:

    Thank you for sharing such a nice and interesting blog with us. I have seen that all will say the same thing repeatedly. But in your blog, I had a chance to get some useful and unique information.

    Oracle Fusion HCM Online Training

  4. sushma says:

    Hey Really Thanks for sharing the best information regarding category, hope you will write more great blogs.
    Oracle Fusion Financials Online Training

  5. Naga says:

    Very interesting blog, keep posting such an informative post.

    Oracle Fusion Financials Online Training

  6. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.

    oracle fusion financials online training

  7. Thank you for sharing such a nice and interesting blog and really very helpful article

    Oracle Fusion SCM Online Training

  8. erp pdtr says:

    I really got good knowledge and experience from your article. Thanks for sharing, For more detailed please visit our website.
    Oracle Fusion Financials Online Training

Powered by Blogger.

Page Views

- Copyright © Emre Baransel - Oracle Blog -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -