RE: how to pick the lastes file using UTL_FILE package ?

2002-05-28 Thread Richard Huntley
Title: RE: how to pick the lastes file using UTL_FILE package ? Rahul, here is how you'd do it on a Unix box: ls -t|line ls -t would give you a list of files most recent first, then the line command would give you back the first filename only. In 2K the first part of that is DIR /O:-D

RE: how to pick the lastes file using UTL_FILE package ?

2002-05-27 Thread Stephane Faroult
- Original Message - From: Rahul [EMAIL PROTECTED] To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Sun, 26 May 2002 22:18:18 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

RE: how to pick the lastes file using UTL_FILE package ?

2002-05-27 Thread Ganesh Raja
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.

RE: how to pick the lastes file using UTL_FILE package ?

2002-05-27 Thread DENNIS WILLIAMS
Rahul - Just a thought here. This would be a simple task in Unix. One idea would be to take a look at the Unix/Posix type interface packages. Another thought would be to ask this question on a W2K forum. Dennis Williams DBA Lifetouch, Inc. [EMAIL PROTECTED] -Original Message- Sent:

Re: how to pick the lastes file using UTL_FILE package ?

2002-05-27 Thread Chaim . Katz
Rahul, This isn't exactly what you're asking but, If OEM is set up: You can use the intelligent agent on win2k. Write a script that identifies the file and then calls the PL/SQL procedure. Schedule the job in OEM. Chaim Rahul [EMAIL PROTECTED]@fatcity.com on 05/27/2002 02:18:18 AM

RE: how to pick the lastes file using UTL_FILE package ?

2002-05-27 Thread Disser, Arno
Well, in that case use loader to process the file into a tmptable, and forget UTL_FILE. aRNO -Original Message- [mailto:[EMAIL PROTECTED]] Sent: Monday, May 27, 2002 6:08 PM To: Multiple recipients of list ORACLE-L Rahul, This isn't exactly what you're asking but, If OEM

how to pick the lastes file using UTL_FILE package ?

2002-05-26 Thread Rahul
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