How to Recreate the OraInventory on UNIX Systems [ID 472854.1]
How to Recreate the OraInventory on UNIX Systems [ID 472854.1]
In this Document
Applies to:
Oracle Server - Enterprise Edition - Version 9.2.0.1 to 10.2.0.1 [Release 9.2 to 10.2]Oracle Fusion Middleware - Version 10.1.2.0.2 to 11.1.2.0.0 [Release AS10gR2 to Oracle11g]
Information in this document applies to any platform.
Checked for Relevance on 24-Aug-2011
Goal
How can I recreate the OraInventory on UNIX systems if it gets corrupted or removed?
Important:
If losing or finding an OraInventory corrupted, the first recommendation is to recover from backup. This document provides an alternative solution based on options with the Oracle Universal Installer (OUI). This has only had limited testing on Oracle Fusion Middleware 10g/11g and Oracle Database Server 10g installations. There may be situations where this may not work and could mean a backup as a best course of action.
Fix
In cases where the OraInventory is missing or otherwise corrupt, recreate the oraInventory directory on UNIX systems using the following steps. In a normal installation, there is a Global Inventory ($ORACLE_BASE/OraInventory) and a Local Inventory ($ORACLE_HOME/inventory).
- Locate the oraInst.loc file, which may be in different locations, depending on your system:
/var/opt/oracle/oraInst.loc file
or
/etc/oraInst.loc - Modify the file oraInst.loc file:
cp /var/opt/oracle/oraInst.loc /var/opt/oracle/oraInst.loc.bak
mkdir /u01/oracle/oraInventory
---file contents---
inventory_loc=/u01/oracle/oraInventory
inst_group=oinstall
---file contents---Important:
Theses example uses a typical directory, considered an $ORACLE_BASE, and a typical UNIX group which installed the Oracle products. Ensure that the correct values are used for your system.
The oraInventory directory is usually a directory under the $ORACLE_BASE. For example, if the $ORACLE_HOME is equal to "/u01/oracle/product/10g", then the OraInventory would normally be "/u01/oracle/OraInventory". - Change the permissions to be appropriate, (using your directory location):
chmod 644 /var/opt/oracle/oraInst.loc - For consistency, copy the file to Oracle home directory, (using your directory location):
cp $ORACLE_HOME/oraInst.loc $ORACLE_HOME/oraInst.loc.bak
cp /var/opt/oracle/oraInst.loc $ORACLE_HOME/oraInst.loc - Run Oracle Universal Installer from your Oracle home as below:
cd $ORACLE_HOME/oui/bin
./runInstaller -silent -attachHome ORACLE_HOME="/u01/oracle/product/10.1.2" ORACLE_HOME_NAME="Ora10gHome"Note: The -attachHome is a newer parameter introduced in OUI 10.1, but only officially documented/supported using OUI 10.2 and higher. As noted above, this document outlines the limited testing of this with the OUI 10.1 version.
In the above example use your installation's specific directory location and Oracle home name used during installation. See the following if this is not known:
Note 444608.1 What is ORACLE_HOME_NAME? - Check the log to ensure the AttachHome action was successful:
/logs/AttachHome .log - Check the inventory output is correct for your Oracle home:
$ORACLE_HOME/OPatch/opatch lsinventory -detail - If the table at the beginning of the output is showing the proper directories, and the Oracle home components are properly reflected in the details, then the Global Inventory (in $ORACLE_BASE) has been successfully created from the Local Inventory, (in $ORACLE_HOME). At this time, you may patch and maintain your Oracle home, as normal.
References
NOTE:418537.1 - Significance of oraInst.loc When Installing Oracle Products and Applying PatchesNOTE:444608.1 - What is ORACLE_HOME_NAME ?
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-751598/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How To Recreate A Database Using TTS (Transportable TableSpace) [ID 733824.1]DatabaseTTS
- Exporting on Unix Systems [ID 1018477.6]Export
- Steps To Recreate Central Inventory(oraInventory) In RDBMS Homes_556834.1AI
- How to enable Large Page Feature on AIX-Based Systems [ID 372157.1]AI
- How to Move/Recreate GI Management Repository to Different Shared Storage
- How To Drop, Create And Recreate DB Control In A 10g DatabaseDatabase
- How To Change UNIX Process Resource LimitsMIT
- ORACLE EM recreateOracle
- Oracle Database on Unix AIX,HP-UX,Linux,Mac OS X,Solaris,Tru64 Unix Operating Systems Installation aOracleDatabaseAILinuxMac
- Steps to Recreate ASM Diskgroups (文件 ID 268481.1)ASM
- 重建oraInventory目錄AI
- Deploy an Oracle include oraInventoryOracleAI
- Oracle Linux and External Storage Systems (Doc ID 753050.1)OracleLinux
- 如何將UTC時間轉換為Unix時間戳(How to convert UTC time to unix timestamp)時間戳
- How To Kill Good IdeasGoIdea
- 「Wide & Deep Learning for Recommender Systems」- 論文摘要IDE
- no- valid devices were found on which to create new file systemsdev
- SMobile Systems:20% Android應用暴露私人資料Android
- oracle 11g em recreateOracle
- unixODBC: How to Generate ODBC Driver Shared Library libsqora on Linux/UnixLinux
- 從Oracle oraInventory中de-register 或 detach Oracle Home,或重新生成oraInventoryOracleAI
- How to compile Invalid Object?CompileObject
- Top Ten Performance Mistakes Found in Oracle Systems. (文件 ID 858539.1)ORMOracle
- How to Prepare Storage for ASM (Doc ID 452924.1)ASM
- How to Troubleshoot Grid Infrastructure Startup IssuesASTStruct
- How to find the UDID for an iPhone/iPod touchiPhone
- How to Brainstorm New IdeasAIORMIdea
- How to tacktrace In Android for Java codeAndroidJava
- UNIX檔案的SUID/SGID(轉)UI
- CS 551 Systems Programming
- How to resolve : Authentication denied: Boot identity not validbootIDE
- how to use oidpasswd to admin your AS/OID account
- DROP AND RECREATE ONLINE REDOLOG FILES
- 【MOS】Top Ten Performance Mistakes Found in Oracle Systems. (文件 ID 858539.1)ORMOracle
- Central Inventory (oraInventory) - inventory.xml 4AIXML
- Central Inventory (oraInventory) - inventory.xml 3AIXML
- Central Inventory (oraInventory) - inventory.xml 2AIXML
- Central Inventory (oraInventory) - inventory.xml 1AIXML