zoukankan      html  css  js  c++  java
  • OPatch cannot find a valid oraInst.loc file to locate Central Inventory

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

    1. [oracle@bej301441 OPatch]$  opatch lsinventory  
    2. Invoking OPatch 11.1.0.6.2  
    3.   
    4. Oracle Interim Patch Installer version 11.1.0.6.2  
    5. Copyright (c) 2007, Oracle Corporation.  All rights reserved.  
    6.   
    7.   
    8. Oracle Home       : /u01/oracle/mc3yd213/db/tech_st/11.1.0  
    9. Central Inventory : n/a  
    10.    from           :  
    11. OPatch version    : 11.1.0.6.2  
    12. OUI version       : 11.1.0.7.0  
    13. OUI location      : /u01/oracle/mc3yd213/db/tech_st/11.1.0/oui  
    14. Log file location : n/a  
    15.   
    16. OPatch cannot find a valid oraInst.loc file to locate Central Inventory.  
    17.   
    18. 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.   
      3. Oracle Interim Patch Installer version 1.0.0.0.58  
      4. Copyright (c) 2007 Oracle Corporation. All Rights Reserved..  
      5.   
      6. We recommend you refer to the OPatch documentation under  
      7. OPatch/docs for usage reference. We also recommend using  
      8. the latest OPatch version. For the latest OPatch version  
      9. and other support related issues, please refer to document  
      10. 293369.1 which is viewable from metalink.oracle.com  
      11.   
      12. Oracle Home           : /u01/oracle/mc3yd213/db/tech_st/11.1.0  
      13. Oracle Home Inventory : /u01/oracle/mc3yd213/db/tech_st/11.1.0/inventory  
      14. Central Inventory     : /u01/oracle/mc3yd213/db/tech_st/11.1.0/admin/oui/mc3yd213_bej301441/oraInventory  
      15.    from               : /u01/oracle/mc3yd213/db/tech_st/11.1.0/oraInst.loc  
      16. OUI location          : /u01/oracle/mc3yd213/db/tech_st/11.1.0/oui  
      17. OUI shared library    : /u01/oracle/mc3yd213/db/tech_st/11.1.0/oui/lib/linux/liboraInstaller.so  
      18. Java location         : /u01/oracle/mc3yd213/db/tech_st/11.1.0/jdk/jre/bin/java  
      19. Log file location     : /u01/oracle/mc3yd213/db/tech_st/11.1.0/.patch_storage/<patch ID>/*.log  
      20.   
      21. Creating log file "/u01/oracle/mc3yd213/db/tech_st/11.1.0/.patch_storage/LsInventory__05-10-2013_20-21-11.log"  
      22.   
      23. Result:  
      24.   
      25.   
      26.   Installed Patch List:  
      27.   =====================  
      28.   1) Patch 8199107 applied on Thu Mar 26 07:53:06 PDT 2009  
      29.       [ Base Bug(s): 8199107  ]  
      30.   2) Patch 7627743 applied on Thu Mar 26 07:52:01 PDT 2009  
      31.       [ Base Bug(s): 7627743  ]  
      32.   3) Patch 7639602 applied on Thu Mar 26 07:50:56 PDT 2009  
      33.       [ Base Bug(s): 7639602  ]  
      34.   4) Patch 7211965 applied on Thu Mar 26 07:49:52 PDT 2009  
      35.       [ Base Bug(s): 7211965  ]  
      36.   5) Patch 7708501 applied on Thu Mar 26 07:48:13 PDT 2009  
      37.       [ Base Bug(s): 7708501  ]  
      38.   6) Patch 7330434 applied on Thu Mar 26 07:47:02 PDT 2009  
      39.       [ Base Bug(s): 7330434  ]  
      40.   7) Patch 7580744 applied on Thu Mar 26 07:45:56 PDT 2009  
      41.       [ Base Bug(s): 7580744  ]  
      42.   8) Patch 7708340 applied on Thu Mar 26 07:44:38 PDT 2009  
      43.       [ Base Bug(s): 7708340  ]  
      44.   9) Patch 7327166 applied on Thu Mar 26 07:43:37 PDT 2009  
      45.       [ Base Bug(s): 7327166  ]  
      46.   10) Patch 7486407 applied on Thu Mar 26 07:42:26 PDT 2009  
      47.       [ Base Bug(s): 7486407  ]  
      48.   11) Patch 7243270 applied on Thu Mar 26 07:41:19 PDT 2009  
      49.       [ Base Bug(s): 7243270  ]  
      50.   12) Patch 7277741 applied on Thu Mar 26 07:41:07 PDT 2009  
      51.       [ Base Bug(s): 7277741  ]  
      52.   13) Patch 7319922 applied on Thu Mar 26 07:39:56 PDT 2009  
      53.       [ Base Bug(s): 7319922  ]  
      54.   14) Patch 4247037 applied on Thu Mar 26 07:38:44 PDT 2009  
      55.       [ Base Bug(s): 4247037  ]  
      56.   15) Patch 6530141 applied on Thu Mar 26 07:38:31 PDT 2009  
      57.       [ Base Bug(s): 6530141  ]  
      58.   16) Patch 6598432 applied on Thu Mar 26 07:37:26 PDT 2009  
      59.       [ Base Bug(s): 6598432  ]  
      60.   17) Patch 6815733 applied on Thu Mar 26 07:36:21 PDT 2009  
      61.       [ Base Bug(s): 6815733  ]  
      62.   18) Patch 6991626 applied on Thu Mar 26 07:35:16 PDT 2009  
      63.       [ Base Bug(s): 6991626  ]  
      64.   19) Patch 7111245 applied on Thu Mar 26 07:34:12 PDT 2009  
      65.       [ Base Bug(s): 7111245  ]  
      66.   20) Patch 7253531 applied on Thu Mar 26 07:31:41 PDT 2009  
      67.       [ Base Bug(s): 7253531  ]  
      68.   21) Patch 7556778 applied on Thu Mar 26 07:30:41 PDT 2009  
      69.       [ Base Bug(s): 7556778  ]  
      70.   22) Patch 7000281 applied on Thu Mar 26 07:29:31 PDT 2009  
      71.       [ Base Bug(s): 7000281  ]  
      72.   23) Patch 6263237 applied on Thu Mar 26 07:28:20 PDT 2009  
      73.       [ Base Bug(s): 6263237  ]  
      74.   24) Patch 6870937 applied on Thu Mar 26 07:27:07 PDT 2009  
      75.       [ Base Bug(s): 6870937  ]  
      76.   25) Patch 7295298 applied on Thu Mar 26 07:26:01 PDT 2009  
      77.       [ Base Bug(s): 7295298  ]  
      78.   26) Patch 6972189 applied on Thu Mar 26 07:24:42 PDT 2009  
      79.       [ Base Bug(s): 6972189  ]  
      80.   
      81. OPatch succeeded.  
      82. [oracle@bej301441 etc]$  
  • 相关阅读:
    时间和时间戳的转换
    遍历Map的四种方法
    MyEclipse2015Stable3.0破解方法
    java 解压缩Zip文件 ziputil
    java Lock
    javaCountDownLatch闭锁
    JavaNIO非阻塞模式
    JavaNIO阻塞IO添加服务器反馈
    JavaNIO阻塞IO
    java三级考试理论题
  • 原文地址:https://www.cnblogs.com/gw811/p/3676885.html
Copyright © 2011-2022 走看看