打補丁時重建Inventory目錄

lusklusklusk發表於2018-07-20

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

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

相關文章