Linux Oracle 10.2.0.5 版本 opatch lsinventory報錯

rongshiyuan發表於2012-12-25
Linux Oracle 10.2.0.5 版本 opatch lsinventory報錯
1. opatch lsinventory報錯
$ opatch lsinventory
Invoking OPatch 10.2.0.5.1
Oracle Interim Patch Installer version 10.2.0.5.1
Copyright (c) 2010, Oracle Corporation.  All rights reserved.

Oracle Home       : /opt/oracle/product/10gr2
Central Inventory : n/a
   from           :
OPatch version    : 10.2.0.5.1
OUI version       : 10.2.0.5.0
OUI location      : /opt/oracle/product/10gr2/oui
Log file location : n/a
Patch history file: /opt/oracle/product/10gr2/cfgtoollogs/opatch/opatch_history.txt
OPatch cannot find a valid oraInst.loc file to locate Central Inventory.
OPatch failed with error code 104
 
2.此環境下oracle 目錄 是從別的機器tar過來的
 
3.確少/etc/oraInst.loc檔案,新增
4.重建oraInventory目錄
$ cd $ORACLE_HOME/oui/bin
$ pwd
/opt/oracle/product/10gr2/oui/bin
 
執行attachHome.sh
$ ./attachHome.sh
./attachHome.sh: line 5: cd: /bases/oracle/product/10gr2/oui/bin: No such file or directory
Starting Oracle Universal Installer...
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
OiiolLogger.addFileHandler:Error while adding file handler - /opt/oraInventory/logs/AttachHome2012-12-25_09-38-45AM.log
java.io.FileNotFoundException: /opt/oraInventory/logs/AttachHome2012-12-25_09-38-45AM.log (No such file or directory)
'AttachHome' failed.
 
5.檢查 $ORACLE_HOME/oraInst.loc檔案
其中inventory_loc引數與/etc/oraInst.loc檔案,修改保持一致
 
6.再次執行attachHome.sh
$ ./attachHome.sh
Starting Oracle Universal Installer...
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
OiiolLogger.addFileHandler:Error while adding file handler - /opt/oraInventory/logs/AttachHome2012-12-25_10-05-49AM.log
java.io.FileNotFoundException: /opt/oraInventory/logs/AttachHome2012-12-25_10-05-49AM.log (No such file or directory)
'AttachHome' failed.
提示無目錄/opt/oraInventory/logs,建立該目錄,再次執行
$ ./attachHome.sh
Starting Oracle Universal Installer...
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /opt/oraInventory
'AttachHome' was successful.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-751592/,如需轉載,請註明出處,否則將追究法律責任。

相關文章