OPatch failed with error code 104报错




1、执行opatch apply打补丁的时候,报OPatch failed with error code 104错误,
找不到有效的oraInst.loc文件,具体如下所示:
oracle@kevin.example.com:~/linux_patch/12419384> opatch apply
Invoking OPatch 11.1.0.8.5
Oracle Interim Patch Installer version 11.1.0.8.5
Copyright (c) 2011, Oracle Corporation.  All rights reserved.

Oracle Home       : /opt/oracle/product/11g/db
Central Inventory : n/a
   from           :
OPatch version    : 11.1.0.8.5
OUI version       : 11.1.0.7.0
OUI location      : /opt/oracle/product/11g/db/oui
Log file location : n/a

Patch history file: /opt/oracle/product/11g/db/cfgtoollogs/opatch/opatch_history.txt
OPatch cannot find a valid oraInst.loc file to locate Central Inventory.
OPatch failed with error code 104
2、执行opatch lsinventory查看之前已应用的补丁情况,也报一样的错误。
oracle@kevin.example.com:~/linux_patch/12419384> opatch lsinventory
Invoking OPatch 11.1.0.8.5
Oracle Interim Patch Installer version 11.1.0.8.5
Copyright (c) 2011, Oracle Corporation.  All rights reserved.

Oracle Home       : /opt/oracle/product/11g/db
Central Inventory : n/a
   from           :
OPatch version    : 11.1.0.8.5
OUI version       : 11.1.0.7.0
OUI location      : /opt/oracle/product/11g/db/oui
Log file location : n/a

Patch history file: /opt/oracle/product/11g/db/cfgtoollogs/opatch/opatch_history.txt
OPatch cannot find a valid oraInst.loc file to locate Central Inventory.
OPatch failed with error code 104

3、对于该错误,我们可以指明oraInst.loc文件的绝对路径来执行相应的命令,如下所示:
opatch lsinventory  -invPtrLoc /opt/oracle/product/11g/db/oraInst.loc
opatch apply  -invPtrLoc /opt/oracle/product/11g/db/oraInst.loc

4、或者从其他相同版本的数据库软件目录下拷贝/opt/oracle/oraInventory目录和/etc/oraInst.loc文件
到相对应的目录
5、当然,也是可以重建的,(注意替换你自己的ORACLE_HOME和ORACLE_HOME_NAME):
/opt/oracle/product/11g/db/oui/bin/runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="/opt/oracle/product/11g/db/" ORACLE_HOME_NAME="home1"

6、比如执行opatch lsinventory出现如下错误,则重建oraInventory,可以解决
Inventory load failed... OPatch cannot load inventory for the given Oracle Home.
Possible causes are:
   Oracle Home dir. path does not exist in Central Inventory
   Oracle Home is a symbolic link
   Oracle Home inventory is corrupted
LsInventorySession failed: OracleHomeInventory::load() gets null oracleHomeInfo

OPatch failed with error code 73

原文:http://www.shangxueba.com/jingyan/749277.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值