Skip to Main Content

Oracle Database Discussions

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Opening with UTL_FILE_DIR

472121Nov 27 2005 — edited Nov 27 2005
Hi All,

I am having problems with using the create_directory command. I cannot find an example of UTL_FIL_OPEN that uses a directory created with the create_directory function.

Here is what I am trying:

Using 10g, I signed on as sysdba and entered:

CREATE OR REPLACE DIRECTORY MYDB_DIR;

GRANT READ ON DIRECTORY MYDB_DIR TO FRED;

GRANT WRITE ON DIRECTORY MYDB_DIR TO FRED;

Then when I queried the all_directories table, MYDB_DIR was there with owner set as SYS.

So my question is, what is the format for the UTL_FILE_DIR.open using the directory MYDB_DIR?

file_id := UTL_FILE.fopen(???????,test.dat,’W’);

Thanks,
Aaron
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 25 2005
Added on Nov 27 2005
1 comment
149 views