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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to delete a flat file in SQL

Re: How to delete a flat file in SQL

From: George Barbour <gbarbour_at_csc.com>
Date: Mon, 28 Jan 2002 14:00:16 -0000
Message-ID: <3c5558fa$1@pull.gecm.com>


> You mean something like:
> execute dbms_backup_restore.deletefile('$ORACLE_HOME/bin/oracle')
Yes.
>
> (I'm not sure the $ORACLE_HOME bit would literally work
> by the way).

Phew!
>
> It's certainly a case where you should hide the procedure
> call in a package which exposes only the deletefile()
> procedure from the dbms_backup_restore package.
> (A bit like the dbms_lock, user_lock packages).
> In that case, you could always wrap the call in a piece
> of code (e.g. asks for a directory in the utl_file_dir
> list, and a file name, validates the directory using
> a utl_file call, and then deletes the file).
>
>

Thanks.
I'm all for giving developers as much as possible, within reason. Certainly "hiding" the procedure in a package as you suggest is fine, and would allay most of my fears.

George Barbour. Received on Mon Jan 28 2002 - 08:00:16 CST

Original text of this message

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