Opatch Fails During Patch Installation

Applies to: Database Management Software Oracle Server - Enterprise Edition - Version: 11.2.0.3 and later   [Release: 11.2 and later ]
Oracle Solaris on SPARC (64-bit)

Issue:

I was applying a patch on Oracle 11.2.0.3 on Oracle Solaris system. The patch fails on a copy command and returned and error code 39. It failed specifically at oradism file at Oracle Solaris Env. This scenario is not specific to this patch only, you can also face this issue with some other patches on Oracle Solaris env.
...
Oracle Interim Patch Installer version 11.2.0.1.9
Copyright (c) 2011, Oracle Corporation. All rights reserved.


Oracle Home : /grid11g/app/product/11.2.0.3/grid
Central Inventory : /grid11g/oraInventory
from : /grid11g/app/product/11.2.0.3/grid/oraInst.loc
OPatch version : 11.2.0.1.9
OUI version : 11.2.0.3.0
Log file location : /grid11g/app/product/11.2.0.3/grid/cfgtoollogs/opatch/opatch2012-12-03_14-44-35PM.log

Applying interim patch '13454354' to OH '/grid11g/app/product/11.2.0.3/grid'
Verifying environment and performing prerequisite checks...
Prerequisite check "CheckApplicable" failed.
The details are:

Patch 13454354:
Copy Action: Destination File "/grid11g/app/product/11.2.0.3/grid/bin/oradism" is not writeable.
'oracle.rdbms, 11.2.0.3.0': Cannot copy file from 'oradism' to '/grid11g/app/product/11.2.0.3/grid/bin/oradism'

[ Error during Prerequisite for apply Phase]. Detail: ApplySession failed during prerequisite checks: Prerequisite check "CheckApplicable" failed.
Log file location: /grid11g/app/product/11.2.0.3/grid/cfgtoollogs/opatch/opatch2012-12-03_14-44-35PM.log

Recommended actions: This patch requires some components to be installed in the home. Either the Oracle Home doesn't have the components or this patch is not suitable for this Oracle Home.

OPatch failed with error code 39

Cause:

The 'oradism' executable is own by root. While this should be owned by grid user.

Example of a failing environment where 'oradism' is owned by root:

# ls -ltra /oracle/app/product/11.2.0.3/grid/bin/oradism

-rwsr-x--- 1 root oinstall 1340408 Sep 25 07:40 /oracle/app/product/11.2.0.3/grid/bin/oradism

Solution

Change the owner of oradism from root to the Grid Home software owner.

To find out grid_home software owner, use

# ls -ltra /oracle/app/product/11.2.0.3/grid

-rwsr-s--x 1 grid oinstall 200678430 Oct 5 17:25 /oracle/app/product/11.2.0.3/grid

# chown grid  /oracle/app/product/11.2.0.3/grid/bin/oradism

Re-install the patch and it should succeed.

No comments:

Post a Comment