首页 > Linux操作系统 > Linux操作系统 > PatchObject constructor:Input file does not exist

PatchObject constructor:Input file does not exist

原创 Linux操作系统 作者:renjixinchina 时间:2013-08-27 17:52:51 0 删除 编辑


Oracle Universal Installer - Version to [Release 10.2 to 11.1]
Information in this document applies to any platform.
Reviewed for currency Aug-27-2012


Following error is reported while checking for conflict among patches which are to be applied (where one of the patches is a napply patch)

For example, which checking for conflict between two patches Patch 608154 and Patch 5892355

Patch 6081547 and Patch 5892355 are taken here as an example only, to explain the issue and they should not be applied to the Oracle Home unless it was advised by Oracle.

$ opatch prereq CheckConflictAmongPatchesWithDetail -phBaseDir $ORACLE_HOME/patches 

Invoking OPatch

Oracle Interim Patch Installer version
Copyright (c) 2009, Oracle Corporation.  All rights reserved.

PREREQ session

Oracle Home       : /opt/oracle/product/
Central Inventory : /opt/oracle/oraInventory
   from           : /etc/oraInst.loc
OPatch version    :
OUI version       :
OUI location      : /opt/oracle/product/
Log file location : /opt/oracle/product/

Patch history file: /opt/oracle/product/

Invoking prereq "checkconflictamongpatcheswithdetail"
Prereq "checkConflictAmongPatchesWithDetail" not executed
Unable to create Patch Object.
Exception occured : PatchObject constructor: Input file
"/opt/oracle/product/" or
"/opt/oracle/product/" does not exist.
OPatch succeeded.


Would like to know whether there is any potential conflict between patches before they are applied.

For example, while checking for conflict between two patches 6081547 (napply patch) and 5892355

When Patch 6081547 was unzipped, four other patch directories are created and 6081547 is not present, even though the fix for concerned bug is included in the napply patch.

$ cd $ORACLE_HOME/patches/6081547 

$ ls -l

drwxr-xr-x 4 oracle oracle 4096 Jun 22 2007 5209867
drwxr-xr-x 4 oracle oracle 4096 Mar 5 16:56 5844945
drwxr-xr-x 4 oracle oracle 4096 Mar 5 16:17 5998544
drwxr-xr-x 4 oracle oracle 4096 Jun 22 2007 6010833


The OPatch option of -phBaseDir option is used to specify the path to base dir where all the patches to be applied are kept. 

The command enterred was

$ opatch prereq CheckConflictAmongPatchesWithDetail -phBaseDir $ORACLE_HOME/patches

 OPatch will look in $ORACLE_HOME/patches for the following directory structure:


Since unzipping the patch creates multiple directories, that directory structure does not exist and -phBaseDir must be the directory that is created when the patch is unzipped. 

-phBaseDir $ORACLE_HOME/patches/6081547


Execute OPatch pointing -phBaseDir to the directory created when patch is unzipped

$ opatch prereq CheckConflictAmongPatchesWithDetail -phBaseDir $ORACLE_HOME/patches/6081547

来自 “ ITPUB博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录


  • 博文量
  • 访问量