You are on page 1of 2

Copyright (c) 2022, Oracle. All rights reserved. Oracle Confidential.

After DB Upgrade to 18c or Later, a PL/SQL Package that uses the UTL_FILE_DIR
Parameter now Fails with ORA-29280: invalid directory object (Doc ID 2740830.1)

In this Document

Symptoms
Cause
Solution
References

APPLIES TO:

Oracle Database - Standard Edition - Version 18.1.0.0.0 and later


Information in this document applies to any platform.

SYMPTOMS

After database upgrade to 18c or later, a PL/SQL package that makes use of the UTL_FILE_DIR parameter now fails
with the following error:

ORA-29280: invalid directory object

CAUSE

The UTL_FILE_DIR parameter is no longer supported in 18c and above. Instead, a directory object must be created
and then users granted access to that directory object.

Reference:

(Doc ID 2606587.1) UTL_FILE_DIR in 18C

SOLUTION

Create a directory using the CREATE DIRECTORY command and then grant users access to that directory.

For example, to create a directory for testing that all users have access to, you could execute the following commands:

create directory TESTING as '<full_path_to_directory>';


grant all on directory TESTING to PUBLIC;

Reference the following document for more information:

(Doc ID 196939.1) Using CREATE DIRECTORY Instead of UTL_FILE_DIR init.ora Parameter


REFERENCES

NOTE:2606587.1 - UTL_FILE_DIR in 18C


NOTE:196939.1 - Using CREATE DIRECTORY Instead of UTL_FILE_DIR init.ora Parameter
Didn't find what you are looking for?

You might also like