Executing external table mapping

Got this type of error message on executing a mapping of an external table to a another table. I have checked all the file sources, locations, etc.
ORA-29913: error in executing ODCIEXTTABLEOPEN callout ORA-29400: data cartridge error KUP-04040: blah_blah.csv in XXX_XXX_XXX_LOC not found.

Hi.
This means the file is not in the directory it should be or maybe you don't have proper OS permissions to access the file.
The following query will show you where Oracle is looking for the file.
select a.type_owner, a.table_name, b.directory_name, b.directory_path
from dba_external_tables a,
     dba_directories b
where a.default_directory_name = b.directory_name
  and a.table_name like '&1'Regards,
Marcos

Similar Messages

  • SQL Developer 3.0.02 & External table

    Hello all,
    I encountered an interesting error while working with SQL Developer. I created external table mapped on data file in csv format. Everything works fine up to moment I double clicked the table header of the first column to make data sorting. Since I am not able to see table data even if the SQL Developer has been restarted.
    In the 'Data Editor - Log' window I can see the text as follows:
    ORA-00600: internal error code, arguments: [rworupo.1], [17], [10], [], [], [], [], []
    When I open SQL view of that table I can see:
    -- Unable to render TABLE DDL for object FSM.COMPANY with DBMS_METADATA attempting internal generator.
    CREATE TABLE COMPANY
    CUSTOMER_PROVIDER_REFID VARCHAR2(50 BYTE)
    , NAME VARCHAR2(50 BYTE)
    , REG_NUMBER VARCHAR2(50 BYTE)
    , VAT VARCHAR2(50 BYTE)
    , ADDRESS_STREET VARCHAR2(100 BYTE)
    , ADDRESS_BUILDING_NO VARCHAR2(20 BYTE)
    , ADDRESS_CITY VARCHAR2(50 BYTE)
    , ADDRESS_POSTCODE VARCHAR2(50 BYTE)
    , ADDRESS_COUNTRY VARCHAR2(50 BYTE)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY ETL_SOURCE
    ACCESS PARAMETERS
    RECORDS DELIMITED BY '\n'
    badfile ETL_SOURCE:'COMPANY.bad'
    logfile ETL_SOURCE:'COMPANY.log'
    discardfile ETL_SOURCE:'COMPANY.dsc'
    FIELDS TERMINATED BY ";"
    LRTRIM missing field VALUES are NULL
    "CUSTOMER_PROVIDER_REFID",
    "NAME",     
    "REG_NUMBER",     
    "VAT",
    "ADDRESS_STREET",     
    "ADDRESS_BUILDING_NO",     
    "ADDRESS_CITY",     
    "ADDRESS_POSTCODE",     
    "ADDRESS_COUNTRY"
    LOCATION
    ETL_SOURCE: 'Company.csv'
    REJECT LIMIT UNLIMITED
    In the log file for that table there is nothing, what could explain the error.
    Does anybody know how to fix it.
    Thanks for any idea.
    Jiri

    Hello Jiri!
    this is because of SQL Developer does not support "order by" over external tables.
    In general it is not disabled in SQL developer to use it for external tables but due to unknown reason execution of select including "order by" clause over external table generates ORA-00600 error.
    SQL Developer is saving all used "order by", "filter" settings (and many others) to special cache (user specific XML file) and this setting is used next time you open specific object - table.
    It means when you apply "sorting" on external table
    - oracle generates ORA-00600
    - used "order by" is stored by SQL Developer into cahce XML file
    - ...and you cannot open this table from your SQL developer anymore
    How to correct it:
    - go to SQL developer cache folder (something like C:\Documents and Settings\[username]\Application Data\SQL Developer)
    - try to find file "*GridSettings.xml" which contains this bad cache information
    there are usually tons of GridSettings.xml files
    -1134293461GridSettings.xml
    -1134293492GridSettings.xml
    -1134293523GridSettings.xml
    you have to find file which contains your specific extenal table name like...
    <uniqueName>SELECT * FROM "SCHEMANAME"."EXTERNAL_TABLE"</uniqueName>
    - find "sortClauses" tag
    <sortClauses>
    <Item class="java.lang.String">3 asc</Item>
    <Item/>
    </sortClauses>
    - you can now edit/correct content of this file/tag or just delete it completely
    - or you can easily delete complete cache folder - BUT in this case all specific user setting can be deleted!!!
    - then your table is accessible again :-)
    Regards
    Radim

  • Execution Errors while running a mapping having external table operator

    when I am executing a mapping with external table operator, I am getting the following error:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout ORA-29400: data cartridge error KUP-04040: file testdoc.txt in CONN_FLAT_FILE not found
    Here CONN_FLAT_FILE is the connector.
    The flat file location has been registered with the user name (as used for Windows login), password (as used for Windows Login) and host name as the name that is used for accessing my machine in the network. The path to the file name is given from the root folder like C:\.....
    Please let me know things that I need to check.
    Regards

    If you're using an external table check if you can see the data by querying that table. Possible errors: wrong directory or wrong file structure.
    Regards,
    Jörg

  • OWB Mapping involving Oracle External Table to  Oracle Target Table.

    Hi All,
    I created a mapping which involves External Table as source & oracle table as target.
    Following were steps followed.
    1> Created Directory & External Table on oracle server
    2> Attached Text file with ',' delimiter to the External Table.
    3> Imported the External Table in source module.
    4> Created mapping which involves External Table as Source & Oracle Table as Target.
    5> Validated & Generated Mapping in OWB.
    6> Deployed the mapping in Deployment Manager.
    7> Executed the mapping in Deployment Manager.
    Execution Results: Completed with errors.
    No error message is displayed, I am wondering where can I get more information about the error message?
    Thanks in Advance.
    Regards,
    Vidyanand

    Hi,
    Look in the logfile <your runtime owner>.log.* under the directory <owb home>/owb/log
    thanks

  • Error when i fetch the external table in oracle 9i ?

    External table is created.
    But, when i select the external table , it is thrwing the following error.
    I have given READ and WRITE permission to the oracle directory.
    And, i having the flat file with comma delimited data.
    SQL> create table mohan_ext (
    2 EMPNO NUMBER(5) ,
    3 JOB VARCHAR2(15),
    4 SALARY NUMBER(8,2),
    5 MGR NUMBER(5) ,
    6 HIREDATE DATE,
    7 DEPTNO NUMBER(5)
    8 )
    9 organization external
    10 (type oracle_loader
    11 default directory ext_dir
    12 access parameters (records delimited by newline
    13 fields terminated by ','
    14 missing field values are null
    15 (
    16 EMPNO NUMBER(5:5) ,
    17 JOB VARCHAR2(15:15),
    18 SALARY NUMBER(8,2:8,2),
    19 MGR NUMBER(5:5) ,
    20 HIREDATE DATE,
    21 DEPTNO NUMBER(5:5)
    22 )
    23 )
    24 LOCATION('flat.txt'));
    Table created.
    SQL> select * from mohan_ext;
    select * from mohan_ext
    ERROR at line 1:
    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 "identifier": expecting one of: "comma, char, date, defaultif,
    decimal, double, float, integer, (, nullif, oracle_date, oracle_number, position, raw, recnum, ),
    unsigned, varrawc, varchar, varraw, varcharc, zoned"
    KUP-01008: the bad identifier was: NUMBER
    KUP-01007: at line 5 column 11
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    ORA-06512: at line 1
    SQL>

    You may need to scrub some of the data prior to using it as an external table. For instance, ensure that you do not have any extra commas lingering around somewhere within the data as this could cause mapping issues with the data. I've used this process hundreds of times, and more often than not there is an extra comma somewhere that is causing the issue.

  • Error in accessing data through external table

    Hi,
    I am getting the following error while trying to view data through external table,
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04062: no data source specified
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    according to this error "KUP-04062: no data source specified", location should be specified and i have specified the location as
    LOCATION (<diectory_name>:' '),
    then also it is giving the same error.
    Please Help!

    I am also got the same error when retrieving the data from external table.
    I resolve this problem, like this:
    1. I imported the flat file(.csv) into repository.
    2. Map that flat file fields to database table cols.
    3. Deployed the mapping using controlcenter, and run the mapping.
    4. if it fails there, i loaded the flatfile data through the command prompt using "sqlldr" statement and control file is our mapping control file.
    5 Then it loaded data into database table sucessfully.
    Thanks.

  • External Tables on Windows

    I have Oracle loaded on a Unix server. I am trying to execute stored procedures using External Tables. My external table directories reside on a Windows OS. While I was successful in creating the external tables and the logical directories mapped to the OS drectory, I was not able to execute the procedure. It came up with errors.
    I have the necessary grants on these directories.
    The procedures runs successfully if the directories are created on the Unix box
    14:41:21 Start Executing PL/SQL block ...
    14:41:21 Starting execution of PL/SQL block...
    Error -29913: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04063: unable to open log file exttbl_1970284.log
    OS error No such file or directory
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    ORA-06512: at line 1
    14:41:21 Execution failed: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    14:41:21 ORA-29400: data cartridge error
    14:41:21 KUP-04063: unable to open log file invpbl_1970284.log
    14:41:21 OS error No such file or directory
    14:41:21 ORA-06512: at line 7
    14:41:21 End Executing PL/SQL block
    I have checked the read/write permissions on the Windows folder and they have full access
    It is critical for me to make it work on a Windows platform

    Hi
    Extract of Metalink note
    You query the following view and found a mismatch between directory path.
    SQL> select * from dba_directories ;
    OWNER     DIRECTORY_NAME     DIRECTORY_PATH
    SYS     ADMIN_DAT_DIR     e:\external_tables\data
    SYS     ADMIN_DAT_DIR     e:\external_tables\bad
    SYS     ADMIN_DAT_DIR     e:\external_tables\log      
    SQL> select * from dba_external_locations where table_name='ADMIN_EXT_EMPLOYEES';
    OWNER TABLE_NAME      LOCATION DIRECTORY_OWNER      DIRECTORY_NAME
    SCOTT ADMIN_EXT_EMPLOYEES empxt1.dat SYS           ADMIN_DAT_DIR
    SCOTT ADMIN_EXT_EMPLOYEES empxt2.dat SYS           ADMIN_DAT_DIR
    Fix --- Check for the OS directory "data,bad and log" exists under e:\external_tables. If this does not exist then create and rerun the query.
    Regards
    Hector Ulloa Ligarius

  • External Table woes

    Hi all,
    I have an external table set up to read a text file and update two fields in a table via batch file that launches a SQL script (batch file is for sheduling in Windows task manager, can't use Enterprise Manager due to embedded license).
    It's a very simple program that works great in my test environment, but I keep getting this error when I try to run it in production:
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file RESULT_1.DAT in TIMEC not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    yadda, yadda.
    The file is there! There are permissions set at the O/S level to user "everyone" (this is a Windows environment). The directory is a mapped drive, so I tried the UNC path but still no success.
    Any suggestions? Thanks in advance!

    Could you post the 'create table syntax' for your case?
    Also, could you provide information from data dictionary view 'dba_directories'?

  • How to use remote directory for external table

    Hi Folks,
    I have 2 Oracle 11GR2 64 bit database installed on Win 2008 server as prod1 and prod2.
    I have one directory created on prod1 server as EXT_TAB_DIR using the path as D:\OrsDWtest_dir .
    I want to use this directory in Prod2 server and use external table using this remote directory.
    I am able to access the Prod1 directory from Prod2 machine and also i have created Network map drive as Z drive pointing to that prod1 D:\OrsDWtest_dir directory. Also i checked read and Write permissions are there . I am able to create the external table but when i try to fetch the data i m getting below error ..
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file IOMM_20121213_060736.csv in EXT_TAB_DIR not found
    now my doubt is this possible ? Can we use remote directory for External table ? or is there is there any alternative way to achieve same ?
    Thanks & Regards,
    Vikash Jain(DBA)

    could you confirm the name and the existence of this file "IOMM_20121213_060736.csv" ?
    same error like:
    http://www.oracle-base.com/articles/9i/external-tables-9i.php
    if the load files have not been saved in the appropriate directory the following result will be displayed.
    SQL> SELECT *
      2  FROM   countries_ext
      3  ORDER BY country_name;
    SELECT *
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file Countries1.txt in EXT_TABLES not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    ORA-06512: at line 1Edited by: Fran on 10-ene-2013 23:32

  • Procedure Transformation not executing with a Mapping

    I have a mapping that uses a number of procedure and function transformations.
    Basically the flow is as follows source data from an external table, push into a funtion transformation for validation output from this is feed into a splitter.
    Where validation fails flow from splitter is pushed into another function transformation and output from that get pushed into an error table.
    Where validation passes output flow from splitter combined with flow from a procedure transformation is pushed into a target table.
    The issue is where validation passes it appears not be execute the procedure - hence appropriate values to the target table is null, executing this procedure in SQLPLUS works fine.
    The strange thing is where validation fails the data flows nicely to the error table.
    Is there an issue in using procedure transformations in this way?
    Thanks in advance for any help.
    Message was edited by:
    kayvic01

    Hi,
    The flow looks ok...when the validation passes the output attributes from the splitter outgroup are not properly taken in by the procedure. Since u have executed the procedure seperately you will manually give the IN attributes for the procedure...check whether ur manual IN for the procedure matches with the outgroup from the splitter. Generate an internediate script and check...it will give you the solution,
    Regards
    Bharath

  • OWB 10 Release2 External Tables

    Hi
    Tried with external tables, if i try to execute a select statement it retrieves 0 rows from external table. But if I do a select count(*) it showing 64939 as count.
    Created the mapping and tried to validate..it validated with warnings abt the datatypes. Deployed and executed..success(?!) But there is no data loaded. What will be th reason.This file has around 40 cols and 26MB in size.
    Also please let me know the data type change - for example I have CHAR data from flat file..in external everything is VARCHAR2. What we need to do?
    Change the VARCHAR2 as the source data type(CHAR) or target data type ( char, number,date)?
    -NB

    Hi,
    I just created the external table from flat file. After deployment, if you Query (Select statement) the external table it should retrieve the data right?. But it is retrieving 0 rows but you query for count(*), it showing the count how is that?
    I have created external tables with some other flat files which has less number of rows say below 5000 its working fine. i am able select and view the data from external table.
    May be I need to verify the size of each field in flat file.
    -NB

  • Create external table fails

    I'm trying to map a trace file to an external table' but I'm getting "missing keyword" error.
    set verify off
    create or replace directory 'TRACE_DIR' as '/db_home/oracle/product/diag/rdbms/test/dtms_t/trace';
    column id new_value os_user;
    SELECT sys_context('USERENV', 'OS_USER') id FROM DUAL;
    BEGIN
          EXECUTE IMMEDIATE 'alter session set tracefile_identifier = &os_user' ;
    END;
    column tracefile_loc new_value tracefile
    select SUBSTR(tracefile_loc,INSTR(tracefile_loc,'/',-1)+1) tracefile_loc
    from
    ( select value ||'/'||(select instance_name from v$instance) ||'_ora_'||
                  (select spid||case when traceid is not null then '_'||traceid else null end
                        from v$process where addr = (select paddr from v$session
                                                     where sid = (select sid from v$mystat
                                                                  where rownum = 1
                  ) || '.trc' tracefile_loc
       from v$parameter where name = 'user_dump_dest'
    jbrock@ddtms_t> CREATE TABLE trace_ext
      2                     (line varchar2(80)
      3                     )
      4       ORGANIZATION EXTERNAL
      5       (
      6         TYPE ORACLE_LOADER
      7         DEFAULT DIRECTORY trace_dir
      8         ACCESS PARAMETERS
      9         (
    10           records delimited by newline
    11           missing field values are null
    12           ( line
    13           )
    14         )
    15         LOCATION (&&tracefile)
    16       )
    17       REJECT LIMIT UNLIMITED;
           LOCATION (ddtms_t_ora_9101_JBROCK.trc)
    ERROR at line 15:
    ORA-00905: missing keyword

    Hi,
    jimmyb wrote:
    ... jbrock@ddtms_t> CREATE TABLE trace_ext
    2                     (line varchar2(80)
    3                     )
    4       ORGANIZATION EXTERNAL
    5       (
    6         TYPE ORACLE_LOADER
    7         DEFAULT DIRECTORY trace_dir
    8         ACCESS PARAMETERS
    9         (
    10           records delimited by newline
    11           missing field values are null
    12           ( line
    13           )
    14         )
    15         LOCATION (&&tracefile)
    16       )
    17       REJECT LIMIT UNLIMITED;
    LOCATION (ddtms_t_ora_9101_JBROCK.trc)
    ERROR at line 15:
    ORA-00905: missing keyword
    Doesn't the location have to be in single-qutoes? For line 15, try
    LOCATION ('&&tracefile')

  • Reject the footer using the external table

    Hi,
    I have a flat file with fixed length which have a header and a footer.
    My file is something like this:
    HADF.TXT0309
    D12345ABCD
    D22345ABCD
    FOOTERHJ
    I want to create an external table based on that file, but
    I don't want to have the header and the footer in my table. To eliminate the header I used skip 1, but I don't know how to eliminate the footer.
    Any example and suggestions will be appreciated
    Thank you for your time and consideration
    Catalin

    Hi,
    This problem may be due to several reasons. I am aware of few reasons.
    1)Have you deployed the external table first?
    2) If you do not have your data base client and server running in the same machine, you should place the csv file in the database server machine's 'c:\CSV' folder in order to create the external table through database. Then do a select count(*) statement.
    3)Another reason may be as gerardnico said the file name you refered may be wrong.
    I don't know your requirement. If you could create the external table succefully and if you get value for the select count(*) from <external_table_name>, then try to import the external table into the Design Center and map it with the Table you need.
    If you are doing it purely with OWB then,
    Do you have the file Export_WithHeaders.csv in the Server machine's 'c:\CSV_FILE' folder?
    Because while importing the metadata of the CSV file the OWB will point to your local machine's 'c:\CSV_FILE' that is why your Validation and Deployment is success without errors.
    But while executing the map it will take the data from Server machine. It will search for the Location 'c:\CSV_FILE' in the server machine and will look for the file Export_WithHeaders.csv there. So create athe same folder setup which you have in your client machine and run this again.
    Try this if you do not get any better answers in this thread

  • External tables on ACFS

    hi
    I use Windows 2008R2 Std. and Oracle 11gR2 RAC
    I have successfully mounted ACFS share
    ASMCMD> volinfo -a
    Diskgroup Name: SHARED
    Volume Name: SHARED_ACFS
    Volume Device: \\.\asm-shared_acfs-106
    State: ENABLED
    Size (MB): 8192
    Resize Unit (MB): 256
    Redundancy: UNPROT
    Stripe Columns: 4
    Stripe Width (K): 128
    Usage: ACFS
    Mountpath: C:\SHARED
    I have created directory in Oracle mapped onto ACFS share
    and granted read,write access to it to my user
    Then I created external table with success BUT...
    though I see metadata
    ADM@proton22> desc t111;
    Name Null? Type
    NAME VARCHAR2(4000)
    VALUE VARCHAR2(4000)
    I got error:
    ADM@proton22> select * from t111;
    select * from t111
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04027: file name check failed: C:\SHARED\EXTTAB\EXT_PARAM.log
    How to cope with this?
    I granted "full control" privileges to "everyone" user at OS level with no avail.
    Edited by: g777 on 2011-06-01 13:47
    SORRY, I MOVED TO RAC FORUM.

    See "Bug 14045247 : KUP-04027 ERROR WHEN QUERY DATA FROM EXTERNAL TABLE ON ACFS" in MOS.
    This is actually reported as not being a Bug:
    "An ACFS directory on the MS-Windows platform is implemented as a JUNCTION,and is therefore a symbolic link. Therefore, DISABLE_DIRECTORY_LINK_CHECK needs to be used, or a non-ACFS directory."
    i.e. when creating the External Table, the DISABLE_DIRECTORY_LINK_CHECK Clause must be used if using the ORACLE_LOADER Access Driver
    e.g. CREATE TABLE ...
    ... ORGANIZATION EXTERNAL
    (TYPE ORACLE_LOADER ... ACCESS PARAMETERS (RECORDS ... DISABLE_DIRECTORY_LINK_CHECK)
    For full syntax see: http://docs.oracle.com/cd/E11882_01/server.112/e22490/et_params.htm
    Also note Security Implications mentioned in above documentation:
    "Use of this parameter involves security risks because symbolic links can potentially be used to redirect the input/output of the external table load operation"

  • EXTERNAL TABLES ON ACFS 11.2 WINDOWS

    hi
    I use Windows 2008R2 Std. and Oracle 11gR2 RAC
    I have successfully mounted ACFS share
    ASMCMD> volinfo -a
    Diskgroup Name: SHARED
    Volume Name: SHARED_ACFS
    Volume Device: \\.\asm-shared_acfs-106
    State: ENABLED
    Size (MB): 8192
    Resize Unit (MB): 256
    Redundancy: UNPROT
    Stripe Columns: 4
    Stripe Width (K): 128
    Usage: ACFS
    Mountpath: C:\SHARED
    I have created directory in Oracle mapped on ACFS share
    and granted read,write access on it to my user
    Then I created external table with success BUT...
    though I see metadata
    ADM@proton22> desc t111;
    Name Null? Type
    NAME VARCHAR2(4000)
    VALUE VARCHAR2(4000)
    I got error:
    ADM@proton22> select * from t111;
    select * from t111
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04027: file name check failed: C:\SHARED\EXTTAB\EXT_PARAM.log
    How to cope with this? Any step by step paper?
    I granted "full control" privileges to "everyone" user at OS level with no avail.
    Edited by: g777 on 2011-06-02 07:12

    Hi!
    I am facing the same problem.
    Can anyone tell me if it the bug has been fixed now, and where to get a bug fix for this one, for instance a reference number?
    Is this bug limited to
    1. a specific version of Oracle (11g R2?)
    2. ACFS file systems in Oracle
    Thank you for answering this one.
    BR,
    Martin Laursen
    SimCorp

Maybe you are looking for

  • Pass a shopping cart attachmnet to the ERP purchase order using ECS?

    Does anyone know if it is poissible to pass attachments from a shopping cart to the ERP extended classic scenario? I know the attachments can be passed when using the classic scenario, I alos know that the attachments will pass to the local SRM purch

  • Getting message : The result set for this selection was empty on sm20

    Hi,    I assigned below parameters in rz10 : rsau/user_selection                                 1 rsau/max_diskspace/per_day                  1950M rsau/max_diskspace/per_file                 650M rsau/enable                                         

  • Flash Player streaming video keeps freezing while audio continues

    Hi, I have been having a problem with flash player for a couple of months now. When watching streaming video's the video will freeze for a second every 5-10 seconds constantly, but the audio continues uninterrupted. I have tried everything, enabling/

  • Iterating dataTable

    Hi I have my existing application non-JSF and I am converting it to JSF one by one (one class/jsp every day). My Current application is simply JSP and Java Bean .I have my backend data stored in hardware boxes (RAID subsystems) Currently I have all m

  • Final Cut Studio on Intel PowerMacs?

    I am planning on eventually upgrading to a top of the line PowerMac for editing using Final Cut Studio (which I currently own and run on my PowerBook), but I have a few questions that I need to figure out before making a decision on what to get and w