opatch inventory 查詢時報錯"LsInventory: OPatch Exception while accessing O2O"
在一次10.2.0.4升級到11.2.0.3.5升級專案中,遇到一個小問題(在查詢opatch lsinventory 由於存在two oraInst.loc files 導致)
[oracle@tqd1a] /oracle/app/product/10.2.0/database/OPatch> ./opatch lsinventory
Oracle Interim Patch Installer version 1.0.0.0.57
Copyright (c) 2007 Oracle Corporation. All Rights Reserved..
We recommend you refer to the OPatch documentation under
OPatch/docs for usage reference. We also recommend using
the latest OPatch version. For the latest OPatch version
and other support related issues, please refer to document
293369.1 which is viewable from metalink.oracle.com
Oracle Home : /oracle/app/product/10.2.0/database
Oracle Home Inventory : /oracle/app/product/10.2.0/database/inventory
Central Inventory : /oracle/app/oraInventory
from : /etc/oraInst.loc
OUI location : /oracle/app/product/10.2.0/database/oui
OUI shared library : /oracle/app/product/10.2.0/database/oui/lib/aix/liboraInstaller.so
Java location : /oracle/app/product/10.2.0/database/jre/1.4.2/bin/java
Log file location : /oracle/app/product/10.2.0/database/.patch_storage/
Creating log file "/oracle/app/product/10.2.0/database/.patch_storage/LsInventory__12-14-2014_20-05-42.log"
Result:
LsInventory: OPatch Exception while accessing O2O
OPATCH_JAVA_ERROR : An exception of type "OPatchException" has occurred:
OPatch Exception:
OUI found no such ORACLE_HOME set in the environment
Can not get details for given Oracle Home
An exception occurs
null
There is no Interim Patch
OPATCH_JAVA_ERROR : An exception of type "OPatchException" has occurred:
Can not get a list of inventory on this home.
Metalink如是說:
Applies to:
Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 10.2.0.3
This problem can occur on any platform.
Symptoms
Running the command "opatch lsinventory" gives following error :-
LsInventory: OPatch Exception while accessing O2O
OPATCH_JAVA_ERROR : An exception of type "OPatchException" has occurred:
OPatch Exception:
OUI found no such ORACLE_HOME set in the environment
Can not get details for given Oracle Home
An exception occurs
null
There is no Interim Patch
OPATCH_JAVA_ERROR : An exception of type "OPatchException" has occurred:
Can not get a list of inventory on this home.
Cause
Trying to use a different name for oraInst.loc file.
opatch can understand only the name oraInst.loc for inventory pointer location file.
So it will not recognize other names for example oraInst.loc_oracle9i
In the above scenario there were two oraInst.loc files
1.oraInst.loc
2.oraInst.loc_oracle9i
Tried running opatch lsinventory using inventory pointer file oraInst.loc_oracle9i, but it caused the error since opatch can understand oraInst.loc only.
Solution
(1)As two files with same name can not reside in a single directory, keep different oraInst.loc files in different directories and maintain a record of it.
(2)Change inventory pointer location files name to oraInst.loc
% mv oraInst.loc_oracle9i oraInst.loc
(3) Set the ORACLE_HOME
(4)Now run opatch lsinventory -invPtrLoc with correct file name.
%opatch lsinventory -invPtrLoc
最終解決方案:
[oracle@tqd1b] /oracle/app/oraInventory/ContentsXML> vi inventory.xml
"inventory.xml" 17 lines, 505 characters
<!-- Copyright (c) 2002 Oracle Corporation. All rights Reserved -->
<!-- Do not modify the contents of this file by hand. -->
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29446986/viewspace-1367682/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- OPatch cannot find a valid oraInst.loc file to locate Central InventoryAI
- weblogic報錯: OPatch failed with error code 73WebAIError
- $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithOracleAI
- Opatch - Where Can I Find the Latest Version of Opatch?
- Windows平臺下opatch apply報錯:OUI-67073WindowsAPPUI
- OPatch install "Missing command :fuser"
- OPatch failed with error code 73AIError
- 【ERROR】OPatch failed with error code 73ErrorAI
- Oracle的OPatch補丁更新Oracle
- Oracle更新Opatch故障處理Oracle
- ORACLE 12C opatch fuser與ChecksystemCommandAvailable failedOracleAI
- navicat 新建查詢報錯
- 檢視查詢報錯
- elasticSearch head 查詢報錯Elasticsearch
- Sqlserver使用遊標迴圈查詢所有sqlserver error日誌帶有Exception的報錯SQLServerErrorException
- MySQL查詢取別名報錯MySql
- 使用URLClassLoader報錯not class found exceptionException
- GI PSU滾動方式應用GI HOME和DB HOME(opatch auto together)
- ORACLE opatch 打補丁fuser command output for /u01/.../crsctl.bin is FailureOracleAI
- 在KYLIN中執行查詢報錯
- count函式與order by子句一起查詢時報錯處理函式
- ef8 Contains 查詢條件 報錯 $ 附近錯誤AI
- Drozer 查詢可被其他應用讀取 / 寫入的檔案時,報錯
- [重慶思莊每日技術分享]-$ORACLE_HOME/OPatch/ocm/bin/emocmrsp 不再有了Oracle
- Laravel 中 sql 查詢 使用 group by 報錯問題。LaravelSQL
- Java報錯:Exception in thread "main" java.lang.UnsupportedClassVersionErrorJavaExceptionthreadAIError
- An error occurred while updating the entries. See the inner exception for details.ErrorWhileExceptionAI
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- 使用linq查詢報錯English Message : Join a needs to be the same as OrderBy it
- 關於oracle opatch打補丁是 不能用grid使用者直接mvOPatch folder的問題Oracle
- 執行composer install報錯:Symfony\Component\Process\Exception\ProcessTimedOutExceptionException
- RocketMQ報錯:rocketmq.remoting.exception.RemotingTooMuchRequestException: sendDefaultImpl call timeoutMQREMExceptionOOM
- 日誌查詢錯誤
- laravel模型查詢的時候報 Array to string conversionLaravel模型
- Accessing Internal Members in the UNO FrameworkFramework
- 解決jpa查詢時,Unable to locate Attribute with the the given name錯誤
- 打補丁時重建Inventory目錄
- PVE安裝Windows 95報錯 while initializing device IOSWindowsWhiledeviOS
- GI PSU打補丁之opatch auto 自動方式分別打GI_HOME和ORACLE_HOMEOracle