Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

Re-create oraInventory with Oracle Universal Installer

Expert Oracle Database Tips by Donald BurlesonJanuary 24, 2015

Question: I lost my oraInventory files. How can I re-create the inventory for my Oracle installation?

Answer:  Oracle Universal Installer enables you to set up the Central Inventory or register an existing oracle_home with the Central Inventory in case of inventory corruption or loss.

You need to execute the command with the -attachHome flag.

With Oracle Universal Installer (OUI), you can set the Central Inventory up on a clean host.  You can also register an existing Oracle home with the Central Inventory when it becomes corrupted or lost.

OUI will create the Central Inventory if it does not already exist.  It will put it in the location specified by the oraInst.loc file.

RAC

 The syntax for a RAC environments is as follows:

./runInstaller -silent -attachHome oracle_home="<oracle_home_location>"
"cluster_nodes={<node1, node2>
}" local_node="<node_name>"

The following session variables are also available:

  • oracle_home
  •  cluster_nodes
  • remote_nodes
  • local_node

 If the cluster_nodes session variable is not passed in a cluster environment, OUI will take it from the following file:

 $oracle_home/inventory/ContentsXML/oraclehomeproperties.xml

 If the local_node session variable is not passed, OUI takes it from the following file:

 $oracle_home/inventory/ContentsXML/oraclehomeproperties.xml

If an entry is not found there, it takes it from the Oracle Clusterware stack.

 If it is not able to find it in the stack, the first node of the cluster_nodes is taken as the local_node. The remote_nodes variable can be passed to specify the list of remote nodes.

To set the Central Inventory up in the local node, the -local flag will be passed, and the remote_nodes variable will be left empty. The Oracle standard syntax is:

./runInstaller -silent -attachHome -invPtrLoc ./oraInst.loc
oracle_home="
<oracle_home_location>" "remote_nodes={}" -local

Using the -local flag, causes the action to be performed on the local node without regard to the cluster nodes specified.

Non-RAC

For a non-RAC setup, it is not necessary to pass the local_node variable, and the cluster_nodes variable remains empty.

The Oracle standard syntax for non-RAC is:

./runInstaller -silent -attachHome -invPtrLoc ./oraInst.loc
oracle_home="<oracle_home_location>
" "cluster_nodes={}"

Again, the -local flag can be used to attach the local Oracle home. The -cfs flag should be used with a shared Oracle home with the -local flag. This way the local node information will not be populated inside a shared Oracle home.

 After the Oracle home has been attached, the success of the operation can be verified by verifying the contents of the log file present in the <central_inventory>/logs directory.

It is also possible to view the contents of the inventory.xml file to verify the Oracle home is registered.  The inventory.xml file can be found in the <central_inventory>/contentsXML directory.

 
Get the Complete
Oracle SQL Tuning Information 

The landmark book "Advanced Oracle SQL Tuning  The Definitive Reference"  is filled with valuable information on Oracle SQL Tuning. This book includes scripts and tools to hypercharge Oracle 11g performance and you can buy it for 30% off directly from the publisher.

 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster