10g安装出现oraInventory目录问题

Oracle oraInventory作用与重建 【参考】:https://docs.oracle.com/en/database/oracle/oracle-database/12.2/ladbi/about-the-oracle-inventory-directory-and-installation.html 【转载】:http://blog.chinaunix.net/uid-28815788-id-5765194.html 1. oraInventory作用 oraInventory是当前操作系统上,Oracle相关软件的安装目录清单。 阅读详情
  • 问题背景
因之前安装过数据库11.2.0.1.0和11.2.0.3.0数据库,在环境变量倒换之间出现错误,通过kill进程的方法删除了数据库。然后删除了datafile等文件。在第二次安装的时候,出现如下情况
[oracle@aisms]./runInstaller
You do not have sufficient permissions to access the inventory '/data/oracle/oraInventory3/logs'. Installation cannot continue. Make sure that you have read/write permissions to the inventory directory and restart the installer.: Permission denied
/data/oracle/oraInventory3为安装11.2.0.3.0数据库的时候创建目录。
之前的环境变量情况为:
$ORACLE_BASE=/data/oracle
$ORACLE_HOME=$ORACLE_BASE/product/11.2.0.3.0
  • 问题分析:
来看看oraInventory目录的介绍
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文件决定的,在solaris中oraInst.loc文件位于/var/opt/oracle/OraInst.loc文件下,其内容如下:
[root@ocmserver]more oraInst.loc
inventory_loc=/opt/oracle/oraInventory
inst_group=oinstall
[root@ocmserver]
这样,问题找到了。即最后一次删除的时候,数据库是11.2.0.3.0版本。当删除$ORACLE_BASE和$ORACLE_HOME目录下的所有内容的时候,没有清楚或者修改/var/opt/oracle/oraInst.loc文件。所以在下次清除的时候,他默认从oraInst.loc文件中的那些配置读取,每次都会需要读取此位置,而如果新安装的位置安放在其他地方,在会出现无权读取某文件等。
  • oraInventory知识拓展:
轻易不要删除oraInventory目录,如果在生产环境删除,则会出现各种错误。常见错误总结如下:
example1
$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
explame2
$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
oraInventory重建方法1
$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$
oraInventory重建方法2
$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.
实验证明
实验一:修改默认oraInventory目录为oraInventory_bak目录,启动数据库,然后运行升级程序。
[oracle@ocmserver]mv oraInventory oraInventory_bak
[oracle@ocmserver]ls
admin                                bak                                    flash_recovery_area    oradata                            sql
archive_log                    core                                 oraInventory_bak         product                            sqlnet.log
[oracle@ocmserver]sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Wed Nov 28 22:21:35 2012

Copyright (c) 1982, 2005, Oracle.    All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area    230686720 bytes
Fixed Size                                    2019768 bytes
Variable Size                         104861256 bytes
Database Buffers                    117440512 bytes
Redo Buffers                                6365184 bytes
Database mounted.
Database opened.
SQL> !
bash-3.2$ cd /opt/oracle/product/10.2.0.1/OPatch
bash-3.2$ ./opatch lsinventory
Invoking OPatch 10.2.0.1.0

Oracle interim Patch Installer version 10.2.0.1.0
Copyright (c) 2005, Oracle Corporation.    All rights reserved..


Oracle Home             : /opt/oracle/product/10.2.0.1
Central Inventory : /opt/oracle/oraInventory
     from                     : /opt/oracle/product/10.2.0.1/oraInst.loc
OPatch version        : 10.2.0.1.0
OUI version             : 10.2.0.1.0
OUI location            : /opt/oracle/product/10.2.0.1/oui
Log file location : /opt/oracle/product/10.2.0.1/cfgtoollogs/opatch/opatch-2012_Nov_28_22-26-47-CST_Wed.log

