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!

UTL_FILE not creating file, no error

835129Jan 17 2012 — edited Jan 17 2012
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production

Somehow, following code works fine. No errors. But, it doesn't generate file. This issue is happening in one of the prod server. Where it (similar code) used to work fine.

Where BILLAPPS is correct directory. I have access to it.
DECLARE
    GF_OUTPUT            UTL_FILE.FILE_TYPE;
    v_line  varchar2(256) ;
BEGIN
    GF_OUTPUT    :=    UTL_FILE.FOPEN( 'BILLAPPS', 'abc.txt', 'w' );
    v_line := 'testing' ;
    UTL_FILE.put_LINE( GF_OUTPUT, v_line);
    UTL_FILE.putf( GF_OUTPUT, '%s  %s %s \n', v_line, 'test', '123');
    UTL_FILE.FFLUSH (GF_OUTPUT);
    dbms_output.put_line('line is: ' || v_line) ;
    UTL_FILE.FCLOSE( GF_OUTPUT );
END ;    
/
Edited by: Arpit on Jan 17, 2012 12:37 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 14 2012
Added on Jan 17 2012
2 comments
1,073 views