oraInventory目录的作用
-03-14
What is oraInventory ?oraInventory is repository (directory) whichstore/records oracle software products & their oracle_homes locationon a machine. This Inventory now a days in XML format and called as XML Inventory where as in past it used to be in binary format & called as binary Inventory.
There are basically two kind of Inventory Global Inventory (also called as Central Inventory) and Local Inventory also called as Oracle Home Inventory.
oraInventory中记录了oracle安装目录的相关信息,通常在oracle软件安装过程中会自动创建,路径通常会在/oracle_base/oraInventory/,并在/etc/oraInst.loc中记录相关的路径信息,有时候我们的oracle目录是从另一套相似环境中tar过来的,这个时候是不会有oraInventory信息,如果此时数据库需要升级,或者打psu,那么会报错
这时候就需要我们重建oraInventory信息,创建步骤如下:
step 1:编写/etc/oraInst.loc
[root@ORACLE11g-dg etc]#vim oraInst.loc
inventory_loc=/u02/oraInventory
inst_group=oinstall
step 2:运行runInstaller命令进行oraInventory重建工作
[oracle@ORACLE11g-dg database]$ ./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="/u02/oracle/11.2.0/dbhome_1"
ORACLE_HOME_NAME="ORA11g"
Starting Oracle Universal Installer...
step 3:opatch 命令验证可用性
[oracle@ORACLE11g-dg OPatch]$./opatch lsinventory
Invoking OPatch 11.2.0.1.7
step 4:进入相关目录产看相关文件内容
ContentsXML logs
分类:数据库 | 标签: |
相关日志