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: Removing files with PL/SQL

RE: Removing files with PL/SQL

From: John Lewis <jlewis_at_punchnetworks.com>
Date: Fri, 02 Mar 2001 14:34:01 -0800
Message-ID: <F001.002C2DDB.20010302141036@fatcity.com>

Sure.

use utl_file utility.
Write to a file , that another process reads, have it execute the command. Minor security hole but, it will work. Need to make parse strings so nothing

'bad' gets written to the file.

Or

Have a process, read a table that has files to be deleted ( we use this in house)

-----Original Message-----
Sent: Friday, March 02, 2001 1:41 PM
To: Multiple recipients of list ORACLE-L

Good suggestion, but 'host' only works within SQLPLUS (unless I am mistaken). Any other ideas?

Alan

-----Original Message-----
Sent: Friday, March 02, 2001 12:56 PM
To: Multiple recipients of list ORACLE-L

How about the host command. This will shell out to the os and process the command.

host erase c:\my_dir\my_file.txt

>>> <alan.aschenbrenner_at_ihs.com> 03/02/01 02:32PM >>> Hey listers,

    Does anyone know of a way to remove files from an O/S file system using PL/SQL without calling a java or an external C routine?

Thanks,

Alan

Alan Aschenbrenner
Oracle DBA
IHS Group
(303)-858-6394
alan.aschenbrenner_at_ihs.com
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: alan.aschenbrenner_at_ihs.com

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).

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: William Beilstein
  INET: BeilstWH_at_obg.com

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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: alan.aschenbrenner_at_ihs.com
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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: John Lewis
  INET: jlewis_at_punchnetworks.com
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 Fri Mar 02 2001 - 16:34:01 CST

Original text of this message

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