Inventory 是Oracle 安装工具OUI用来管理Oracle 安装目录的。
Oracle 数据库软件的升级、增删组件,都需要使用Inventory。在一台服务器上,Oracle OUI 会创建一个全局的Inventory,
全局Inventory 的目录在oraInst.loc 文件中指定。oraInst.loc 文件中包含下面的配置项目:
inventory_loc=<oraInventory 所在目录>
inst_group=<OUI 安装ORACLE 的操作系统组>
[root@node1 oracle]# cat /etc/oraInst.loc
inventory_loc=/u01/11.2.0/oraInventory
inst_group=oinstall
[root@node1 oracle]#
这里面有两个信息,第一个是Inventory 所在的目录位置,第二个是安装Oracle 的组的名称。
<span style="font-family: Arial, Helvetica, sans-serif;">
</span>
<span style="font-family: Arial, Helvetica, sans-serif;">[grid@node1 OPatch]$ ./opatch lsinventory</span>
Invoking OPatch 11.2.0.1.7
Oracle Interim Patch Installer version 11.2.0.1.7
Copyright (c) 2011, Oracle Corporation. All rights reserved.
Oracle Home : /u01/11.2.0/ghome
Central Inventory : /u01/11.2.0/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.2.0.1.7
OUI version : 11.2.0.3.0
Log file location : /u01/11.2.0/ghome/cfgtoollogs/opatch/opatch2015-12-23_13-01-26PM.log
Lsinventory Output file location : /u01/11.2.0/ghome/cfgtoollogs/opatch/lsinv/lsinventory2015-12-23_13-01-26PM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (1):
Oracle Grid Infrastructure 11.2.0.3.0
There are 1 products installed in this Oracle Home.
There are no Interim patches installed in this Oracle Home.
Rac system comprising of multiple nodes
Local node = node1
Remote node = node3
--------------------------------------------------------------------------------
OPatch succeeded.
[grid@node1 OPatch]$