Opatch Lsinventory Failed With Error Code 104
Contents |
for various Oracle Products. Thursday, September 29, 2011 OPatch cannot find a valid oraInst.loc file to
Oui 67104 Opatch Cannot Find A Valid Orainst Loc File To Locate Central Inventory
locate Central Inventory. OPatch failed with error code 104 OPatch cannot opatch failed with error code 73 find a valid oraInst.loc file to locate Central Inventory. OPatch failed with error code 104 $ opatch lsinventory Invoking OPatch 11.1.0.8.1 Oracle Interim Patch Installer version 11.1.0.8.1 Copyright (c) 2010, Oracle Corporation. All rights reserved. Oracle Home : /ora/app/product/11.1.0/db_1 Central Inventory : n/a from : OPatch version : 11.1.0.8.1 OUI version : 11.1.0.7.0 OUI location : /ora/app/product/11.1.0/db_1/oui Log file location : n/a Patch history file: /ora/app/product/11.1.0/db_1/cfgtoollogs/opatch/opatch_history.txt OPatch cannot find a valid oraInst.loc file to locate Central Inventory. OPatch failed with error code 104 Work around -------------- OPTION 1: a) Use the -invPtrLoc /etc/oraInst.loc % opatch lsinventory -invPtrLoc /etc/oraInst.loc OPTION 2: a) Copy the oraInst.loc file from the /etc to /var/opt/oracle directory b) Then run the opatch lsinventory % opatch lsinventory Doc ID 437026.1 ERROR :"OPatch cannot find a valid oraInst.loc file to locate Central Inventory.OPatch failed with error code 104" I tried this workaround but it didn't worked. I found that both oraInst.loc and oraInventory were not there so, I had to create a new inventory which I did as following and afterwards I was able to apply the patch. cd $ORACLE_HOME/oui/bin % ./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="" ORACLE_HOME_NAME="" For Eg : ORACLE_HOME=/u01/app/oracle/product/10.2.0.3 ORACLE_HOME_NAME=OraDb10g_home1 % ./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="/u01/app/oracle/product/10.2.0.3" ORACLE_HOME_NAME="OraDb10g_home1" Posted by Muhammad Qasim at 2:16 AM Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest Labels: Oracle Database 2 comments: AnonymousMarch 5, 2012 at 10:39 PMHi,Use below syntax for successful opatch list...$ORACLE_HOME/OPatch/opatch lsinventory -invPtrLoc /opt/oracle/product/10.2.0/db_1/oraInst.locReplyDeleteAnonymousNovember 14, 2012 at 7:02 PMThe below command works fine:opatch lsinventory if oraInst.loc exists under /etc folder and owned or readable by oracle or any user which oim is ins
OPatch cannot find a valid oraInst.loc file to locate Central Inventory 2013-05-11 11:29 3299人阅读 评论(0) 收藏 举报 本文章已收录于: 分类: Oracle DB(108) 作者同类文章X Troubleshooting(89) 作者同类文章X 版权声明:转载请以链接形式注明出处 命令:opatch lsinventory用于查看数据库所打Patch的列表。但运行的时候发现错误:[oracle@bej301441 OPatch]$ opatch lsinventory Invoking OPatch 11.1.0.6.2 Oracle Interim Patch Installer version 11.1.0.6.2 Copyright (c) 2007, Oracle Corporation. http://qasim-appsdba.blogspot.com/2011/09/opatch-cannot-find-valid-orainstloc.html All rights reserved. Oracle Home : /u01/oracle/mc3yd213/db/tech_st/11.1.0 Central Inventory : n/a from : OPatch version : 11.1.0.6.2 OUI version : 11.1.0.7.0 OUI location : /u01/oracle/mc3yd213/db/tech_st/11.1.0/oui Log file location : http://blog.csdn.net/pan_tian/article/details/8913903 n/a OPatch cannot find a valid oraInst.loc file to locate Central Inventory. OPatch failed with error code 104解决方法:原因是opatch在默认目录下找不到oraInst.loc文件,对于Unix系统来说oraInst.loc的默认位置是: /etc/oraInst.loc 或者 /var/opt/oracle/oraInst.loc 。这里我们可以需要指定具体的oraInst.loc文件位置给opatch。命令:opatch lsinventory -invPtrLoc /u01/oracle/mc3yd213/db/tech_st/11.1.0/oraInst.loc(/u01/oracle/mc3yd213/db/tech_st/11.1.0为我数据库的ORACLE_HOME)完整的输出:[oracle@bej301441 etc]$ opatch lsinventory -invPtrLoc /u01/oracle/mc3yd213/db/tech_st/11.1.0/oraInst.loc Oracle Interim Patch Installer version 1.0.0.0.58 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
find a valid oraInst.loc file to https://mustakdba.wordpress.com/2016/04/04/opatch-cannot-find-a-valid-orainst-loc-file-to-locate-central-inventory-opatch-failed-with-error-code-104/ locate Central Inventory. OPatch failed with error code104 April 4, 2016 by MUSTAK APPS DBA / RAC DBA in Oracle DBA [oracle@oracletest ~]$ 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 failed with Home : /u01/app/oracle/product/11.2.0/dbhome_1 Central Inventory : n/a from : OPatch version : 11.2.0.1.7 OUI version : 11.2.0.3.0 Log file location : n/a OPatch cannot find a valid oraInst.loc file to locate Central Inventory. OPatch failed with error code 104 Solution:- 1.cd $ORACLE_HOME 2.[root@oracletest dbhome_1]# failed with error cp -rf oraInst.loc /etc/ 3.[root@oracletest dbhome_1]# cat /etc/oraInst.loc inventory_loc=/u01/app/oraInventory inst_group=dba 4 [root@oracletest dbhome_1]# chown -R root:dba /etc/oraInst.loc 5.[oracle@oracletest dbhome_1]$ cd /u01/app/oracle/product/11.2.0/dbhome_1/oui/bin 6 [oracle@oracletest bin]$ ./attachHome.sh Starting Oracle Universal Installer… Checking swap space: must be greater than 500 MB. Actual 4000 MB Passed The inventory pointer is located at /etc/oraInst.loc The inventory is located at /u01/app/oraInventory ‘AttachHome' was successful. 7. [oracle@oracletest bin]$ 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/opatch2016-04-04_19-53-04PM.log Lsinventory Output file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2016-04-04_19-53-04PM.txt ----------------------------------------------------- Installed Top-level Products (1): Oracle Database 11g 11.2.0.3.0 There are 1 products installed in this Oracle Ho