Pavan DBA's Blog

The DBA Knowledge Store

How to resolve “Unable to create Patch Object” error?

Posted by Pavan DBA on December 18, 2011

Hi Friends, Its been ages that I blogged a technical article. Today I am going to post some info which might be useful for us.

Long back I posted about how to check patch conflicts before executing CPU patches in this article

Yesterday, when I am supposed to patch a database and checking conflicts, I got below error

FTU % opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./12419278

Invoking OPatch  
Oracle Interim Patch Installer version Copyright (c) 2007, Oracle Corporation.  All rights reserved.  

PREREQ session  
Oracle Home       : /u02/app/oracle/product/
Central Inventory : /u01/app/oracle/oraInventory   
from           : /etc/oraInst.loc
OPatch version    :
OUI version       :
OUI location      : /u02/app/oracle/product/ Log file location : /u02/app/oracle/product/  

Invoking prereq “checkconflictagainstohwithdetail”
The location “./12419278/README.html” is not a directory or a valid patch zip file.
Prereq “checkConflictAgainstOHWithDetail” not executed
PrereqSession failed: Unable to create Patch Object.
Exception occured : Patch ID is null.  

OPatch failed with error code 73

We have two solutions for this problem


Move the text files like readme.html, readme.txt etc from the patch directory to some other location and try checking conflicts and it will be successful

But the problem is, this is not a permanent solution and just a workaround


This is the permanent solution for this problem. Cause for this error is we don’t have latest opatch version. As you can see in the output above my database version is, but my opatch version is So, download latest opatch version from My Oracle Support with the help of patch # 6880880 and install it

Steps to install new opatch
1. copy the downloaded zip file for patch # 6880880 to $ORACLE_HOME
2. change location to ORACLE_HOME and rename the old OPatch directory
example : FTU%  cd $ORACLE_HOME
FTU%  mv OPatch OPatch.old
3. unzip the zip file which will create new OPatch directory
4. run below command to check if version is changed
FTU% $ORACLE_HOME/OPatch/opatch version

The above steps are also available in README file of the patch

Hope this post helps you in resolving the issue……………….. have a HAPPY LEARNING 🙂

2 Responses to “How to resolve “Unable to create Patch Object” error?”

  1. Gina said

    That was the correct answer!!! I renamed the current OPatch to OPatch.old135 and re-ran the command and it worked!! Thank YOU!!!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: