Oracle----查看补丁时 Oui Found No Such Oracle_home Set In The Environment

oracle>opatch lsinventory

Oracle Interim Patch Installer version 1.0.0.0.63
Copyright (c) 2009 Oracle Corporation. All Rights Reserved..

Oracle recommends you to use the latest OPatch version
and read the OPatch documentation available in the OPatch/docs
directory for usage. For information about the latest OPatch and
other support-related issues, refer to document ID 293369.1
available on My Oracle Support (https://myoraclesupport.oracle.com)

Oracle Home : /oracle/app/oracle/product/9.2.0
Oracle Home Inventory : /oracleitf/app/oracle/product/9.2.0/inventory
Central Inventory : /oracle/app/oracle/oraInventory
from : /etc/oraInst.loc
OUI location : /oracle/app/oracle/product/9.2.0/oui
OUI shared library : /oracleapp/oracle/product/9.2.0/oui/lib/aix/liboraInstaller.so
Java location : /oracle/app/oracle/product/9.2.0/jre/1.4.2/bin/java
Log file location : /oracleapp/oracle/product/9.2.0/.patch_storage//*.log

Creating log file "/oracle/app/oracle/product/9.2.0/.patch_storage/LsInventory__07-28-2011_11-35-43.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.

ERROR: OPatch failed because of Inventory problem.

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

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26078027/viewspace-1053125/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26078027/viewspace-1053125/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值