Thursday, January 15, 2009

Verification of patch failed: Patch is not found in the Inventory.

Hi,

Happy New Year!!!

Problem:

SEVERE:OUI-67073:UtilSession failed: ApplySession failed in system modification phase... 'Verification of patch failed: Patch is not found in the Inventory.

'
INFO:--------------------------------------------------------------------------------
INFO:The following warnings have occurred during OPatch execution:
INFO:1) OUI-67124:Inventory check failed: Patch ID is NOT registered in Oracle Home inventory.
INFO:2) OUI-67124:ApplySession failed in system modification phase... 'Verification of patch failed: Patch is not found in the Inventory. '
INFO:3) OUI-67124:
NApply restored the home. Please check your ORACLE_HOME to make sure:
- files are restored properly.
- binaries are re-linked correctly.

We faced the above error while applying one of the patches using opatch.

Troubleshooting:

I checked upon the following aspects:

- The oracle home was properly defined in inventory.xml
- oraInst.loc was pointing to the correct inventory location
- OUI versions are adequate to update the inventory
- oratab contained the correct oracle home entry

None of above turned to be the culprits. This patch was being applied as part of the patches that were being applied to upgrade the database to 10.2.0.4 from

10.2.0.2. This prompted me to take a look at the oui log for this patchset and I found the following lines:

WARNING: Home:/oracle/product/10.2.0.4/OCDEV has conflicting information present in the inventory at /oracle/product/10.2.0.4/OCDEV/oraInventory/Contents
WARNING: Please delete the /oracle/product/10.2.0.4/OCDEV/oraInventory/Contents directory to avoid inventory update failures

Fix: As the above warning made it evident, I renamed the existing Contents folder and created an empty folder by the name Contents under oraInventory.

Applied the patch again using opatch and the issue was fixed.

- Aravind Kamath Posral

5 comments:

Anonymous said...

This tip helped me resolve a similar issue with opatch today.
Thanks

Anonymous said...

It works for same error message for a JAN2010 CPU Merge Patch 9119284 on Linux environment.
Robertson Bestbuy Oracle dba

robertson said...

It again worked for a 11g LINUX Version CPU Patch 9114072.

Error:
Inventory check failed: Patch ID 8855553 is NOT registered in Oracle Home inventory.
Files check OK: Files from Patch ID 8855553 are present in Oracle Home.
ApplySession failed in system modification phase... 'Verification of patch failed: Patch is not found in the Inventory. '

Solution: Renamed the Contents folder under /u01/app/oracle/OraInventory to Contents_old and create a new folder named Contents with 755 permission.

Unknown said...

thanks it help me too

Anonymous said...

Worked for me too! Thanks for the fix!