My Oracle Support Banner

UTL_FILE.FRENAME Fails With ORA-29283 (Doc ID 458641.1)

Last updated on FEBRUARY 12, 2019

Applies to:

PL/SQL - Version 9.2.0.8 and later
Information in this document applies to any platform.
***Checked for relevance on 26th Dec 2018***

Symptoms

Symptom 1:

There is a OS file file1.txt owned by oracle user.

The permissions on the file are as follows:

-r-r--r-- 1 oracle dba 0 Sep 14 10:38 file1.txt


At OS prompt, using the "mv" command to rename the file is successful. However using UTL_FILE.FRENAME fails with ORA-29283 even though this internally executes with  OS user oracle's  privileges.

Symptom 2:

Consider directory oradir owned by oracle

Permissions on the directory are as follows:

drwxr-xr-x 2 oracle dba 4096 Sep 14 10:38 oradir.



Inside oradir, there is a file file1.txt owned by a different user (like root) and "oracle" user is not a part of  group of the file.

Permissions in the file are as follows:

-rw-r--r-- 1 root notOracle 0 Sep 14 10:13 file1.txt



At OS level, oracle user can use "mv" command to successfully rename the file file1.txt. However using UTL_FILE.FRENAME fails with ORA-29283 even though this internally executes with OS user oracle's privileges.

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.