How to drop external table together with the linked file

Hi,
I am running 10g and using the external table feature to move data between two databases. Now the procedure I am using has to make sure, that on the target db the external tables created on the previous run are not existing.
As far I know the statement
DROP TABLE <EXTERNAL TABLE NAME>; does not remove the file.
How to achieve the goal?
Thanks!

Can you use the UTL_FILE.FRemove function to delete the underlying file? That seems like the simplest solution. Assuming, of course, that you have the appropriate privileges to do so.
Justin
Of course, I'd generally question why you're using external tables and flat files to move data between databases rather than database links, but I assume you have valid reasons for that...
Message was edited by:
Justin Cave

Similar Messages

  • How to reject external table rows with some blank columns

    How to reject external table rows with some blank columns
    I have an external table and I would like to reject rows when a number of fields are empty. Here are the details.
    CREATE TABLE EXTTAB (
    ID NUMBER(10),
    TSTAMP DATE,
    C1 NUMBER(5,0),
    C2 DATE,
    C3 FLOAT(126)
    ORGANIZATION EXTERNAL (
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY EXT_DAT_DIR
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY NEWLINE
    LOAD WHEN (NOT (c1 = BLANKS AND c2 = BLANKS AND c3 = BLANKS))
    LOGFILE EXT_LOG_DIR:'exttab.log'
    BADFILE EXT_BAD_DIR:'exttab.bad'
    DISCARDFILE EXT_BAD_DIR:'exttab.dsc'
    FIELDS TERMINATED BY "|"
    LRTRIM
    MISSING FIELD VALUES ARE NULL
    REJECT ROWS WITH ALL NULL
    FIELDS (
    ID,
    TSTAMP DATE 'YYYYMMDDHH24MISS',
    C1,
    C2 DATE 'YYYYMMDDHH24MISS',
    C3
    ) LOCATION ('dummy.dat')
    REJECT LIMIT UNLIMITED
    So, as you can see from the LOAD WHEN clause, I'd like to reject rows when C1, C2 and C3 are empty.
    The above statement works fine and creates the table. However when I am trying to load data using it, the following error is produced:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "not": expecting one of: "double-quoted-string, identifier, (, number, single-quoted-string"
    KUP-01007: at line 1 column 41
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    ORA-06512: at line 1
    It seems that external tables driver does not understand the "NOT (...)" condition. Could anyone suggest how I can achieve what I want in a different way?
    Thank you.
    Denis

    Another method would be to simply remove the "LOAD WHEN condition" and create a view on the external table which filters the data.
    CREATE EXTTAB_VIEW AS
    SELECT * FROM EXTTAB
    WHERE not (c1 is null and c2 is null and c3 is null);

  • How do I save Icon templates with the Project files?

    My project files are stored in a folder, say, "My Documents\LabVIEW\My Project", and this folder, in turn, is saved under (Sub)Version Control.  I'd like to include a sub-folder called "Icon Templates" that could contain the icon templates I'm using in this project, but they seem to be "forced" into "My Documents\LabVIEW Data\Icon Templates" (almost the same, but the "owning folder" is different).
    Is there any way to change, preferably on a Project-by-Project basis, the default location for Icon Editor templates?  I tried to figure this out, and saw that one could change where "3rd Party" templates were stored, but that didn't seem to do anything (maybe because I don't understand the concept of a "3rd Party"?).
    An important (to me!) reason to accomplish this is that I want to commit my new icons when I commit the rest of the Project, and have them appear when I checkout the project on another machine (or do an update from the Repository).
    Suggestions welcomed ...
    Bob Schor

    Well, I thought of this as well.  I did change Default Data Documents (which seems to be where Icon Editor expects to find its Templates file) to My Documents\LabVIEW (instead of LabVIEW Data), and that worked (sort of).  But that still doesn't solve my problem.  I have multiple projects -- My Docs\LabVIEW\Project 1, say, and My Docs\LabVIEW\Project 2, and want to have a specific set of icon templates for each stored, say, as Project 1\Icon Templates and Project 2\Icon Templates.
    My problem is two-fold.  First, there is a setting in Icon Editors, Tools, that seems to be designed to let you designate where your "special" templates are located, which I've set to, for example, My Docs\LabVIEW\Project 1\Icon Templates.  However, when using the Icon editor, these templates never appear!  It's as though it's still "locked" into the "3rd Party" sub-folder of the parent Icon Templates folder.  Second, even if this worked (which it doesn't), is there a way to "embed" this setting as part of Project so that the settings "stay with the Project" (and can thereby be customized)?  One important reason to do this is to simplify organizing Projects and folders on disk -- I keep them "together" (use the same structure for both, so a Project is contained, on disk, inside a single set of nested folders), which greatly simplifies and facilitates using Version Control to manage development.
    Thanks for the reference.  I didn't know about all of the symbolic names.  It does appear that they are only used in the VI Search Path entry, correct?
    Bob Schor

  • Something 's wrong with the linked files

    I have a web movie with 6 linked images; if i publish with
    director mx, they load perfect; if i publish with the director 11
    versión, they don't load. I think the problem is with the
    path, but i can't find where. any idea?
    sayeg

    I think i found the answer. but i need ideas, please.
    sayeg

  • How to create a table report with alphabetic link at the top

    Hello,
    I have a db table of users, and have created a report based on this table, however I want to have each aphabet letter at the top of the report so that users can click on the letter and see all records where the username field starts with that letter.
    How can I achieve this?
    Thanks,

    Hello user11243298 (please tell us your name),
    Your report query would look something like this (assuming page number is 1):
    select some_column1, some_column2
    from your_user_table
    where username like :P1_INITIAL || '%'
    For the letters at the top of the report, here's a couple options:
    - If you want all letters to appear whether or not there are any rows, you can create a series of buttons or links, one for each letter, and specify the target URL to submit back to the report page, setting the item P1_INITIAL to each letter.
    - If you want only letters that have rows, one way is to create a dynamic LOV based on a query like this:
    select distinct upper(substr(username, 1, 1)) d, distinct upper(substr(username, 1, 1)) v
    from your_user_table
    order by upper(substr(username, 1, 1))
    Then use that for a select list with submit, again targeting the report page and setting P1_INITIAL to the selected value.
    Hope this helps (if it does, please reward it),
    John

  • Netezza to File - drop external table step

    All-
    I am using IKM netezza to file (external table) for one of my interface. I have customized this IKM by adding the step (drop external table) in beginning and end.
    After execution there is no drop external table step in the operator log. It is showing only 3 steps.
    1. Create external table
    2. Insert new rows
    3. Commit.
    Can somebody help me how to get the step which is newly added in IKM?
    Thanks & Regards,
    Saravanan Rajavel

    Check the options - is it set to always execute?

  • Creating a link with the Link Tool

    I used the Link Tool to create a Link in my pdf file.  The link is set to open a website file.  I created 2, one with just a little text and the other was a picture that was 200 X 300 px.  When I follow the links, each is opening a full web page.  I expected that with the Text link because I put the text on an html page but the picture I sized to the 200X300 but that opened a full web page also.  When setting up the link to the Web File I did not see an additional settings as far as how to open the web page such as _parent or _child etc.  I believe it is normally the Target.
    Does anyone know how I would either do this with the link tool or know of a better way to do it overall?
    Thanks
    Bob

    Hi,
    You may be confusing HTML markup for links with PDF links.
    In PDF, HTML markup is not applicable.
    So "target_xxxx" or any other HTML 'stuff' cannot be used.
    For the graphic file (JPG, PNG, whatever), make a web page file that is configured to display the graphic file in a manner you desire.
    The web link you set in the PDF, with Acrobat, will result in this web page file opening.
    This is the file that will control how the graphic is rendered.
    If needed, a resource for HTML "how to" is W3 Schools.
    Be well...

  • How to keep last line together with table?

    Hi guys,
    I am new to Reports , so please excuse me for probably primitive question.
    I am creating consolidated invoices report consisting of invoice date + 2 last lines of company signature like Yours, XXYYY Ltd.
    Depending on number of lines in invoice data it is possible that only these 2 signature lines are printed on last page.
    How to force keeping them together with invoice data?
    Thanks in advance,
    Asnate

    Hi,
    If you have repeating Invoice lines, and they are filling up your page, then there is no other option but to orphan the "Yours, XXYYY Ltd" onto another page.
    Somethings you can do increase the amount of space on your page is decrease the size of your top and bottom margins, and also make sure you have no excess whitespace either in your template or within your placeholders.
    Unfortunately, anything that is displayed after a table of repeating lines, where there is no limit to the number of lines, is susceptable to being orphaned, as there is no guarantee that it will fit onto the page.
    Hope this helps,
    Cj

  • When I choose a photo to share on face book a drop down box appears with the message, Face book didn't recognise the information you entered for the account this is my Face book login information I use to access my face book page how can I overcome the b

    when I choose a photo to share on face book a drop down box appears with the message, Face book didn't recognise the information you entered for the account this is my Face book login information I use to access my face book page how can I overcome this.

    Delete abd re-enter your Facebook account information jnder the accounts tab in the iPhoto preferences
    You may also want to take a look at the user tip for Facebook problems
    LN

  • My laptop died so I've installed itunes onto another PC and my music is all on an external hardive which is connected to the new PC. How can I sync my ipod with the new itunes and get all the music onto itunes?

    My laptop died so I've installed itunes onto another PC and my music is all on an external hardive which is connected to the new PC. How can I sync my ipod with the new itunes and get all the music onto itunes?

    You might consider itunes match for moving CDs you've copied into your itunes library if you dont have a way to use home sharing.
    iTunes match is an optional service offered by apple that costs about $25 a year.  It scans your music library and if it finds music that is already in apple's itunes catalog it'll automatically "unlock"/"store" these in the cloud for you.  Items that it does not find in the catalog it'll upload and store these in the cloud for you and you can download them on your devices.  See http://www.apple.com/itunes/itunes-match/

  • How can I create a client console and work together with the Cache Server?

    How can I edit the following Cache-Server.cmd file to create a client console and work together with the Cache Server?
    The following is the cache server file: contacts-cache-server.cmd
    @echo off
    setlocal
    if (%COHERENCE_HOME%)==() (
    set COHERENCE_HOME=c:\coherence
    set CONFIG=C:\home\oracle\coherence\Contacts
    set COH_OPTS=%COH_OPTS% -server -cp %COHERENCE_HOME%\lib\coherence.jar;C:\home\oracle\
    coherence\Contacts;C:\home\oracle\coherence\Contacts\classes;
    set COH_OPTS=%COH_OPTS% -Dtangosol.coherence.cacheconfig=%CONFIG%\contacts-cache-config.xml
    java %COH_OPTS% -Xms1g -Xmx1g -Xloggc: com.tangosol.net.DefaultCacheServer %2 %3 %4 %5 %6 %7
    :exitEdited by: junez on 23-Oct-2009 09:20

    Hi
    To run the console, change DefaultCacheServer to CacheFactory
    Paul

  • I am using  MacBook Pro and running 10.8.4. iTunes version 11.0.4. Several of the cd's i have imported recently have been split into multiple albums by ITunes. How do I bring all the bonus tracks together with the original album?

    I am using a MacBook Pro and running 10.8.4. iTunes version 11.0.4. Several of the cd's i have imported recently have been split into multiple albums by iTunes where it has identified bonus tracks. How do I bring all the bonus tracks together with the original album?

    Hello there, Fineshot.
    The following Knowledge Base article might provide some information that should help you resolve the issue you're having:
    Why aren't songs with the same album art grouped together?
    http://support.apple.com/kb/TS1468
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • When I'm travelling I import photos onto my laptop's external hard drive and work on the images using virtual copies to develop them. When I get home, I want to import all the photos together with the developed virtual copies fromt the laptop's external H

    When I'm travelling I import photos onto my laptop's external hard drive and work on the images using virtual copies to develop them. When I get home, I want to import all the photos together with the developed virtual copies fromt the laptop's external HD into LR5 on my PC desktop. But if I use the import button in LR I only get the original photo, not the developed copies. What am I doing wrong?

    Since your current editing workflow is based around Virtual Copies there are no actual files containing the edit data. Therefore, you'll need to use the 'Import from another catalog' option ( see File menu).

  • How to import external table, which exist in export dump file.

    My export dump file has one external table. While i stated importing into my developement instance , I am getting the error "ORA-00911: invalid character".
    The original definition of the extenal table is as given below
    CREATE TABLE EXT_TABLE_EV02_PRICEMARTDATA
    EGORDERNUMBER VARCHAR2(255 BYTE),
    EGINVOICENUMBER VARCHAR2(255 BYTE),
    EGLINEITEMNUMBER VARCHAR2(255 BYTE),
    EGUID VARCHAR2(255 BYTE),
    EGBRAND VARCHAR2(255 BYTE),
    EGPRODUCTLINE VARCHAR2(255 BYTE),
    EGPRODUCTGROUP VARCHAR2(255 BYTE),
    EGPRODUCTSUBGROUP VARCHAR2(255 BYTE),
    EGMARKETCLASS VARCHAR2(255 BYTE),
    EGSKU VARCHAR2(255 BYTE),
    EGDISCOUNTGROUP VARCHAR2(255 BYTE),
    EGREGION VARCHAR2(255 BYTE),
    EGAREA VARCHAR2(255 BYTE),
    EGSALESREP VARCHAR2(255 BYTE),
    EGDISTRIBUTORCODE VARCHAR2(255 BYTE),
    EGDISTRIBUTOR VARCHAR2(255 BYTE),
    EGECMTIER VARCHAR2(255 BYTE),
    EGECM VARCHAR2(255 BYTE),
    EGSOLATIER VARCHAR2(255 BYTE),
    EGSOLA VARCHAR2(255 BYTE),
    EGTRANSACTIONTYPE VARCHAR2(255 BYTE),
    EGQUOTENUMBER VARCHAR2(255 BYTE),
    EGACCOUNTTYPE VARCHAR2(255 BYTE),
    EGFINANCIALENTITY VARCHAR2(255 BYTE),
    C25 VARCHAR2(255 BYTE),
    EGFINANCIALENTITYCODE VARCHAR2(255 BYTE),
    C27 VARCHAR2(255 BYTE),
    EGBUYINGGROUP VARCHAR2(255 BYTE),
    QTY NUMBER,
    EGTRXDATE DATE,
    EGLISTPRICE NUMBER,
    EGUOM NUMBER,
    EGUNITLISTPRICE NUMBER,
    EGMULTIPLIER NUMBER,
    EGUNITDISCOUNT NUMBER,
    EGCUSTOMERNETPRICE NUMBER,
    EGFREIGHTOUTBOUNDCHARGES NUMBER,
    EGMINIMUMORDERCHARGES NUMBER,
    EGRESTOCKINGCHARGES NUMBER,
    EGINVOICEPRICE NUMBER,
    EGCOMMISSIONS NUMBER,
    EGCASHDISCOUNTS NUMBER,
    EGBUYINGGROUPREBATES NUMBER,
    EGINCENTIVEREBATES NUMBER,
    EGRETURNS NUMBER,
    EGOTHERCREDITS NUMBER,
    EGCOOP NUMBER,
    EGPOCKETPRICE NUMBER,
    EGFREIGHTCOSTS NUMBER,
    EGJOURNALBILLINGCOSTS NUMBER,
    EGMINIMUMORDERCOSTS NUMBER,
    EGORDERENTRYCOSTS NUMBER,
    EGRESTOCKINGCOSTSWAREHOUSE NUMBER,
    EGRETURNSCOSTADMIN NUMBER,
    EGMATERIALCOSTS NUMBER,
    EGLABORCOSTS NUMBER,
    EGOVERHEADCOSTS NUMBER,
    EGPRICEADMINISTRATIONCOSTS NUMBER,
    EGSHORTPAYMENTCOSTS NUMBER,
    EGTERMCOSTS NUMBER,
    EGPOCKETMARGIN NUMBER,
    EGPOCKETMARGINGP NUMBER,
    EGWEIGHTEDAVEMULTIPLIER NUMBER
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
    DEFAULT DIRECTORY EV02_PRICEMARTDATA_CSV_CON
    ACCESS PARAMETERS
    LOCATION (EV02_PRICEMARTDATA_CSV_CON:'VPA.csv')
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    NOMONITORING;
    While importing , when i seen the log file , it is failing the create the external table. Getting the error "ORA-00911: invalid character".
    Can some one suggest how to import external tables
    Addressing this issue will be highly appriciated.
    Naveen

    Hi Srinath,
    When i observed the create table syntax of external table from import dump log file, it show few lines as below. I could not understand these special characters. And create table definationis failing with special character viz ORA-00911: invalid character
    ACCESS PARAMETERS
    LOCATION (EV02_PRICEMARTDATA_CSV_CON:'VPA.csv').
    I even observed the create table DDL from TOAD. It is same as i mentioned earlier
    Naveen

  • How to hide system tables when using the Oracle SQL Developer?

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? I didnt find a way to create a separate database using the Oracle Sql Developer. I see all the tables together, and would like to differentiate between different databases.
    Can anyone explain to me how to do these things?
    Thanks,

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? Your posting is not clear,again tell something more on tables tree,what u want to achieve with it.
    How to hide system tables when using the Oracle SQL Developer? if u connected with sys, system or user with dba role then u have a privilege to see these tables,so revoke the privilege/role from ur user to view this tables if ur connected other then sys,system,
    I didnt find a way to create a separate database using the Oracle Sql Developer. DBCA is a tool for creating the new database.
    Kuljeet

Maybe you are looking for