Oracle中Inventory目录作用以及如何重建此目录

oraInventory存放的是Oracle软件安装的目录信息,Oralce的安装升级都需要用到这个目录,来看看Oracle文档中对这个目录的一点说明:

All Oracle software installations rely on this directory.

Ensure that you back it up regularly.

Do not delete this directory unless you have completely removed

all Oracle software from the system.

oraInventory目录的位置是由oraInst.loc文件决定的:

/etc/oraInst.loc (AIX and Linux Platform)

/var/opt/oracle/OraInst.loc (Solaris and HP-UX platform)

$cat /etc/oraInst.loc

inventory_loc=/app/oracle/oraInventory

inst_group=dba

删除或丢失oraInventory目录的内容,都有可能导致升级报错,例如在运行opatch时就有可能遇到以下报错:

10G中:

$opatch lsinventory

Invoking OPatch 10.2.0.4.3

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

$opatch lsinventory

Invoking OPatch 10.2.0.4.3

List of Homes on this system:

Inventory load failed... OPatch cannot load inventory for the given Oracle Home.

Possible causes are:

Oracle Home dir. path does not exist in Central Inventory

Oracle Home is a symbolic link

Oracle Home inventory is corrupted

LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo

OPatch failed with error code 73

9I中报错:

OPATCH_JAVA_ERROR : An exception of type "OPatchException" has occurred:

OPatch Exception:

Can not lock OUI inventory (READ/WRITE Level)

An exception occurs

The inventory pointed at location /app/oraInventory is not valid

There is no Interim Patch

Can not get a list of inventory on this home.

LsInventory: OPatch Exception while accessing O2O

OPATCH_JAVA_ERROR : An exception of type "OPatchException" has occurred:

OPatch Exception:

OUI found no such ORACLE_HOME set in the environment

Can not get details for given Oracle Home

An exception occurs

null

There is no Interim Patch

Can not get a list of inventory on this home.

ERROR: OPatch failed because of Inventory problem.

在10G中可以运行以下命令进行oraInventory目录重建:

$cd $ORACLE_HOME/oui/bin

$./runInstaller -silent -attachHome

> ORACLE_HOME=$ORACLE_HOME

> ORACLE_HOME_NAME="ORACLE_HOME"

Starting Oracle Universal Installer...

No pre-requisite checks found in oraparam.ini,

no system pre-requisite checks will be executed.

The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /app/oracle/oraInventory

'AttachHome' was successful.

js_znjh_1./app/oracle/product/10.2.0/db_1/oui/bin$

10.2.0.2以上的版本,还可以直接运行attachHome.sh脚本:

$cd $ORACLE_HOME/oui/bin

$./attachHome.sh

Starting Oracle Universal Installer...

No pre-requisite checks found in oraparam.ini,

no system pre-requisite checks will be executed.

The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /app/oracle/oraInventory

'AttachHome' was successful.

oracle下的inventory文件夹,Oracle中Inventory目录作用以及如何重建此目录相关推荐

  1. oracle重建inventory,Oracle中Inventory目录作用以及如何重建此目录-Oracle

    Oracle中Inventory目录作用以及如何重建此目录 oraInventory存放的是Oracle软件安装的目录信息,Oralce的安装升级都需要用到这个目录,来看看Oracle文档中对这个目录 ...

  2. oracle下的inventory文件夹,Oracle软件安装目录信息Inventory作用以及如何重建此目录 - 2...

    在ORACLE_HOME下面也有一个Inventory目录,这个目录就是我们平时说的Local Inventory(非全局).这个Inventory是本 地的,每个ORACLE_HOME所独有的.它记 ...

  3. oracle下的inventory文件夹,oracle INVENTORY 详解

    inventory是oracle安装工具OUI用来管理oracle安装目录的.inventory里注册了某个ORACLE_HOME下安装的数据库的组件及其版本,存放的是oracle软件安装的目录信息. ...

  4. oracle定时导入dat文件夹,oracle dat文件导入 | 学步园

    今天在执行dat文件导入的时候,由于很久没执行过这种操作了,因此又变得生疏了,花了比较长的时间才弄好.然后看到网上关于oracle dat文件的导入介绍的都是一部分,所以特在这里总结一下. 一.dmp ...

  5. linux下查看光驱文件夹,LINUX中为什么没有DEV下的光驱设备文件

    一.光驱的软开关: eject -r cdrom,弹开指定光驱设备的仓门,如只有一个光驱,直接用eject就可,如有两个光驱设备根据/dev/下设备文件来指定设备,如我的机器上还有一 台COMBO C ...

  6. 如何批量删除文件夹名中相同的前缀?

    概要:前面我们介绍了批量删除文件夹名中相同后缀的方法,同样的,我们也会碰到需要批量删除文件夹名中相同前缀的场景.当我们面对大量的文件夹都需要删除相同的前缀的时候,该怎么做呢?怎么批量删除文件夹名中相同 ...

  7. 揭秘Win7 下WinSXS超大文件夹

    Tips:winsxs文件夹的作用 winsxs是VISTA/Windows 7的Windows目录下一个非常重要的文件夹,该文件夹里边有很多重要的组件,版本也很复杂,为了保证Windows的正常运行 ...

  8. java命令 jar文件夹_java中jar命令打包一个文件夹下的所有文件

    (1)首先,必须保证java的所有路径都设置好,在dos提示符下输入jar -help 出现C:\Documents and Settings\dly>jar -help 非法选项:h 用法:j ...

  9. (转)Unity Assets目录下的特殊文件夹名称(作用和是否会被打包到build中)

    原文:http://wiki.unity3d.com/index.php/Special_Folder_Names_in_your_Assets_Folder 1.隐藏文件夹 以.开头的文件夹会被Un ...

最新文章

  1. 2018.10.25-dtoj-2903-蛋糕(cake)
  2. html轮播图速度加快,各位老师,为什么我用jq写的轮播图,移入移出速度会加快...
  3. faster rcnn源码解读总结
  4. python创建文件对象_python基础教程:文件读写
  5. Elasticsearch——filter过滤查询
  6. 80-10-020-原理-Java NIO-HeapByteBuffer
  7. 02 | 纵览全局:把握 Netty 整体架构脉络
  8. 全志 A64 开发板移植SQLite3
  9. 如何用一个废旧的笔记本打造一个家庭网络服务器?
  10. 周育如的音标口诀大全_音标记忆顺口溜(48个),快速记忆音标口诀!
  11. ModuleNotFoundError: No module named 'pytz'
  12. 幸福家庭杂志幸福家庭杂志社幸福家庭教育部2022年第1期目录
  13. 2020届校招浦发银行 信息科技 创新岗 面经及历年汇总~
  14. Excel制作水滴图和对称条形图
  15. Tableau 群集部署
  16. 电子元器件贸易采购管理常见难题及解决方案
  17. Lesson 13-14 How often do you exercise?
  18. Android 轻松实现百度地图定位
  19. 基于C语言编写的超市管理系统
  20. Seata异常:endpoint format should like ip:port

热门文章

  1. mac命令行压缩解压rar文件
  2. 短信的发送(SMS)的发送
  3. SMS短信的编码规则
  4. python教程39-做个淘宝双十一满减攻略
  5. Python打印表格
  6. apollo 阿波罗使用
  7. 解决Chrome插件安装时程序包无效:CRX_HEADER_INVALID
  8. vmware mac 系统进入恢复模式 关闭SIP
  9. ICDAR 2019 CROHME + TFD比赛 手写数学表达识别与排版公式检测的竞争
  10. html页面如何引用母版页,内容页面访问母版页控件的两种方法