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!

Cant find UTL_FILE_DIR

359732Nov 21 2002
Hi there,

I faced problem to write to text file with stored procedure.
I can't find the init file in my computer to check my UTL_FILE_DIR path.

my coding is as below:
/*****************************************************
CREATE OR REPLACE PROCEDURE sp_write_file
AS -- STANDARD VARIABLE FOR EXCEPTION LOGGING
write_txtfile_id UTL_FILE.FILE_TYPE;

BEGIN
write_txtfile_id := UTL_FILE.fopen('C:\Oracle\Oracle81\bin','sa.txt','w');
UTL_FILE.PUT_LINE(write_txtfile_id,'hello');
UTL_FILE.fclose(write_txtfile_id);

END;
/
*****************************************************/

Can you help me out in figuring out the way to create and write to text file?

Thank you so much.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2002
Added on Nov 21 2002
2 comments
191 views