0% found this document useful (0 votes)
638 views

How To Create A Clean OraInventory in Release 12 (Doc ID 834894.1)

This document provides steps to recreate the oraInventory directory in all Oracle Homes (10.1.2, 10.1.3, and DB) in a Release 12 environment. It involves backing up the current oraInventory, creating a new empty directory, and adding each Oracle Home to the new oraInventory location by running a cloning utility and validating the registration.

Uploaded by

Nawab Sharief
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
638 views

How To Create A Clean OraInventory in Release 12 (Doc ID 834894.1)

This document provides steps to recreate the oraInventory directory in all Oracle Homes (10.1.2, 10.1.3, and DB) in a Release 12 environment. It involves backing up the current oraInventory, creating a new empty directory, and adding each Oracle Home to the new oraInventory location by running a cloning utility and validating the registration.

Uploaded by

Nawab Sharief
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

How to Create a Clean oraInventory in Release 12 (Doc ID 834894.

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:

Edit the oraInst.loc file:

vi /etc/oraInst.loc

Change the inventory_loc to a new location:


inventory_loc=/d01/oraInventory_new

Create the new directory:

mkdir /d01/oraInventory_new

Give permissions to the new directory:

chmod -R 777 /d01/oraInventory_new

2. Add the 10.1.3 Oracle Home to the new created oraInventory:

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

Add the 10.1.3 Oracle Home to the new oraInventory location:

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

If it's not added, check the /d01/oraInventory_new/logs file.

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

3. Add the 10.1.2 Oracle Home to the new created oraInventory:

Login as applmgr and go to the $INST_TOP/ora/10.1.2 and source the enviornment:

cd $INST_TOP/ora/10.1.2
. ./<SID>_<hostname>.env

Stop the Database and 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
Add the 10.1.2 Oracle Home to the new oraInventory location:

cd $ORACLE_HOME/appsutil/clone
./ouicli.pl

Verify if the 10.1.2 is added to the new oraInventory directory:

cd /d01/oraInventory_new/ContentsXML

cat inventory.xml

If it's not added, check the /d01/oraInventory_new/logs file.

Verify the oraInventory has the information about the 10.1.2 Oracle Home:

export PATH=$ORACLE_HOME/OPatch:$PATH
opatch lsinventory -detail

4. Add the DB Oracle Home to the new created oraInventory:

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

Add the DB Oracle Home to the new oraInventory location:

cd $ORACLE_HOME/appsutil/clone
./ouicli.pl

Verify if the DB Oracle Home is added to the new oraInventory directory:

cd /d01/oraInventory_new/ContentsXML

cat inventory.xml

If it's not added, check the /d01/oraInventory_new/logs file.

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:

- Copy the file :

$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';

5. The new oraInventory is complete.

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.

You might also like