My Oracle Support Banner

OPatch on 12c gives : cannot create .../PatchSearch.xml ... Permission denied (Doc ID 1626147.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Information in this document applies to any platform.

Symptoms

Grid Infrastructure 12.1.0.1


Unzip of latest OPatch utility onto a 12c Grid Infrastructure (GI) home fails with permission denied while trying to create the file PatchSearch.xml under the GI_HOME directory:

[oracle@mbrac3 ~]$ unzip /stage/patches/p6880880_121010_Linux-x86-64.zip -d /u01/app/12.1.0/grid
Archive:  /stage/patches/p6880880_121010_Linux-x86-64.zip
replace /u01/app/12.1.0/grid/OPatch/opatchauto? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
  inflating: /u01/app/12.1.0/grid/OPatch/opatchauto  
  inflating: /u01/app/12.1.0/grid/OPatch/jlib/oracle.opatch.classpath.jar  
  inflating: /u01/app/12.1.0/grid/OPatch/jlib/oracle.opatch.classpath.windows.jar  
 ....
  inflating: /u01/app/12.1.0/grid/OPatch/operr  
error:  cannot create /u01/app/12.1.0/grid/PatchSearch.xml   <==== here
        Permission denied                                    <==== here
[oracle@mbrac3 ~]$

 

Additional information

* Ref: https://updates.oracle.com/download/6880880.html   <-- OPatch patch of version 12.1.0.1.2 for Oracle software releases 12.1.0.x (OCT 2013)?
* This does work on 11.2.0.4 or earlier versions.
* If the GI_HOME is unlocked, then it works but unlocking the GI_HOME requires the GI stack to be brought down.
   For details to unlock the gi_home, see: http://docs.oracle.com/cd/E16655_01/install.121/e17888/postinst.htm#CWLIN344  <-- 9.4 Modifying Oracle Clusterware Binaries After Installation


 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.