One solution for the "make sure the file is complete problem"
is for the script that is actually doing the file creatation
is to write/create it into a subdirectory of the target folder.
Once the file is closed & complete, the script simply moves
or renames the file into the target directory. This method
"guarentees" that if/when it exists that the file is closed.
Another solution if for an external process to maintain
file which contains the names of files are are complete
and ready for PL/SQL processing.
HTH & YMMV!
"Post, Ethan" wrote:
>
> I have a directory that another process will be placing files in and I will
> be processing them using the UTL_FILE package. I wish there was a way to
> list the contents of a directory from PLSQL but I don't think that there is.
> My solution at this point is cron out a ksh script that will check the
> directory and call the procedure to handle the file. I need to check if the
> file is still being written to. I am checking to see if the file is
> writable but even when the file was opened by another session using VI it
> came back as writable so that does not appear to work. What are your
> solutions to this problem. Some of my other thoughts are to have the
> processes writing the file to only make the file readable to other processes
> once it is complete?
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Charlie Mengler
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).