1. Run a Cron Job that every Hour Runs the Ls command with the necessary
switches to sort the file listing by the date and redirect the filename to a
Flat file.
2. Run a Job In Oracle that will open that particular file and read the
contents of that file and open the file mentioned therein.


There are always other ways to achieve this by means of a Java Stored Proc
running inside Oracle without a Cron Job. You can search for Executing
external Commands inside a Procedure in http://asktom.oracle.com [Which I
blv is down today]

HTH

Best Regards,
Ganesh R
Tel  : +971 (4)  397 3337  Ext 420
Fax  : +971 (4)  397 6262
HP   : +971 (50) 745 6019
============================================
Live to learn... forget... and learn again. 
============================================



-----Original Message-----
Sent: Monday, May 27, 2002 10:18 AM
To: Multiple recipients of list ORACLE-L


list,  the requirement is to use the UTL_FILE package on the server side to
open and process the files as they are created (each hour) in a server's
directory !! could anyone suggest a logic to pick up the the lastest file
created in that dir. ? 

TIA

8.1.6 on win2k


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rahul
  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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Ganesh Raja
  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).

Reply via email to