Saturday, January 25, 2014

The OUI version is not applicable for current OPatch version. OPatch failed with error code 1


##########################
## Error
##########################

The OUI version is not applicable for current OPatch version.

### Full Error

[oracle@host01 OPatch]$ ./opatch lsinventory
OPatch Version : 11.1.0.9.2
  OUI  Version : 11.2.0.3.0
The OUI version is not applicable for current OPatch version.
OPatch failed with error code 1
[oracle@host01 OPatch]$

##########################
#  Error Occurred
##########################

Error occured while we run a opatch command from 12.1.0.1.0 version of 12c Cloud Management Agent

##########################
## Command Executed
##########################

./opatch lsinventory

**************************************** Step By Step Analysis ******************************************************

#########################################
# 1) Check the ORACLE_HOME set
#########################################

[oracle@host01 OPatch]$ pwd
/u01/app/oracle/product/agent12c/core/12.1.0.1.0/OPatch

[oracle@host01 OPatch]$ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0.3/dbhome_1

=====================================================================================================================

#########################################
# 2) Reason for Failure
#########################################

ORACLE_HOME environment variable is set to 11g database home, but we are executing Opatch from 12c Cloud Agent Home.

=====================================================================================================================

##########################
## Solution
##########################

1) If We want to check the Inventory Details of Agent Home then Set 12c ORACLE AGENT HOME and then execute

[oracle@host01 OPatch]$ export ORACLE_HOME=/u01/app/oracle/product/agent12c/core/12.1.0.1.0
[oracle@host01 OPatch]$ ./opatch lsinventory
Oracle Interim Patch Installer version 11.1.0.9.2
Copyright (c) 2011, Oracle Corporation.  All rights reserved.

Oracle Home       : /u01/app/oracle/product/agent12c/core/12.1.0.1.0
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/agent12c/core/12.1.0.1.0/oraInst.loc
OPatch version    : 11.1.0.9.2
OUI version       : 11.1.0.9.0
Log file location : /u01/app/oracle/product/agent12c/core/12.1.0.1.0/cfgtoollogs/opatch/opatch2014-01-23_11-19-48AM_1.log
Lsinventory Output file location : /u01/app/oracle/product/agent12c/core/12.1.0.1.0/cfgtoollogs/opatch/lsinv/lsinventory2014-01-23_11-19-48AM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (1):
EM Platform (Agent)                                                  12.1.0.1.0
There are 1 products installed in this Oracle Home.

Interim patches (1) :
Patch  6895422      : applied on Sat Jan 11 03:15:36 UTC 2014
Unique Patch ID:  14696320
   Created on 6 Apr 2012, 00:13:27 hrs PST8PDT
   Bugs fixed:
     6895422


--------------------------------------------------------------------------------
OPatch succeeded.
[oracle@host01 OPatch]$

2) If we want to Check the Inventory Details of 11g Database Home then Set 11g database ORACLE HOME and then execute Opatch lsinventory command from 11g Database Home Binaries.

3) If we want to check the Inventory Details of 11g Database Home,

   OUI version and OPatch Version needs to be matched.

   Since OUI version starts with 11.1, please go to My Oracle Support and get the right OPatch 11.1.*.*.* using Patch Number 6880880, release version 11.1.0.0.0 on appropriate platform.

   [oracle@host01 OPatch]$ pwd
/u01/app/oracle/product/agent12c/core/12.1.0.1.0/OPatch
[oracle@host01 OPatch]$ mv p6880880_112000_Linux-x86-64.zip /u01/app/oracle/product/agent12c/core/12.1.0.1.0/
[oracle@host01 OPatch]$


[oracle@host01 12.1.0.1.0]$ pwd
/u01/app/oracle/product/agent12c/core/12.1.0.1.0
[oracle@host01 12.1.0.1.0]$ mv OPatch OPatch_Old
[oracle@host01 12.1.0.1.0]$ unzip p6880880_112000_Linux-x86-64.zip
Archive:  p6880880_112000_Linux-x86-64.zip
   creating: OPatch/


[oracle@host01 OPatch]$ ./opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.6
Copyright (c) 2013, Oracle Corporation.  All rights reserved.

Oracle Home       : /u01/app/oracle/product/11.2.0.3/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/11.2.0.3/dbhome_1/oraInst.loc
OPatch version    : 11.2.0.3.6
OUI version       : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2.0.3/dbhome_1/cfgtoollogs/opatch/opatch2014-01-23_11-15-06AM_1.log
Lsinventory Output file location : /u01/app/oracle/product/11.2.0.3/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2014-01-23_11-15-06AM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (1):
Oracle Database 11g                                                  11.2.0.3.0
There are 1 product(s) installed in this Oracle Home.


=====================================================================================================================
 Comments Are Always welcome
=====================================================================================================================



No comments: