opatch error code 73 PrereqSession failed Invalid patch location 解決

cnhtm發表於2009-12-07

Linux Oracle 10.2 RAC打補丁patch-8833280的時候,按照README.html檔案在執行補丁適用性檢查的時候,報告“PrereqSession failed: Invalid patch location”錯誤,詳細錯誤資訊如下:

[oracle@rac1 patch]$ unzip p8833280_10204_Linux-x86.zip
[oracle@rac1 patch]$ opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./8833280
Invoking OPatch 10.2.0.4.2

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

PREREQ session

Oracle Home : /u01/app/oracle/product/10.2.0/db_1
Central Inventory : /u01/app/oracle/oraInventory
from : /etc/oraInst.loc
OPatch version : 10.2.0.4.2
OUI version : 10.2.0.4.0
OUI location : /u01/app/oracle/product/10.2.0/db_1/oui
Log file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2009-12-04_16-43-11PM.log

Invoking prereq "checkconflictagainstohwithdetail"
The location "./8833280/README.html" is not a directory or a valid patch zip file.
Prereq "checkConflictAgainstOHWithDetail" not executed
PrereqSession failed: Invalid patch location.

OPatch failed with error code 73
[@more@]

經過檢查,opatch命令引數,發現是readme檔案上的命令錯誤,應該將引數-phBaseDir修改為 -ph,修改後執行成功,過程如下:

[oracle@rac1 patch]$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./8833280
Invoking OPatch 10.2.0.4.2

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

PREREQ session

Oracle Home : /u01/app/oracle/product/10.2.0/db_1
Central Inventory : /u01/app/oracle/oraInventory
from : /etc/oraInst.loc
OPatch version : 10.2.0.4.2
OUI version : 10.2.0.4.0
OUI location : /u01/app/oracle/product/10.2.0/db_1/oui
Log file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2009-12-04_16-43-18PM.log

Invoking prereq "checkconflictagainstohwithdetail"

Prereq "checkConflictAgainstOHWithDetail" passed.

OPatch succeeded.
[oracle@rac1 patch]$

使用opatch命令的線上幫助,發現phBaseDir和ph引數的區別如下:

[oracle@oracle opatch]$ opatch prereq --help
Invoking OPatch 10.2.0.4.2

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


DESCRIPTION
This operation runs the prerequisite checks on an ORACLE_HOME.

SYNTAX
opatch prereq [-invPtrLoc ]
[-jdk ] [-jre ]
[-oh ]
[-property_file ]
[-local_node ]
[-remote_nodes ]
[-ph ]
[-phBaseDir ]
[-phBaseFile ]
[-id ]


......


[oracle@oracle opatch]$

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22049049/viewspace-1029400/,如需轉載,請註明出處,否則將追究法律責任。

相關文章