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: Oracle Datapump question (parameter to overwrite file)

Re: Oracle Datapump question (parameter to overwrite file)

From: Nigel Thomas <nigel_cl_thomas_at_yahoo.com>
Date: Thu, 7 Dec 2006 10:29:47 -0800 (PST)
Message-ID: <20061207182947.66259.qmail@web58706.mail.re1.yahoo.com>


>Is there any parameter that we can use during create external table that can overwrite the file? Harvinder Once the table is dropped, couldn't you just delete the file using UTL_FILE.FREMOVE (http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#sthref14163)? So: - drop table: execute immediate 'drop table '||v_table_name; - remove file: UTL_FILE.FREMOVE(p_path, fname); - create table: execute immediate v_sql2; and remember, if there's no table, there might be no file - so you should handle that exception (whichever one it is - probably DELETE_FAILED, which covers a multitude of sins). HTH Regards Nigel

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Dec 07 2006 - 12:29:47 CST

Original text of this message

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