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 and later
Information in this document applies to any platform.


Grid Infrastructure

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/ -d /u01/app/12.1.0/grid
Archive:  /stage/patches/
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/  
  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:   <-- OPatch patch of version for Oracle software releases 12.1.0.x (OCT 2013)?
* This does work on 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:  <-- 9.4 Modifying Oracle Clusterware Binaries After Installation



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

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