Wednesday, February 2, 2011

delete/add Oracle Home from Central Inventory

some times it happens...:

$ ./OPatch/opatch lsinv
Invoking OPatch 10.2.0.4.3

Oracle Interim Patch Installer version 10.2.0.4.3
Copyright (c) 2007, Oracle Corporation.  All rights reserved.


Oracle Home       : /export/home/oracle/oracle/product/10.2.0/db
Central Inventory : /u01/oracle/oraInventory
   from           : /var/opt/oracle/oraInst.loc
OPatch version    : 10.2.0.4.3
OUI version       : 10.2.0.4.0
OUI location      : /export/home/oracle/oracle/product/10.2.0/db/oui
Log file location : /export/home/oracle/oracle/product/10.2.0/db/cfgtoollogs/opatch/opatch2011-02-02_14-30-01PM.log

List of Homes on this system:

  Home name= OraDb10g_home2, Location= "/d03/oracle/product/10.2.0/Db1"
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
LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo

OPatch failed with error code 73



Solution:
$ ./oui/bin/runInstaller -silent -deinstall REMOVE_HOMES={"/d03/oracle/product/10.2.0/Db1"}
Starting Oracle Universal Installer...

No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-02-02_02-37-36PM. Please wait ...
Oracle Universal Installer, Version 10.2.0.4.0 Production
Copyright (C) 1999, 2008, Oracle. All rights reserved.
Starting deinstall
Deinstall in progress (Wednesday, February 2, 2011 2:37:45 PM MSK)
End of install phases.(Wednesday, February 2, 2011 2:37:49 PM MSK)
End of deinstallations
Please check '/u01/oracle/oraInventory/logs/silentInstall2011-02-02_02-37-36PM.log' for more details.

$ cat  /u01/oracle/oraInventory/logs/silentInstall2011-02-02_02-37-36PM.log
silentInstall2011-02-02_02-37-36PM.log
Starting deinstall
This deinstallation was successful
End of deinstallations


$ ./OPatch/opatch lsinv
Invoking OPatch 10.2.0.4.3

Oracle Interim Patch Installer version 10.2.0.4.3
Copyright (c) 2007, Oracle Corporation.  All rights reserved.


Oracle Home       : /export/home/oracle/oracle/product/10.2.0/db
Central Inventory : /u01/oracle/oraInventory
   from           : /var/opt/oracle/oraInst.loc
OPatch version    : 10.2.0.4.3
OUI version       : 10.2.0.4.0
OUI location      : /export/home/oracle/oracle/product/10.2.0/db/oui
Log file location : /export/home/oracle/oracle/product/10.2.0/db/cfgtoollogs/opatch/opatch2011-02-02_14-39-26PM.log

List of Homes on this system:

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
LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo

OPatch failed with error code 73

./oui/bin/runInstaller -attachHome ORACLE_HOME="/export/home/oracle/oracle/product/10.2.0/db" ORACLE_HOME_NAME="ORADB_102"
Starting Oracle Universal Installer...

No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
The inventory pointer is located at /var/opt/oracle/oraInst.loc
The inventory is located at /u01/oracle/oraInventory
'AttachHome' was successful.

$ ./OPatch/opatch lsinv
Invoking OPatch 10.2.0.4.3

Oracle Interim Patch Installer version 10.2.0.4.3
Copyright (c) 2007, Oracle Corporation.  All rights reserved.


Oracle Home       : /export/home/oracle/oracle/product/10.2.0/db
Central Inventory : /u01/oracle/oraInventory
   from           : /var/opt/oracle/oraInst.loc
OPatch version    : 10.2.0.4.3
OUI version       : 10.2.0.4.0
OUI location      : /export/home/oracle/oracle/product/10.2.0/db/oui
Log file location : /export/home/oracle/oracle/product/10.2.0/db/cfgtoollogs/opatch/opatch2011-02-02_14-45-58PM.log

Lsinventory Output file location : /export/home/oracle/oracle/product/10.2.0/db/cfgtoollogs/opatch/lsinv/lsinventory2011-02-02_14-45-58PM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (3): 

Oracle Database 10g                                                  10.2.0.1.0
Oracle Database 10g Products                                         10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 3                            10.2.0.4.0
There are 3 products installed in this Oracle Home.


There are no Interim patches installed in this Oracle Home.


--------------------------------------------------------------------------------

OPatch succeeded.

1 comment:

  1. HomeZada is a digital home platform that manages information during the entire homeowner lifecycle of owning, selling and buying a home. The cloud-based solution helps homeowners save money, improve value, and be better organized when managing their largest financial asset.

    ReplyDelete