1. 程式人生 > >PSU升級時報錯:OPatch failed with error code 73

PSU升級時報錯:OPatch failed with error code 73

問題:

在執行補丁升級時,報下面的錯

/u01/app/oracle/grid/OPatch/opatch auto /soft/psu/gipsu/18706472/ -oh /u01/app/oracle/grid/ -ocmrf /u01/app/oracle/grid/OPatch/ocm/bin/ocm.rsp 


日誌:
2014-07-22 16:28:58: The opatch minimum version  check for patch /soft/psu/gipsu/18706472 failed  for /u01/app/oracle/grid
2014-07-22 16:28:58: The opatch version check failed with following error
2014-07-22 16:28:58: Oracle Interim Patch Installer version 11.2.0.3.4
 Copyright (c) 2012, Oracle Corporation.  All rights reserved.
 
 
 Oracle Home       : /u01/app/oracle/grid
 Central Inventory : /u01/app/oraInventory
    from           : /u01/app/oracle/grid/oraInst.loc
 OPatch version    : 11.2.0.3.4
 OUI version       : 11.2.0.4.0
 Log file location : /u01/app/oracle/grid/cfgtoollogs/opatch/opatch2014-07-22_16-28-57PM_1.log
 
 Invoking utility "checkminimumopatchversion"
 
 ZOP-49: Not able to execute the prereq. OPatch cannot inform if the patch satisfies minimum version requirement.
 PatchObject constructor: Input file "/soft/psu/gipsu/18706472/etc/config/actions" or "/soft/psu/gipsu/18706472/etc/config/inventory
" does not exist.
 UtilSession failed: PatchObject constructor: Input file "/soft/psu/gipsu/18706472/etc/config/actions" or "/soft/psu/gipsu/18706472/
etc/config/inventory" does not exist.
 
 OPatch failed with error code 73


2014-07-22 16:28:58: Status of opatch version check  for /u01/app/oracle/grid is 0
2014-07-22 16:28:58: Opatch version check failed for oracle home  /u01/app/oracle/grid
2014-07-22 16:28:58: Opatch version  check failed
2014-07-22 16:28:58: update the opatch version for the failed homes and retry


原因:

在新版本的Opatch打補丁時,要把最新的OPatch分別都放到ORACLE_HOME和GI_HOME下,然後再使用opatch auto命令。