My Oracle Support Banner

OPatch Permissions Problem on Windows 2008 64-bit (Doc ID 791005.1)

Last updated on FEBRUARY 14, 2023

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 10.2 to 11.2]
Oracle Universal Installer - Version to [Release 10.2 to 11.2]
Microsoft Windows x64 (64-bit)
Microsoft Windows x64 (64-bit) - Version: 2008 R2
Oracle Server Enterprise Edition - Version: 10.2.0.x to 11.2.0.x
Microsoft Windows Server 2008 x64 (AMD64/EM64T)


If Oracle was installed by the Administrator user then OPatch must be run by the Administrator user.

If OPatch is run by a user in the admin group and ora_dba group (and not the local administrator), the following error message is displayed:

C:\Users\Colin> opatch lsinventory -detail
Invoking OPatch
OPatch could not create/open history file for writing : c:\oracle\product\10.2.0\db_1\cfgtoollogs\opatch\opatch_history.txt
c:\oracle\product\10.2.0\db_1\cfgtoollogs\opatch\opatch_history.txt (Access is denied)

Oracle Interim Patch Installer version
Copyright (c) 2009, Oracle Corporation. All rights reserved.

OPatch could not open log file, logging will not be possible
at oracle.opatch.OLogger.printStackTrace(
at oracle.opatch.OUIReplacer.runEnvScript(
at oracle.opatch.OPatchSession.main(
at oracle.opatch.OPatch.main(

OPatch failed with error code = 15




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.