opatch error code 73 PrereqSession failed Invalid patch location 解决

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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22049049/viewspace-1029400/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值