Tuesday, March 8, 2016

Create a Clean oraInventory in Release 12.2

Print this post
1. Clean the current oraInventory location:

Check the oraInventory location from the /etc/oraInst.loc file
Backup and clean that directory
Customer can write down the name of all entries from the old inventory from /ContentsXML/inventory.xml to use during the creation of the new OHs

2. Add the RDBMS Oracle Home first to the new oraInventory:

Go to $ORACLE_HOME
source the environment file .env
cd $ORACLE_HOME/oui/bin
Run the following command to add the RDBMS OH to oraInventory:
./runInstaller -attachhome ORACLE_HOME= ORACLE_HOME_NAME=''
Example:
./runInstaller.sh -attachhome ORACLE_HOME=/u01/app/11.2.0 ORACLE_HOME_NAME='12_2_DB'
Check the inventory.xml under /ContextXML directory and ensure the new entry is added.


3. Add the 10.1.2 OH from RUN filesystem to the new oraInventory:

Source the Run FS environment file
cd $ORACLE_HOME/oui/bin
Run the following command to add the 10.1.2 OH to the oraInventory:
./runInstaller -attachhome ORACLE_HOME= ORACLE_HOME_NAME=''
Example:
./runInstaller.sh -attachhome ORACLE_HOME=/u01/app/fs1/EBSapps/10.1.2 ORACLE_HOME_NAME='10_1_2_fs1_OH'
Check the inventory.xml under /ContextXML directory and ensure the new entry is added.

4. Add the FMW OHs from RUN filesystem to the new oraInventory:

4.1. /oracle_common
cd /oracle_common
export ORACLE_HOME=PWD
cd $ORACLE_HOME/oui/bin
Run the following command to add the OH to the oraInventory:
./runInstaller -attachhome ORACLE_HOME= ORACLE_HOME_NAME=''
Example:
./runInstaller.sh -attachhome ORACLE_HOME=/u01/app/fs1/FMW_Home/oracle_common ORACLE_HOME_NAME='FMW_oracle_common_fs1_OH'
Check the inventory.xml under /ContextXML directory and ensure the new entry is added.

4.2. /webtier
cd /webtier
export ORACLE_HOME=PWD
cd $ORACLE_HOME/oui/bin
Run the following command to add the OH to the oraInventory:
./runInstaller -attachhome ORACLE_HOME= ORACLE_HOME_NAME=''
Example:
./runInstaller.sh -attachhome ORACLE_HOME=/u01/app/fs1/FMW_Home/webtier ORACLE_HOME_NAME='FMW_webtier_fs1_OH'
Check the inventory.xml under /ContextXML directory and ensure the new entry is added.


4.3. /Oracle_EBS-app1
cd /Oracle_EBS-app1
export ORACLE_HOME=PWD
cd $ORACLE_HOME/oui/bin
Run the following command to add the OH to the oraInventory:
./runInstaller -attachhome ORACLE_HOME= ORACLE_HOME_NAME=''
Example:
./runInstaller.sh -attachhome ORACLE_HOME=/u01/app/fs1/FMW_Home/Oracle_EBS-app1 ORACLE_HOME_NAME='FMW_Oracle_EBS_app1_fs1_OH'
Check the inventory.xml under /ContextXML directory and ensure the new entry is added.


5. Add the 10.1.2 OH from PATCH filesystem to the new oraInventory

Source the PATCH FS environment file
cd $ORACLE_HOME/oui/bin
Run the following command to add the 10.1.2 OH to the oraInventory:
./runInstaller -attachhome ORACLE_HOME= ORACLE_HOME_NAME=''
Example:
./runInstaller.sh -attachhome ORACLE_HOME=/u01/app/fs1/EBSapps/10.1.2 ORACLE_HOME_NAME='10_1_2_fs1_OH'
Check the inventory.xml under /ContextXML directory and ensure the new entry is added.



6. Add the FMW OHs from PATCH filesystem to the new oraInventory:

6.1. /oracle_common
cd /oracle_common
export ORACLE_HOME=PWD
cd $ORACLE_HOME/oui/bin
Run the following command to add the OH to the oraInventory:
./runInstaller -attachhome ORACLE_HOME= ORACLE_HOME_NAME=''
Example:
./runInstaller.sh -attachhome ORACLE_HOME=/u01/app/fs2/FMW_Home/oracle_common ORACLE_HOME_NAME='FMW_oracle_common_fs2_OH'
Check the inventory.xml under /ContextXML directory and ensure the new entry is added.

6.2. /webtier
cd /webtier
export ORACLE_HOME=PWD
cd $ORACLE_HOME/oui/bin
Run the following command to add the OH to the oraInventory:
./runInstaller -attachhome ORACLE_HOME= ORACLE_HOME_NAME=''
Example:
./runInstaller.sh -attachhome ORACLE_HOME=/u01/app/fs2/FMW_Home/webtier ORACLE_HOME_NAME='FMW_webtier_fs2_OH'
Check the inventory.xml under /ContextXML directory and ensure the new entry is added.


6.3. /Oracle_EBS-app1

cd /Oracle_EBS-app1
export ORACLE_HOME=PWD
cd $ORACLE_HOME/oui/bin
Run the following command to add the OH to the oraInventory:
./runInstaller -attachhome ORACLE_HOME= ORACLE_HOME_NAME=''
Example:
./runInstaller.sh -attachhome ORACLE_HOME=/u01/app/fs2/FMW_Home/Oracle_EBS-app1 ORACLE_HOME_NAME='FMW_Oracle_EBS_app1_fs2_OH'
Check the inventory.xml under /ContextXML directory and ensure the new entry is added.

5. The new oraInventory is complete.

No comments: