重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1678|回复: 0
打印 上一主题 下一主题

[Oracle] opatch查看报错:LsInventorySession failed

[复制链接]
跳转到指定楼层
楼主
发表于 2021-6-13 09:41:48 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
查看数据库补丁情况时opatch显示报错:
[oracle@orcl ~]$ opatch lsinventory
Oracle Interim Patch Installer version 12.2.0.1.17
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/oracle/product/12.2.0/db_1
Central Inventory : /u01/oraInventory
   from           : /u01/oracle/product/12.2.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.17
OUI version       : 12.2.0.1.4
Log file location : /u01/oracle/product/12.2.0/db_1/OPatch/opatch2021-06-09_14-59-20PM_1.log

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


解决方法:
修改oraInst.loc文件配置
[oracle@orcl ~]$ more /u01/oracle/product/12.2.0/dbhome_1/oraInst.loc
#Oracle Installer Location File Location
#Mon Jun 09 14:10:42 CST 2021
inst_group=oinstall
inventory_loc=/u01/oraInventory


[oracle@wn-jbyl-db ~]$ ls -l /u01/oraInventory/
total 8
-rw-rw----. 1 oracle oinstall   56 Jun 9 14:10 oraInst.loc
-rwxrwx---. 1 oracle oinstall 1620 Jun 9 14:10 orainstRoot.sh
[oracle@wn-jbyl-db ~]$ cd $ORACLE_HOME/oui/bin

[oracle@wn-jbyl-db bin]$ ./attachHome.sh
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 32063 MB    Passed
The inventory pointer is located at /u01/oraInventory/oraInst.loc
'AttachHome' was successful.

[oracle@orcl bin]$ opatch lsinventory
Oracle Interim Patch Installer version 12.2.0.1.17
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/oracle/product/12.2.0/db_1
Central Inventory : /u01/oraInventory
   from           : /u01/oracle/product/12.2.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.17
OUI version       : 12.2.0.1.4
Log file location : /u01/oracle/product/12.2.0/db_1/OPatch/opatch2021-06-09_14-59-20PM_1.log


Lsinventory Output file location : /u01/oracle/product/12.2.0/db_1/OPatch/lsinv/lsinventory2019-09-02_15-03-28PM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: orcl
ARU platform id: 226
ARU platform description:: Linux x86-64

Installed Top-level Products (1):

Oracle Database 12c                                                  12.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.



分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-26 12:15 , Processed in 0.115686 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表