opatch报错OPatch failed with error code 2

安装补丁前进行补丁冲突检查,首先进到已解压的补丁目录,如:

[grid@md01 ~]$ cd 21523375/

[grid@md01 21523375]$ opatch prereq CheckConflictAgainstOHWithDetail  -phBaseDir ./
Oracle Interim Patch Installer version 11.2.0.3.12
Copyright (c) 2015, Oracle Corporation.  All rights reserved.


PREREQ session


Oracle Home       : /u01/app/11.2.0/grid
Central Inventory : /u01/oraInventory
   from           : /u01/app/11.2.0/grid/oraInst.loc
OPatch version    : 11.2.0.3.12
OUI version       : 11.2.0.4.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2015-11-29_21-20-19PM_1.log


Invoking prereq "checkconflictagainstohwithdetail"


Prereq "checkConflictAgainstOHWithDetail" is not executed.


The details are:
Unable to create Patch Object.
Exception occured : null


OPatch failed with error code 2


结果报如上错误。 后将补丁的目录改写成绝对路径就好了,汗...


[grid@md01 21523375]$ opatch prereq CheckConflictAgainstOHWithDetail  -phBaseDir /home/grid/21523375/
Oracle Interim Patch Installer version 11.2.0.3.12
Copyright (c) 2015, Oracle Corporation.  All rights reserved.


PREREQ session


Oracle Home       : /u01/app/11.2.0/grid
Central Inventory : /u01/oraInventory
   from           : /u01/app/11.2.0/grid/oraInst.loc
OPatch version    : 11.2.0.3.12
OUI version       : 11.2.0.4.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2015-11-29_21-24-05PM_1.log


Invoking prereq "checkconflictagainstohwithdetail"


Prereq "checkConflictAgainstOHWithDetail" passed.


OPatch succeeded.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值