oracle INVENTORY 詳解
inventory是oracle安裝工具OUI用來管理oracle安裝目錄的。inventory裡註冊了某個ORACLE_HOME下安裝的資料庫的元件及其版本,存放的是oracle軟體安裝的目錄資訊。oracle資料庫軟體的升級、增刪元件,都需要使用inventory。oracle OUI會建立一個有oraInst.ora檔案指定的全域性inventory。
oraInst.ora檔案所在的目錄:
AIX 或 linux作業系統平臺:/etc/oraInst.ora
HP UNIX或Solaris作業系統平臺/var/opt/oracle/oraInst.loc
oraInst.ora檔案內容:
[oracle@ora11g ~]$ cat /etc/oraInst.loc
inventory_loc=/u01/app/oraInventory------oraInvetory所在目錄
inst_group=oinstall-----OUI安裝ORACLE的作業系統組
模擬手動建立全域性inventory
模擬資料庫的版本
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
刪除當前的oraInventory
[oracle@ora11g app]$ mv oraInventory/ /tmp
檢視當前系統狀態
[oracle@ora11g OPatch]$ ./opatch lsinventory
Invoking OPatch 11.2.0.1.7
Oracle Interim Patch Installer version 11.2.0.1.7
Copyright (c) 2011, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0/dbhome_1
Central Inventory : /u01/app/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.2.0.1.7
OUI version : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2013-08-05_06-18-47AM.log
OPatch failed to locate Central Inventory.
Possible causes are:
The Central Inventory is corrupted
The oraInst.loc file specified is not valid.
LsInventorySession failed: OPatch failed to locate Central Inventory.
Possible causes are:
The Central Inventory is corrupted
The oraInst.loc file specified is not valid.
OPatch failed with error code 73
生成全域性inventory
[oracle@ora11g bin]$ ./attachHome.sh
oraInst.ora檔案所在的目錄:
AIX 或 linux作業系統平臺:/etc/oraInst.ora
HP UNIX或Solaris作業系統平臺/var/opt/oracle/oraInst.loc
oraInst.ora檔案內容:
[oracle@ora11g ~]$ cat /etc/oraInst.loc
inventory_loc=/u01/app/oraInventory------oraInvetory所在目錄
inst_group=oinstall-----OUI安裝ORACLE的作業系統組
模擬手動建立全域性inventory
模擬資料庫的版本
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
刪除當前的oraInventory
[oracle@ora11g app]$ mv oraInventory/ /tmp
檢視當前系統狀態
[oracle@ora11g OPatch]$ ./opatch lsinventory
Invoking OPatch 11.2.0.1.7
Oracle Interim Patch Installer version 11.2.0.1.7
Copyright (c) 2011, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0/dbhome_1
Central Inventory : /u01/app/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.2.0.1.7
OUI version : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2013-08-05_06-18-47AM.log
OPatch failed to locate Central Inventory.
Possible causes are:
The Central Inventory is corrupted
The oraInst.loc file specified is not valid.
LsInventorySession failed: OPatch failed to locate Central Inventory.
Possible causes are:
The Central Inventory is corrupted
The oraInst.loc file specified is not valid.
OPatch failed with error code 73
生成全域性inventory
[oracle@ora11g bin]$ ./attachHome.sh
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/223653/viewspace-2128117/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle的Central Inventory和Local inventory詳解Oracle
- About the Oracle Universal Installer Inventory!Oracle
- Strategies for a Corrupted Oracle Central Inventory [ID 414600.1]Oracle
- Central Inventory (oraInventory) - inventory.xml 4AIXML
- Central Inventory (oraInventory) - inventory.xml 3AIXML
- Central Inventory (oraInventory) - inventory.xml 2AIXML
- Central Inventory (oraInventory) - inventory.xml 1AIXML
- oracle dump詳解Oracle
- oracle recyclebin詳解Oracle
- ORACLE -詳解SCNOracle
- Oracle SCN詳解Oracle
- Oracle checkpoint詳解Oracle
- Oracle Hints詳解Oracle
- oracle 序列 詳解Oracle
- oracle statspack詳解Oracle
- Oracle ASM 詳解OracleASM
- oracle 序列詳解Oracle
- oracle statspack 詳解Oracle
- Oracle bootstrap$ 詳解Oracleboot
- Oracle PGA詳解Oracle
- oracle Dataguard 詳解Oracle
- Oracle Hint 詳解Oracle
- oracle之 Oracle LOB 詳解Oracle
- ORACLE的HINT詳解Oracle
- oracle rowid詳解Oracle
- Oracle dblink詳解Oracle
- ORACLE DBTime詳解Oracle
- oracle v$lock詳解Oracle
- Oracle練習詳解Oracle
- oracle alter table詳解Oracle
- Oracle dual表 詳解Oracle
- Oracle閃回詳解Oracle
- Oracle undo管理詳解Oracle
- oracle 約束詳解Oracle
- oracle檢視詳解Oracle
- Oracle Profile 使用詳解Oracle
- Oracle等待事件詳解Oracle事件
- Oracle checkpoint詳解一Oracle