Opatch Fails During Patch Installation

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


I was applying a patch on Oracle 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
Copyright (c) 2011, Oracle Corporation. All rights reserved.

Oracle Home : /grid11g/app/product/
Central Inventory : /grid11g/oraInventory
from : /grid11g/app/product/
OPatch version :
OUI version :
Log file location : /grid11g/app/product/

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

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

[ Error during Prerequisite for apply Phase]. Detail: ApplySession failed during prerequisite checks: Prerequisite check "CheckApplicable" failed.
Log file location: /grid11g/app/product/

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


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/

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


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/

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

# chown grid  /oracle/app/product/

Re-install the patch and it should succeed.

No comments:

Post a Comment