LsInventory Session 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 72
bash-3.2$
实验二:修改/var/opt/oracle/oraInst.loc文件以及$ORACLE_HOME/oraInst.loc文件,然后再执行./OPatch lsinventory
SQL> !
bash-3.2$ more / var /opt/oracle/oraInst.loc
inventory_loc=/opt/oracle/oraInventory_bak
inst_group=oinstall
bash-3.2$ more /opt/oracle/product/10.2.0.1/oraInst.loc
inventory_loc=/opt/oracle/oraInventory_bak
inst_group=oinstall
bash-3.2$./opatch lsinventory
Invoking OPatch 10.2.0.1.0

Oracle interim Patch Installer version 10.2.0.1.0
Copyright (c) 2005, Oracle Corporation.    All rights reserved..


Oracle Home             : /opt/oracle/product/10.2.0.1
Central Inventory : /opt/oracle/oraInventory_bak
     from                     : /opt/oracle/product/10.2.0.1/oraInst.loc
OPatch version        : 10.2.0.1.0
OUI version             : 10.2.0.1.0
OUI location            : /opt/oracle/product/10.2.0.1/oui
Log file location : /opt/oracle/product/10.2.0.1/cfgtoollogs/opatch/opatch-2012_Nov_28_22-36-55-CST_Wed.log

Lsinventory Output file location : /opt/oracle/product/10.2.0.1/cfgtoollogs/opatch/lsinv/lsinventory-2012_Nov_28_22-36-55-CST_Wed.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1):

Oracle Database 10g                                                                                                    10.2.0.1.0
There are 1 products installed in this Oracle Home.


There are no Interim patches installed in this Oracle Home.

--------------------------------------------------------------------------------

OPatch succeeded.
bash-3.2$
由此可知,$ORACLE_HOME/oraInst.loc文件和/var/opt/oracle/oraInst.loc应该是映射关系,在数据库启动的时候修改$ORACLE_HOME目录下的oraInst.loc,当卸载数据库的时候($ORACLE_HOME,$ORACLE_BASE被删除)可以修改/var/opt/oracle/oraInst.loc文件。

本文出自 “Focus on Oracle” 博客,请务必保留此出处http://alexy.blog.51cto.com/6115453/1073510

重建oraInventory oraInventory中记录了oracle安装目录的相关信息,通常在oracle软件安装过程中会自动创建,路径通常会在/oracle_base/oraInventory/,并在/etc/oraInst.loc中记录相关的路径信息,有时候我们的oracle目录是从另一套相似环境中tar过来的,这个时候是不会有oraInventory信息,如果此时数据库需要升级,或者打psu,那么会报错,这时候就需 阅读详情

相关推荐

uds协议之can总线程序升级

uds协议简介 如何利用uds协议升级 升级流程 uds服务类型介绍

fangye945a的博客 1万+

关于Oracle的卸载和解锁问题【注册表】

在不使用oracle数据库的时候,想把其彻底卸载可能会遇到不少问题,如果卸载不完全,重新安装的时候就会安装不了,下面是我的一些解决方法,可以参考。     1、停止所有Oracle服务     2、删除注册表中的所有关于Oracle项      regedit---->     (1)在HKEY_LOCAL_MACHINE\SOFTWARE下,删除Oracle目

莫者兼爱任的专栏 1284

Python 静态导入与动态导入

python中模块的静态导入 与 动态导入(运行时指定模块),以及具体对应示例。

慢也好,步子小也好,往前走就好~ 717

oracle ./runinstaller 第一步就报错,Linux安装Oracle报错导致runInstaller无法完成解决一列...

Linux安装Oracle报Checking operating system version must be redhat-3, SuSE-9, redhat-4, UnitedLin: 在Linux系统中安装oralLinux安装Oracle报Checking operating system version must be RedHat-3, SUSE-9, redhat-4, United...

weixin_28224217的博客 3373

静态随机存储器(SRAM)

静态随机存储器(SRAM)是一种广泛用于计算机系统和嵌入式设备中的高速随机访问存储器。与动态随机存储器(DRAM)不同,SRAM 不需要定期刷新,因此可以实现更快的访问时间和更低的功耗。SRAM通常用于缓存、高速缓冲器和存储器应用程序中,其中性能和可靠性至关重要。

