First, for those wondering why I would do something so foolish as delete
oraInventory--my server originally ran v8.0, then we upgraded to v8.1,
and recently we finally upgraded to v9.2. To recover disk space, I
recently delete the old v8 ORACLE_HOME, not realizing I was blowing away
my central inventory. My server is a Sun UltraSPARC-II running Solaris 8.
I tried to work around it by setting inventory_loc to the directory
"inventory" in my 9.2 ORACLE_HOME, but it did not solve the problem. I
also executed "opatch attach -name <my ORACLE_HOME>" which did not seem
to help.
Can anyone suggest anything I could do to get opatch working?
Here's command output for "opatch apply":
-----------------------------------------------------------------------------------------------------
Oracle Interim Patch Installer version 1.0.0.0.52
Copyright (c) 2005 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 = /disk1/ora92
Location of Oracle Universal Installer components = /disk1/ora92/oui
Location of OraInstaller.jar = "/disk1/ora92/oui/jlib"
Oracle Universal Installer shared library =
/disk1/ora92/oui/lib/solaris/liboraInstaller.so
Location of Oracle Inventory Pointer = /var/opt/oracle/oraInst.loc
Location of Oracle Inventory = /disk1/ora92/inventory
Path to Java = /disk1/ora92/jre/1.4.2/bin/java
Log file = /disk1/ora92/.patch_storage/<patch ID>/*.log
The Oracle Home /disk1/ora92 is not registered with the Central
Inventory. OPatch was not able to get details of the home from the
inventory.
ERROR: OPatch failed because of Inventory problem.
---------------------------------------------------------------------------------------------
Here's command output for "opatch lsinventory":
---------------------------------------------------------------------------------------------
Oracle Interim Patch Installer version 1.0.0.0.52
Copyright (c) 2005 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 = /disk1/ora92
Location of Oracle Universal Installer components = /disk1/ora92/oui
Location of OraInstaller.jar = "/disk1/ora92/oui/jlib"
Oracle Universal Installer shared library =
/disk1/ora92/oui/lib/solaris/liboraInstaller.so
Location of Oracle Inventory Pointer = /var/opt/oracle/oraInst.loc
Location of Oracle Inventory = /disk1/ora92/inventory
Path to Java = /disk1/ora92/jre/1.4.2/bin/java
Log file = /disk1/ora92/.patch_storage/<patch ID>/*.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
Can not get a list of inventory on this home.
ERROR: OPatch failed because of Inventory problem.
-----------------------------------------------------------------------------------
Oracle LazyDBA home page