命令:opatch lsinventory用于查看数据库所打Patch的列表。但运行的时候发现错误:

  1. [oracle@bej301441 OPatch]$  opatch lsinventory
  2. Invoking OPatch 11.1.0.6.2
  3. Oracle Interim Patch Installer version 11.1.0.6.2
  4. Copyright (c) 2007, Oracle Corporation.  All rights reserved.
  5. Oracle Home       : /u01/oracle/mc3yd213/db/tech_st/11.1.0
  6. Central Inventory : n/a
  7. from           :
  8. OPatch version    : 11.1.0.6.2
  9. OUI version       : 11.1.0.7.0
  10. OUI location      : /u01/oracle/mc3yd213/db/tech_st/11.1.0/oui
  11. Log file location : n/a
  12. OPatch cannot find a valid oraInst.loc file to locate Central Inventory.
  13. OPatch failed with error code 104

解决方法:

原因是opatch在默认目录下找不到oraInst.loc文件,对于Unix系统来说oraInst.loc的默认位置是: /etc/oraInst.loc 或者 /var/opt/oracle/oraInst.loc 。

这里我们可以需要指定具体的oraInst.loc文件位置给opatch。

命令:opatch lsinventory -invPtrLoc /u01/oracle/mc3yd213/db/tech_st/11.1.0/oraInst.loc

(/u01/oracle/mc3yd213/db/tech_st/11.1.0为我数据库的ORACLE_HOME)