JAZJD的博客 8148

SeaTunnel 实战:Apache SeaTunnel Web 安装与部署

复制引擎服务中配置文件到 Web 配置目录下面。就是上述 application.yml 文件中配置的端口号。默认是从 mvvm 下载,可能下载速度很慢,我这边安装了 Maven 并且配置了阿里云仓库,因此将脚本中的。如果环境变量有冲突需要改下环境变量的名字以及 init_sql.sh 中的环境变量的名字,可以加上前缀。初始化数据库有两种方式,一是使用官方提供的初始化脚本,二是直接运行初始化 SQL。初始化数据库的脚本,使用之前需要修改。

SmartSi 3908

Oracle-Inventory文件

Oracle-Inventory文件 1、什么是inventory呢? Inventory是Oracle安装工具OUI用来管理Oracle安装目录的。Inventory里注册了某个ORACLE_HOME下安装的数据库的组件及其版本。Oracle数据库软件的升级、增删组件,都需要使用Inventory。在一台服务器上,Oracle OUI会创建一个全局的Inventory,全局Inventory的目录在 oraInst.loc 文件中指定。根据操作系统的不同,oraInst.loc 所在的目录也不一样。在A

weixin_44904114的博客 665

YOLO骨干网络改进-第1篇:深度解析YOLOv8的C2f模块原理与实现

首先,需要将自定义的C2f模块注册到Ultralytics的模块字典中。# 注册自定义模块"""自定义的C2f模块。"""# 自定义YOLOv8s配置文件:yolov8s_custom.yamlscales:# Backbonebackbone:# Headhead:# 加载自定义模型# 训练模型imgsz=640,batch=16,device=0,workers=8,设计理念:C2f模块是C3模块的演进,通过增加梯度分支来丰富梯度流,提升特征表示能力。结构原理。

2201_76125393的博客 109

由OUI-10035和OUI-10033错误引发的关于oraInventory目录位置的思考

由OUI-10035和OUI-10033错误引发的关于oraInventory目录位置的思考 今天在Linux操作系统(OEL4.8)安装Oracle Enterprise Manager Grid Control 10g版本时遭遇OUI-10035和OUI-10033错误,如下图所示。 1.报错内容 1. OUI-10035:You do not have permissi

njyxfw的专栏 8169

Python调用CANoe

我们可以创建CANoe应用程序对象,打开配置文件,启动模拟,发送和接收消息,并在完成后关闭CANoe应用程序。这使得我们能够使用Python自动化执行测试任务,并集成CANoe的功能到我们的Python应用程序中。CANoe是一款功能强大的汽车网络仿真和测试工具,它能够模拟和分析汽车网络通信,并提供丰富的测试功能。通过Python编程语言,我们可以方便地调用CANoe的API,实现自动化测试和集成CANoe的功能到我们的Python应用程序中。在CANoe中,我们可以为不同的汽车网络创建配置文件。

AzqLinux的博客 1287

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

oracle 由OUI-10035和OUI-10033错误引发的关于oraInventory目录位置的思考

由OUI-10035和OUI-10033错误引发的关于oraInventory目录位置的思考 今天在Linux操作系统(OEL4.8)安装Oracle Enterprise Manager Grid Control 10g版本时遭遇OUI-10035和OUI-10033错误,如下图所示。1.报错内容1. OUI-10035:You do not have permission to writ...

钢铁鸭 369

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

oracle10安装OUI_10037,oracle 10g 客户端安装异常:OUI-10035和OUI-10033异常

今天在Linux操作系统(OEL4.8)安装OracleEnterprise Manager Grid Control10g版本时遭遇OUI-10035和OUI-10033错误,如下图所示。1.报错内容1. OUI-10035:You do not have permission to write to the inventory location.OR2. OUI-10033:The inv...

weixin_42179184的博客 745

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

