当前位置: 首页 > BASIC > 正文

inventory目录手动创建

   今天在opatch遇到了inventory目录的问题,下面对inventory手动创建做了一点实验。

   测试环境:OS RHEL 5.8  DB:10.2.0.5.10 RAC环境

   1,使用命令手动创建

  如果要创建集群中的所有节点的inventory,去掉-noClusterEnabled参数,如果有多个实例包括ASM,需要增加多次,注意ORACLE_HOME参数的值的不同。

下面是测试inventory目录是否创建成功,如果命令正常执行,说明成功。

[oracle@rac2 ContentsXML]$ cd /u01/app/oracle/product/10.2.0/db/OPatch
[oracle@rac2 OPatch]$ ./opatch lsinventory
Invoking OPatch 10.2.0.5.1

Oracle Interim Patch Installer version 10.2.0.5.1
Copyright (c) 2010, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/10.2.0/db
Central Inventory : /u01/app/oracle/oraInventory
   from           : /etc/oraInst.loc
OPatch version    : 10.2.0.5.1
OUI version       : 10.2.0.5.0
OUI location      : /u01/app/oracle/product/10.2.0/db/oui
Log file location : /u01/app/oracle/product/10.2.0/db/cfgtoollogs/opatch/opatch2013-04-30_06-30-11AM.log

Patch history file: /u01/app/oracle/product/10.2.0/db/cfgtoollogs/opatch/opatch_history.txt

Lsinventory Output file location : /u01/app/oracle/product/10.2.0/db/cfgtoollogs/opatch/lsinv/lsinventory2013-04-30_06-30-11AM.txt

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

Oracle Database 10g                                                  10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 4                            10.2.0.5.0
There are 2 products installed in this Oracle Home.


Interim patches (2) :

Patch  12419392     : applied on Sun Apr 28 21:35:38 CST 2013
Unique Patch ID:  13794201
   Created on 29 May 2011, 22:29:59 hrs PST8PDT
   Bugs fixed:
     6402302, 10269717, 10327190, 8865718, 10017048, 9024850, 8394351, 8546356
     9360157, 9770451, 9020537, 9772888, 8664189, 10091698, 12551710, 7519406
     10132870, 8771916, 9109487, 10173237, 10068982, 8350262, 11792865
     11724962, 11725006, 9184754, 8544696, 9320130, 7026523, 8277300, 9726739
     8412426, 12419392, 6651220, 9150282, 9659614, 9949948, 10327179, 8882576
     7612454, 9711859, 9714832, 10248542, 9952230, 9469117, 9952270, 8660422
     10324526, 12419258, 9713537, 10010310, 9390484, 9963497, 12551700
     12551701, 10249537, 12551702, 12551703, 8211733, 12551704, 9548269
     12551705, 12551706, 9337325, 12551707, 7602341, 12551708, 9308296
     10157402, 11737047

Patch  9952245      : applied on Sun Apr 28 06:25:54 CST 2013
Unique Patch ID:  13197883
   Created on 17 Jan 2011, 03:04:34 hrs PST8PDT
   Bugs fixed:
     9952245, 9879181, 9610672, 9872299, 9577921, 8308495, 9103966, 8996060
     6899183, 9261837, 8487143, 9646836



Rac system comprising of multiple nodes
  Local node = rac2
  Remote node = rac1

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

OPatch succeeded.

 

2,使用脚本创建

dd

脚本创建,默认是在集群中所有的节点创建inventory目录。

 
下面是单实例创建的方法:

Steps To Recreate Central Inventory(oraInventory) In RDBMS Homes [ID 556834.1]
Execute runInstaller with -attachHome option for Oracle Home.
% ./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME=“<Oracle_Home_Location>” ORACLE_HOME_NAME=“<Name_Of _Oracle_Home>”
> setup.exe -silent -ignoreSysPrereqs -attachHome ORACLE_HOME=“<Oracle_Home_Location>” ORACLE_HOME_NAME=“<Name_Of _Oracle_Home>”
For Example:ORACLE_HOME=/u01/app/oracle/product/10.2.0.3
ORACLE_HOME_NAME=OraDb10g_home1
% ./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME=“/u01/app/oracle/product/10.2.0.3” ORACLE_HOME_NAME=“OraDb10g_home1”
If you have more than one oracle home you have to repeat STEP 4 for all remaining Oracle Homes making sure to provide unique ORACLE_HOME_NAME’s for each ORACLE_HOME.

本文固定链接: http://www.htz.pw/2013/04/30/inventory%e7%9b%ae%e5%bd%95%e6%89%8b%e5%8a%a8%e5%88%9b%e5%bb%ba.html | 认真就输

该日志由 huangtingzhong 于2013年04月30日发表在 BASIC 分类下, 通告目前不可用,你可以至底部留下评论。
原创文章转载请注明: inventory目录手动创建 | 认真就输
关键字: ,