完整的输出:

    1. [oracle@bej301441 etc]$ opatch lsinventory -invPtrLoc /u01/oracle/mc3yd213/db/tech_st/11.1.0/oraInst.loc
    2. Oracle Interim Patch Installer version 1.0.0.0.58
    3. Copyright (c) 2007 Oracle Corporation. All Rights Reserved..
    4. We recommend you refer to the OPatch documentation under
    5. OPatch/docs for usage reference. We also recommend using
    6. the latest OPatch version. For the latest OPatch version
    7. and other support related issues, please refer to document
    8. 293369.1 which is viewable from metalink.oracle.com
    9. Oracle Home           : /u01/oracle/mc3yd213/db/tech_st/11.1.0
    10. Oracle Home Inventory : /u01/oracle/mc3yd213/db/tech_st/11.1.0/inventory
    11. Central Inventory     : /u01/oracle/mc3yd213/db/tech_st/11.1.0/admin/oui/mc3yd213_bej301441/oraInventory
    12. from               : /u01/oracle/mc3yd213/db/tech_st/11.1.0/oraInst.loc
    13. OUI location          : /u01/oracle/mc3yd213/db/tech_st/11.1.0/oui
    14. OUI shared library    : /u01/oracle/mc3yd213/db/tech_st/11.1.0/oui/lib/linux/liboraInstaller.so
    15. Java location         : /u01/oracle/mc3yd213/db/tech_st/11.1.0/jdk/jre/bin/java
    16. Log file location     : /u01/oracle/mc3yd213/db/tech_st/11.1.0/.patch_storage/<patch ID>/*.log
    17. Creating log file "/u01/oracle/mc3yd213/db/tech_st/11.1.0/.patch_storage/LsInventory__05-10-2013_20-21-11.log"
    18. Result:
    19. Installed Patch List:
    20. =====================
    21. 1) Patch 8199107 applied on Thu Mar 26 07:53:06 PDT 2009
    22. [ Base Bug(s): 8199107  ]
    23. 2) Patch 7627743 applied on Thu Mar 26 07:52:01 PDT 2009
    24. [ Base Bug(s): 7627743  ]
    25. 3) Patch 7639602 applied on Thu Mar 26 07:50:56 PDT 2009
    26. [ Base Bug(s): 7639602  ]
    27. 4) Patch 7211965 applied on Thu Mar 26 07:49:52 PDT 2009
    28. [ Base Bug(s): 7211965  ]
    29. 5) Patch 7708501 applied on Thu Mar 26 07:48:13 PDT 2009
    30. [ Base Bug(s): 7708501  ]
    31. 6) Patch 7330434 applied on Thu Mar 26 07:47:02 PDT 2009
    32. [ Base Bug(s): 7330434  ]
    33. 7) Patch 7580744 applied on Thu Mar 26 07:45:56 PDT 2009
    34. [ Base Bug(s): 7580744  ]
    35. 8) Patch 7708340 applied on Thu Mar 26 07:44:38 PDT 2009
    36. [ Base Bug(s): 7708340  ]
    37. 9) Patch 7327166 applied on Thu Mar 26 07:43:37 PDT 2009
    38. [ Base Bug(s): 7327166  ]
    39. 10) Patch 7486407 applied on Thu Mar 26 07:42:26 PDT 2009
    40. [ Base Bug(s): 7486407  ]
    41. 11) Patch 7243270 applied on Thu Mar 26 07:41:19 PDT 2009
    42. [ Base Bug(s): 7243270  ]
    43. 12) Patch 7277741 applied on Thu Mar 26 07:41:07 PDT 2009
    44. [ Base Bug(s): 7277741  ]
    45. 13) Patch 7319922 applied on Thu Mar 26 07:39:56 PDT 2009
    46. [ Base Bug(s): 7319922  ]
    47. 14) Patch 4247037 applied on Thu Mar 26 07:38:44 PDT 2009
    48. [ Base Bug(s): 4247037  ]
    49. 15) Patch 6530141 applied on Thu Mar 26 07:38:31 PDT 2009
    50. [ Base Bug(s): 6530141  ]
    51. 16) Patch 6598432 applied on Thu Mar 26 07:37:26 PDT 2009
    52. [ Base Bug(s): 6598432  ]
    53. 17) Patch 6815733 applied on Thu Mar 26 07:36:21 PDT 2009
    54. [ Base Bug(s): 6815733  ]
    55. 18) Patch 6991626 applied on Thu Mar 26 07:35:16 PDT 2009
    56. [ Base Bug(s): 6991626  ]
    57. 19) Patch 7111245 applied on Thu Mar 26 07:34:12 PDT 2009
    58. [ Base Bug(s): 7111245  ]
    59. 20) Patch 7253531 applied on Thu Mar 26 07:31:41 PDT 2009
    60. [ Base Bug(s): 7253531  ]
    61. 21) Patch 7556778 applied on Thu Mar 26 07:30:41 PDT 2009
    62. [ Base Bug(s): 7556778  ]
    63. 22) Patch 7000281 applied on Thu Mar 26 07:29:31 PDT 2009
    64. [ Base Bug(s): 7000281  ]
    65. 23) Patch 6263237 applied on Thu Mar 26 07:28:20 PDT 2009
    66. [ Base Bug(s): 6263237  ]
    67. 24) Patch 6870937 applied on Thu Mar 26 07:27:07 PDT 2009
    68. [ Base Bug(s): 6870937  ]
    69. 25) Patch 7295298 applied on Thu Mar 26 07:26:01 PDT 2009
    70. [ Base Bug(s): 7295298  ]
    71. 26) Patch 6972189 applied on Thu Mar 26 07:24:42 PDT 2009
    72. [ Base Bug(s): 6972189  ]
    73. OPatch succeeded.
    74. [oracle@bej301441 etc]$

OPatch cannot find a valid oraInst.loc file to locate Central Inventory的更多相关文章

  1. error "OPatch cannot find a valid oraInst.loc file to locate Central Inventory

    Error tersebut terjadi ketika akan menjalankan command opatch lsinventory untuk mengetahui patch yan ...

  2. Oracle中Inventory目录作用以及如何重建此目录 oraInst.loc 文件

    inventory 英 [ˈɪnvəntri] 美 [ˈɪnvəntɔ:ri] n. 清查; 存货清单; 财产目录,财产目录的编制; 存货总值; vt. 盘存; 编制…的目录; 开列…的清单; 总结 ...

  3. Lock file left by a different patch, OPatch will not try re-using the lock file.

    OPatch在打补丁的过程中被中断,重新执行后报以下错误: UtilSession failed: Lock file left by a different patch, OPatch will n ...

  4. Centos6.5_x86上Oracle11g2 32位的安装与卸载以及相关问题汇总

    需要注意的问题: 1.Linux包括内核和要安装的oralce版本是否符合(这个在官方文档中有说明). 2.安装oracle一般会新建一个为oracle的账户,注意在安装的过程中的root和oracl ...

  5. aix OPATH ISSUE

    issue 1: OPatch cannot find a valid oraInst.loc file to locate Central Inventory (OPatch failed with ...

  6. Oracle的Central Inventory和Local inventory详解

    很多朋友对Oracle的inventory信息不太了解以至遇到相关的问题不知道如何处理,这篇文章我们将详细讲解Oracle的Central Inventory (oraInventory)和Local ...

  7. Sharing The Application Tier File System in Oracle E-Business Suite Release 12.2

    The most current version of this document can be obtained in My Oracle Support Knowledge Document 13 ...

  8. Oracle 物理结构(一) 文件-Inventory

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

  9. Oracle 11gR2静默安装 & 命令行安装

    静默安装 经常搭建Oracle测试环境,有时候觉得OUI(即图形界面)方式甚是繁琐,你得一步一步进行确认,所幸,Oracle支持静默安装.在我看来,它主要有两方面的好处:一.极大地提升了效率,尤其是批 ...

随机推荐

  1. Python常用模块--datetime

    datetime是Python专门用于处理日期和时间的标准模块. 1.获取当前的本地时间 #!/usr/bin/env python# -*- coding:utf-8 -*-__author__ = ...

  2. 关于H5在移动端架构的优化设计总结

    各大互联网公司采取的策略 一.百度移动前端首页 1. 对于首屏的静态文件css/js,在上线前全部编译直出到HTML文件中:整个首页的渲染只需要一次请求: 2.使用缓存:把不变的js/css/html ...

  3. Leaflet_扩展Leaflet:类(2017-10-26)

    扩展教程:http://leafletjs.com/examples/extending/extending-1-classes.html 翻译 该教程介绍扩展Leaflet最常用的方式. 注意:本文 ...

  4. JDBC(5)—DatabaseMetaData

    1.简介: 使用元数据已实现通用的查询方法.元数据介绍:使用jdbc获得连接之后,得到一个Connection对象,可以通过这个对象获得DataBaseMetaData对象,该对象可以获得有关数据库管 ...

  5. android:单位和尺寸

    为了要让程序拥有更好的屏幕适配能力,在指定控件和布局大小的时候 最好使用 match_parent 和 wrap_content,尽量避免将控件的宽和高设定一个固定值.不过在 有些情况下,仅仅使用 m ...

  6. 微信小程序页面带参数跳转及接收参数内容navigator

    功能从index页面跳转到draw页面,并在draw页面获取id及imgUrl index.wxml <navigator class='looks-view' wx:for="{{i ...

  7. C调用lua的table里面的函数

    网上搜索C.C++调用lua函数,有一大堆复制粘贴的. 但是搜索<C调用lua的table里面的函数> 怎么就没几个呢? 经过探索,发现其实逻辑是这样的: 1.根据name获取table ...

  8. linux系统下创建oracle表空间和用户权限查询

    创建用户和表空间: 1.登录linux,以oracle用户登录(如果是root用户登录的,登录后用 su - oracle命令切换成oracle用户) 2.以sysdba方式来打开sqlplus,命令 ...

  9. ANTLR flex/bison

    https://stackoverflow.com/questions/29971097/how-to-create-ast-with-antlr4 这个很值得仔细看 https://github.c ...

  10. UICollectionView在初始化的时候移动到某个距离

    #pragma mark  -- 使用场景:选中非第一张图片用CollectionView进行浏览时,CollectionView滑动到对应的位置 #pragma mark  -- 重点在于UICol ...