Connor,

Can you please test your code before posting ;-)

Larry G. Elkins
[EMAIL PROTECTED]
214.954.1781

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Connor
> McDonald
> Sent: Monday, December 03, 2001 9:00 AM
> To: Multiple recipients of list ORACLE-L
> Subject: RE: UTL_FILE_DIR problem
> 
> 
> In particular,
> 
> declare
>   f utl_file.file_type;
> begin
> for i in ( select name from v$datafile
>              order by file# desc ) loop
>    f := utl_file.fopen(
>          substr(i.name,1,instr(i.name,'/',-1)),
>          substr(i.name,instr(i.name,'/',-1)+1),
>          'W');
>   utl_file.fclose(f);
> end loop;
> end;
> /
> 
> which (pending fixing any compile errors) will do its
> best to reduce all datafiles in the database to 0
> bytes finishing with SYSTEM.
> 
> Cheers
> Connor

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Larry Elkins
  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