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