Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: UTL_FILE_DIR problem

RE: UTL_FILE_DIR problem

From: Larry Elkins <elkinsl_at_flash.net>
Date: Mon, 03 Dec 2001 07:32:59 -0800
Message-ID: <F001.003D34AA.20011203072524@fatcity.com>

Connor,

Can you please test your code before posting ;-)

Larry G. Elkins
elkinsl_at_flash.net
214.954.1781

> -----Original Message-----
> From: root_at_fatcity.com [mailto:root_at_fatcity.com]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: elkinsl_at_flash.net

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: ListGuru_at_fatcity.com (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).
Received on Mon Dec 03 2001 - 09:32:59 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US