opatch報錯:The oraInst.loc file specified is not valid
1. opatch命令檢視補丁時報錯:
[oracle@test oraInventory]$ opatch lsinventory
Invoking OPatch 10.2.0.1.0
Oracle interim Patch Installer version 10.2.0.1.0
Copyright (c) 2005, Oracle Corporation. All rights reserved..
Oracle Home : /app/oracle/product/10.2.0/db_1
Central Inventory : /oracle/oraInventory
from : /app/oracle/product/10.2.0/db_1/oraInst.loc
OPatch version : 10.2.0.1.0
OUI version : 10.2.0.1.0
OUI location : /app/oracle/product/10.2.0/db_1/oui
Log file location : /app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch-2016_Jan_25_16-20-04-CST_Mon.log
LsInventory Session failed: OPatch failed to locate Central Inventory.
Possible causes are:
The Central Inventory is corrupted
The oraInst.loc file specified is not valid.
2. 可能資料庫ORACLE_HOME是遷移過來的,改為正確的目錄&組
$ vi /app/oracle/product/10.2.0/db_1/oraInst.loc
inventory_loc=/app/oracle/oraInventory
inst_group=dba
3. 修改正確後opatch命令執行還是報錯:
[oracle@test ContentsXML]$ opatch lsinventory
Invoking OPatch 10.2.0.1.0
Oracle interim Patch Installer version 10.2.0.1.0
Copyright (c) 2005, Oracle Corporation. All rights reserved..
Oracle Home : /app/oracle/product/10.2.0/db_1
Central Inventory : /app/oracle/oraInventory
from : /app/oracle/product/10.2.0/db_1/oraInst.loc
OPatch version : 10.2.0.1.0
OUI version : 10.2.0.1.0
OUI location : /app/oracle/product/10.2.0/db_1/oui
Log file location : /app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch-2016_Jan_25_16-42-19-CST_Mon.log
OPatch failed to lock Central Inventory using /app/oracle/product/10.2.0/db_1/oraInst.loc, now will try again using /etc/oraInst.loc
List of Homes on this system:
Home name= OraClient11g_home1, Location= "/data/oracle/product/11.2.0/client_1"
Inventory load failed... OPatch cannot load inventory for the given Oracle Home.
Possible causes are:
Oracle Home dir. path does not exist in Central Inventory
Oracle Home is a symbolic link
Oracle Home inventory is corrupted
LsInventory Session failed: OracleHomeInventory::load() gets null oracleHomeInfo
--------------------------------------------------------------------------------
The following warnings has happened during OPatch execution:
1) OUI-67105:OPatch failed to lock Central Inventory using /app/oracle/product/10.2.0/db_1/oraInst.loc, now will try again using /etc/oraInst.loc
--------------------------------------------------------------------------------
OPatch failed with error code 72
4. ORACLE_HOME不正確,修改XML配置
$ vi /app/oracle/oraInventory/ContentsXML/inventory.xml
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2013, Oracle and/or its affiliates.
All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
<SAVED_WITH>11.2.0.4.0</SAVED_WITH>
<MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OraClient11g_home1" LOC="/data/oracle/product/11.2.0/client_1" TYPE="O" IDX="1"/>
<HOME NAME="OraClient11g_home2" LOC="/app/oracle/product/10.2.0/db_1" TYPE="O" IDX="2"/>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>
5.修改這兩個檔案後,opatch正常:
[oracle@test oraInventory]$ opatch lsinventory
Invoking OPatch 10.2.0.1.0
Oracle interim Patch Installer version 10.2.0.1.0
Copyright (c) 2005, Oracle Corporation. All rights reserved..
Oracle Home : /app/oracle/product/10.2.0/db_1
Central Inventory : /oracle/oraInventory
from : /app/oracle/product/10.2.0/db_1/oraInst.loc
OPatch version : 10.2.0.1.0
OUI version : 10.2.0.1.0
OUI location : /app/oracle/product/10.2.0/db_1/oui
Log file location : /app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch-2016_Jan_25_16-20-04-CST_Mon.log
LsInventory Session failed: OPatch failed to locate Central Inventory.
Possible causes are:
The Central Inventory is corrupted
The oraInst.loc file specified is not valid.
2. 可能資料庫ORACLE_HOME是遷移過來的,改為正確的目錄&組
$ vi /app/oracle/product/10.2.0/db_1/oraInst.loc
inventory_loc=/app/oracle/oraInventory
inst_group=dba
3. 修改正確後opatch命令執行還是報錯:
[oracle@test ContentsXML]$ opatch lsinventory
Invoking OPatch 10.2.0.1.0
Oracle interim Patch Installer version 10.2.0.1.0
Copyright (c) 2005, Oracle Corporation. All rights reserved..
Oracle Home : /app/oracle/product/10.2.0/db_1
Central Inventory : /app/oracle/oraInventory
from : /app/oracle/product/10.2.0/db_1/oraInst.loc
OPatch version : 10.2.0.1.0
OUI version : 10.2.0.1.0
OUI location : /app/oracle/product/10.2.0/db_1/oui
Log file location : /app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch-2016_Jan_25_16-42-19-CST_Mon.log
OPatch failed to lock Central Inventory using /app/oracle/product/10.2.0/db_1/oraInst.loc, now will try again using /etc/oraInst.loc
List of Homes on this system:
Home name= OraClient11g_home1, Location= "/data/oracle/product/11.2.0/client_1"
Inventory load failed... OPatch cannot load inventory for the given Oracle Home.
Possible causes are:
Oracle Home dir. path does not exist in Central Inventory
Oracle Home is a symbolic link
Oracle Home inventory is corrupted
LsInventory Session failed: OracleHomeInventory::load() gets null oracleHomeInfo
--------------------------------------------------------------------------------
The following warnings has happened during OPatch execution:
1) OUI-67105:OPatch failed to lock Central Inventory using /app/oracle/product/10.2.0/db_1/oraInst.loc, now will try again using /etc/oraInst.loc
--------------------------------------------------------------------------------
OPatch failed with error code 72
4. ORACLE_HOME不正確,修改XML配置
$ vi /app/oracle/oraInventory/ContentsXML/inventory.xml
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2013, Oracle and/or its affiliates.
All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
<SAVED_WITH>11.2.0.4.0</SAVED_WITH>
<MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OraClient11g_home1" LOC="/data/oracle/product/11.2.0/client_1" TYPE="O" IDX="1"/>
<HOME NAME="OraClient11g_home2" LOC="/app/oracle/product/10.2.0/db_1" TYPE="O" IDX="2"/>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>
5.修改這兩個檔案後,opatch正常:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27126919/viewspace-1982073/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- OPatch cannot find a valid oraInst.loc file to locate Central InventoryAI
- 頁面報錯 No input file specified
- 記:痛苦的排錯之” No input file specified.“
- No input file specified.
- weblogic報錯: OPatch failed with error code 73WebAIError
- apache PHP 隱藏 index.php 報錯 No input file specified. 解決辦法ApachePHPIndex
- PbootCMS 網站轉移後無法開啟報錯提示“No input file specified”怎麼辦boot網站
- Windows平臺下opatch apply報錯:OUI-67073WindowsAPPUI
- 解決 PbootCMS 網站轉移後無法開啟報錯提示“No input file specified”的問題boot網站
- scp 報錯 not a regular file
- no input file specified 三種解決方法
- 報錯“Please indicate a valid Swagger or OpenAPI version field”SwaggerAPI
- Web 伺服器顯示 no input file specifiedWeb伺服器
- 專案遷移 寶塔 No input file specified
- 使用url()後出現No input file specified.
- apache 與 Nginx 隱藏 index.php 報錯 No input file specified. 解決辦法 設定偽靜態ApacheNginxIndexPHP
- querydsl報錯: Attempt to recreate a file for type
- 2.2. 第一個應用,遇到 no input file specified
- RealmBrowser 開啟提示:please enter a valid encryption key for this realm file
- 執行遷移檔案報錯 1071 Specified key was too long.
- React Native 報錯 'config.h' file not foundReact Native
- 執行gedit報No protocol specifiedProtocol
- $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithOracleAI
- brew 報錯 error: Not a valid ref: refs/remotes/origin/master 的解決方法ErrorREMAST
- ssh-add 報錯:Error connecting to agent No such file or directoryError
- go tool compile 報錯 could not import sync (file not found)GoCompileImport
- Opatch - Where Can I Find the Latest Version of Opatch?
- 呼叫torchtext報錯OSError: libtorch_cpu.so: cannot open shared object file: No such file or directoryErrorObject
- 已解決 phpstudy切換nts模式出現的No input file specifiedPHP模式
- 初始配置:IntelliJ Android無法執行專案並報錯Error: Module not specifiedIntelliJAndroidError
- pytest報錯Hint: make sure your test modules/packages have valid Python names.PackagePython
- oracle 匯入報錯:field in data file exceeds maximum lengthOracle
- tar (child): bzip2: Cannot exec: No such file or directory 報錯
- MySQL啟動報錯:The server quit without updating PID fileMySqlServerUI
- [報錯:字元太長] SQLSTATE [42000]: Syntax error or access violation: 1071 Specified key was t oo long;字元SQLError
- dbca建立資料庫時報錯ORA-13516: AWR Operation failed: CATPROC not valid資料庫AI
- imagick使用readImage報錯 Failed to read the file 或者沒有報錯內容的解決方法AI
- 編譯Redis時報錯: jemalloc/jemalloc.h: No such file or directory編譯Redis
- 【ASM】Oracle RAC css啟動報錯"Duplicate voting file found"ASMOracleCSS