oracle inventory directory,oraInventory目录的作用

oraInventory目录的作用

2019-03-14

What is oraInventory ?oraInventory is repository (directory) which store/records oracle software products & their oracle_homes location on 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

分类:数据库 | 标签: |

相关日志

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值