How To Create A Clean OraInventory in Release 12 (Doc ID 834894.1)
How To Create A Clean OraInventory in Release 12 (Doc ID 834894.1)
1) To Bottom
In this Document
Goal
Solution
APPLIES TO:
Oracle Applications Technology Stack - Version 12.0.6 to 12.1.3 [Release 12.0 to 12.1]
Information in this document applies to any platform.
GOAL
This document explains how to recreate the oraInventory in all Oracle Homes (10.1.2, 10.1.3 and DB) in a R12
environment.
SOLUTION
1. Backup the current oraInventory directory and recreate a new empty directory as the example:
vi /etc/oraInst.loc
mkdir /d01/oraInventory_new
Login as applmgr user and go to the $INST_TOP/ora/10.1.3 and source the enviornment:
cd $INST_TOP/ora/10.1.3
. ./<SID>_<hostname>.env
Go to the $ORACLE_HOME:
cd $ORACLE_HOME
Edit the oraInst.loc and point it to the same location ad done in step 1:
inventory_loc=/d01/oraInventory_new
cd $ORACLE_HOME/appsutil/clone
./ouicli.pl
Verify if the 10.1.3 is added to the new oraInventory directory:
cd /d01/oraInventory_new/ContentsXML
cat inventory.xml
Verify the oraInventory has the information about the 10.1.3 Oracle Home, and all previous patches are present (if not
reinstall any patches as required)
export PATH=$ORACLE_HOME/OPatch:$PATH
opatch lsinventory -detail
cd $INST_TOP/ora/10.1.2
. ./<SID>_<hostname>.env
cd $ORACLE_HOME
Edit the oraInst.loc and point it to the same location ad done in step 1:
inventory_loc=/d01/oraInventory_new
Add the 10.1.2 Oracle Home to the new oraInventory location:
cd $ORACLE_HOME/appsutil/clone
./ouicli.pl
cd /d01/oraInventory_new/ContentsXML
cat inventory.xml
Verify the oraInventory has the information about the 10.1.2 Oracle Home:
export PATH=$ORACLE_HOME/OPatch:$PATH
opatch lsinventory -detail
Login as oracle user and go to the $DB ORACLE_HOME and source the enviornment:
cd $ORACLE_HOME
. ./<SID>_<hostname>.env
Go to the $ORACLE_HOME:
cd $ORACLE_HOME
Edit the oraInst.loc and point it to the same location ad done in step 1:
inventory_loc=/d01/oraInventory_new
cd $ORACLE_HOME/appsutil/clone
./ouicli.pl
cd /d01/oraInventory_new/ContentsXML
cat inventory.xml
Verify the oraInventory has the information about the DB Oracle Home:
export PATH=$ORACLE_HOME/OPatch:$PATH
opatch lsinventory -detail
Since ouicli.pl is created and used during database cloning process, for new Oracle Homes, there is a workaround to
create it, as follow:
$ORACLE_HOME/appsutil/template/adouidb.pl
to
$ORACLE_HOME/appsutil/clone/ouicli.pl
- Replace the following lines in the new ouicli.pl created with the values from the database context xml file:
# context args
my $appctx = '%s_contextfile%';
my $appctxname = '%s_contextname%';
e.g.
# context args
my $appctx = '/.../oracle/R121PROD/db/tech_st/11.2.0/appsutil/VIS_emeaicm04.xml';
my $appctxname = 'VIS_emeaicm04';
Please be aware :
For a RAC-enabled database the CRS $ORACLE_HOME needs to be registered in the new oraInventory. This must be
repeated on all cluster nodes.