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 - output not immediate

396612Dec 13 2007 — edited Dec 17 2007
Hello -

I have a situation where I do not see reliable response from Oracle when using the file utility; UTL_FILE...

I'm using the UTL_FILE package to output results from a procedure to a Unix file, but the results are not written to the file by the time I close the file handle. The file output is not written until about 5 minutes after the procedure has finished. No exceptions are caught by "when others".

I call the UTL_FILE.fflush in the procedure and close the file handle. So the output is written using a "closed" file handle.

I'm not exactly sure what would cause that.
If there's some sort of contention going on that I don't know about, then shouldn't an exception be generated by Oracle and caught in my catch-all.

Version 9.2.0.7.0 on Unix

Any thoughts?

Thanks in Advance...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 14 2008
Added on Dec 13 2007
7 comments
1,593 views