Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issue with Create or Replace Directory

Kum KJun 16 2010 — edited Jun 16 2010
Hello,

I used execute immediate ('create or replace directory TEST_DIR as ''/usr/tmp''') in my PLSQL package and when i run the package as a stand alone, it creates the directory and the files which i want to save in this directory as getting saved without any issue.

when i call the same package from a java programme, i don't get any error but the files are not getting saved in that directory and when i check the log, i get the error saying in "no directory with this name exists "

Basically, the directory is not being created when the package is being called from another application.

How to solve this issue?

Thanks for your help in advance.

PK
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 14 2010
Added on Jun 16 2010
14 comments
2,606 views