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!

Help with utl_file (read/write file from local directory)

95608Feb 10 2007 — edited Feb 10 2007
Need help reading/writing file on local machine from plsql using 10.2 DB.

I am trying to read/write a file from a local directory(laptop) without success.

I have been able to read/write to the database server directory but can't write to directory on local machine.
The utl_file_dir parm has been set to * and the db restarted but I can't get it to work... Here's the plsql statement.
out_file := UTL_FILE.FOPEN ( 'C:\PLSQL', 'TEST.TXT', 'W' ,32767);
Whenever I run it continues to write to c:\PLSQL dir on the database server. Have looked at the "Directory" object and created MY_DIR = C:\PLSQL but it writes to the db server.
Running 10.2 on a remote windows server, running PLSQL using sql*navigator.
Thanks in advance for your help..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2007
Added on Feb 10 2007
5 comments
2,391 views