ITPub博客

首页 > 数据库 > Oracle > 补丁Exception occured : PatchObject constructor: Input file...does not exist

补丁Exception occured : PatchObject constructor: Input file...does not exist

原创 Oracle 作者:banana_62 时间:2017-07-30 01:31:11 0 删除 编辑
到补丁包的目录下检测补丁冲突,虽然success了,但是明显是有报错的
[oracle@lzl liu]$ cd 20760997/
[oracle@lzl 20760997]$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Invoking OPatch 11.2.0.1.7

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

PREREQ session

Oracle Home       : /u01/app/oracle/product/11.2
Central Inventory : /u01/app/oraInventory
   from           : /etc/oraInst.loc
OPatch version    : 11.2.0.1.7
OUI version       : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2/cfgtoollogs/opatch/opatch2017-07-30_00-42-52AM.log

Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" not executed
Unable to create Patch Object.
Exception occured : PatchObject constructor: Input file "/home/oracle/liu/20760997/etc/config/actions" or "/home/oracle/liu/20760997/etc/config/inventory" does not exist.

OPatch succeeded.
从这里可以看到/etc/config,第一眼以为是os上的/etc目录,其实应该是patch中/etc/config目录
[oracle@lzl config]$ pwd
/home/oracle/liu/20760997/20760997/etc/config

目录调整:
[oracle@lzl 20760997]$ opatch prereq CheckConflictAmongPatchesWithDetail -phBaseDir /home/oracle/liu/20760997/20760997/
Invoking OPatch 11.2.0.1.7

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

PREREQ session

Oracle Home       : /u01/app/oracle/product/11.2
Central Inventory : /u01/app/oraInventory
   from           : /etc/oraInst.loc
OPatch version    : 11.2.0.1.7
OUI version       : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2/cfgtoollogs/opatch/opatch2017-07-30_01-20-45AM.log

Invoking prereq "checkconflictamongpatcheswithdetail"

Prereq "checkConflictAmongPatchesWithDetail" passed.

再次检测冲突
[oracle@lzl 20760997]$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Invoking OPatch 11.2.0.1.7

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

PREREQ session

Oracle Home       : /u01/app/oracle/product/11.2
Central Inventory : /u01/app/oraInventory
   from           : /etc/oraInst.loc
OPatch version    : 11.2.0.1.7
OUI version       : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2/cfgtoollogs/opatch/opatch2017-07-30_01-20-52AM.log

Invoking prereq "checkconflictagainstohwithdetail"

Prereq "checkConflictAgainstOHWithDetail" passed.

OPatch succeeded.
正常通过

参考MOS文档
opatch prereq CheckConflict fails with Exception occured : PatchObject constructor:Input file does not exist (文档 ID 788181.1)

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31461640/viewspace-2142782/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 恢复drop掉的表
请登录后发表评论 登录
全部评论

注册时间:2017-05-18

  • 博文量
    71
  • 访问量
    65041