oracle重建orainventory,打补丁时重建Inventory目录

在尝试应用11G查询补丁时遇到了错误,问题在于OPatch无法找到Central Inventory。解决步骤包括检查oraInst.loc文件,创建并授权 oraInventory 目录,以及使用attachHome.sh脚本重新附加数据库家目录。
摘要由CSDN通过智能技术生成

11G查询补丁有如下报错

[oracle@wdb ~]$ $ORACLE_HOME/OPatch/opatch lsinventory

Oracle Interim Patch Installer version 11.2.0.3.12

Copyright (c) 2018, Oracle Corporation.  All rights reserved.

Oracle Home       : /wdb/db/product/11.2.0/dbhome_1

Central Inventory : /wdb/oraInventory

from           : /wdb/db/product/11.2.0/dbhome_1/oraInst.loc

OPatch version    : 11.2.0.3.12

OUI version       : 11.2.0.4.0

Log file location : /wdb/db/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2018-07-20_10-21-06AM_1.log

OPatch failed to locate Central Inventory.

Possible causes are:

The Central Inventory is corrupted

The oraInst.loc file specified is not valid.

LsInventorySession failed: OPatch failed to locate Central Inventory.

Possible causes are:

The Central Inventory is corrupted

The oraInst.loc file specified is not valid.

OPatch failed with error code 73

解决方法,按如下两步一步步来

1

cat /wdb/db/product/11.2.0/dbhome_1/oraInst.loc

inventory_loc=/wdb/oraInventory

inst_group=dba

发现没有/wdb/oraInventory目录,手工建立并授权

mkdir -p /wdb/oraInventory

chown dba.oracle /wdb/oraInventory

2

cd $ORACLE_HOME/oui/bin

./attachHome.sh

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值