My Oracle Support Banner

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

Last updated on SEPTEMBER 08, 2021

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.3 to 11.2.0.4 [Release 10.2 to 11.2]
Oracle Universal Installer - Version 10.2.0.3 to 11.2.0.4 [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)



Symptoms

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 10.2.0.4.6
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 10.2.0.4.6
Copyright (c) 2009, Oracle Corporation. All rights reserved.

OPatch could not open log file, logging will not be possible
java.lang.NullPointerException
at oracle.opatch.OLogger.printStackTrace(OLogger.java:1363)
at oracle.opatch.OUIReplacer.runEnvScript(OUIReplacer.java:143)
at oracle.opatch.OPatchSession.main(OPatchSession.java:1288)
at oracle.opatch.OPatch.main(OPatch.java:629)

OPatch failed with error code = 15

Changes

none

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
Changes
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.