Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 E-mail Us
 Oracle Articles
New Oracle Articles

 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog

 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Oracle Support

 SQL Tuning

 Oracle UNIX
 Oracle Linux
 Remote s
 Remote plans
 Application Server

 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S


 Consulting Staff
 Consulting Prices
 Help Wanted!


 Oracle Posters
 Oracle Books

 Oracle Scripts

Don Burleson Blog 







O/S-Error: (OS 5) Access is Denied Tips

Oracle Database Tips by Donald BurlesonFebruary 27, 2016

Question:  I am running an RMAN job and I get the OS file Access error when trying to write to a shared disk on NFS:

RMAN-03009: failure of backup command on ch1 channel at 02/20/2011 18:19:46
ORA-19504: failed to create file "
ORA-27040: file create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 5) Access is denied.  

My Windows Oracle ID can write to the shared directory, so how do I fix the O/S-Error: (OS 5) Access is denied error?

Answer:  Remember, your OS user ID may not be the ID that is running a submitted RMAN job, in an operating system, UNIX, Linux or Windows.  

The O/S-Error: (OS 5) Access is denied error happens when the RMAN user does not have permission to write to the filesystem.  

A quick chmod 770 on the directory would fix this O/S Access Denied error in Linux/UNIX . . .

On Windows, your default is the OracleService<SID> service, which runs as the user LocalSystem. The Windows LocalSystem user is not allowed to write to shared drives.

I would change your OracleService<SID> to logon explicitly as an Oracle user with admin privileges. In the ControlPanel services:  

  1. Right click on service

  2. Select 'properties'

  3. Select 'logon'

  4. Change the default user ID to an Oracle user with Windows administrator privileges  

There is also a bug on this see MOSC Note: 387700.1.  The workaround is to set this event in your spfile (or equivalent, if using pfile):

alter system set event=10298 trace name context forever,

level 32 scope= spfile ;

In UNIX/Linux, remember that while it may work for your oracle ID, you are not logged-in as the RMAN user, and even with drwxrwxrwx there is a read permission issue . . .

  • This could also have to do with the NFS mount permissions. When you mount with NFS, make sure to chown it to the Oracle user.

  • Your PATH may be incomplete. You need to make sure that the RMAN user has it's PATH set properly (via the .profile, .login, .bshrc or .cshrc script), and that all directories in the path have permission for the RMAN user.

  • Check $ORACLE_HOME/network/admin and see if it has drwxrwxrwx

Oracle Training from Don Burleson 

The best on site "Oracle training classes" are just a phone call away! You can get personalized Oracle training by Donald Burleson, right at your shop!

Oracle training



Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.



Oracle Training at Sea
oracle dba poster

Follow us on Twitter 
Oracle performance tuning software 
Oracle Linux poster