安装Oracle10203 for Vista时主目录兼容性报错

重装系统后,在原有的ORACLE_HOME目录上重装ORACLE,准备覆盖以前的ORACLE_HOME,这样可以快速的恢复Oracle环境。 结果安装程序在检查Oracle主目录的不兼容性时报错: 正在检查 Or...

ckawt40802的专栏 294

RAC crs 卸载后,再次安装Oracle, crs 目录还存在的问题

今天在做RAC + data Guard 的实验。 用了之前做RAC 添加节点的虚拟机。 即以前的rac3节点。 这个节点之前已经卸载过了。 卸载方法参考: RAC 卸载 说明 http://blog.youkuaiyun.com/tianlesoftware/archive/2010/09/18/5892225.aspx 但是在安装Oracle 软件的时候,界面提示有问题。 截...

qjoycn 93

oracle 静默升级(to 10.2.0.4 from 10.2.0.1) Oracle主目录的不兼容性[转杨廷琨]

oracle 静默升级(to 10.2.0.4 from 10.2.0.1) Oracle主目录的不兼容性 [ora@dg-ss response]$ /opt/Disk1/runInstaller -silent -responseFile /opt/Disk1/response/patchset.rsp -force ........... Performing check for Co

2217

一个电脑能装两个oracle数据库,如何在一台主机上安装多个版本oracle数据库

如何在一台主机上安装多个版本oracle数据库本文以在一个host 上安装2个版本的oracle数据库(oracle 10g/11g)为例,做一个简单的介绍。系统环境使用的是ol5.8,采用oracle-validate-rpm来自动配置oracle的系统环境。安装路径需要手工创建,在这里需要准备两个两个path($oracle_base)ora11g:创建 ORACLE 软件路径mkdir -p...

weixin_39563827的博客 4480

oracle重建orainventory,Oracle错误日志:Oracle11g R2 RAC重建oraInventory目录

最近在11g RAC升级过程中,发现oraInventory目录丢失了。导致在db安装程序的过程中提示以下错误:Cause:Before you can install Oracle RAC, you must install Oracle Grid Infrastructure on all servers (Oracle Clusterware and Oracle ASM) to creat...

weixin_39527372的博客 284

oracle inventory directory,oraInventory目录的作用

oraInventory目录的作用2019-03-14What is oraInventory ?oraInventory is repository (directory) whichstore/records oracle software products & their oracle_homes locationon a machine. This Inventory now ...

weixin_36127428的博客 502

oracle10g错误日志目录,Oracle错误日志:Oracle11g R2 RAC重建oraInventory目录

最近在11g RAC升级过程中,发现oraInventory目录丢失了。导致在db安装程序的过程中提示以下错误:Cause:Before you can install最近在11g RAC升级过程中,发现oraInventory目录丢失了。导致在db安装程序的过程中提示以下错误:Cause:Before you can install Oracle RAC, you must install Or...

weixin_30698721的博客 257

oracle u01目录 100,【oraInventory】由OUI-10035和OUI-10033错误引发的关于oraInventory目录位置的思考...

今天在Linux操作系统(OEL4.8)安装Oracle Enterprise Manager Grid Control 10g版本时遭遇OUI-10035和OUI-10033错误,如下图所示。1.报错内容1. OUI-10035:You do not have permission to write to the inventory location.OR2. OUI-10033:The in...

weixin_36088083的博客 377

Oracle安装oraInventory问题

Oracle安装oraInventory问题-----------------------------2013/10/15在使用安装Oracle软件或者使用dbca创建数据库时,所有的日志都会放在oraInventory这个目录下。 默认情况下该目录会在$ORACLE_BASE/oraInventory,但是我们也可以通过更改/etc/oraInst.loc文件来指定具体的路径: 假设想修改该...

weixin_30702887的博客 1076
上一篇: solaris10出现crontab无法正常编辑问题
下一篇: solaris10下shell常用
Onlineforeve
博客等级 码龄18年 3粉丝 78原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值