External table error (no data showing)

Hi Guys,
Need some help on my external table. I have an existing external table (MA_EXT) when I select the table no data is showing and there is no error in the log file and there is no bad file. The next thing I did to check if the error is in the file is to copy the same code and just rename the external table (MA_EXT2) and it worked just fine (data is showing no changes in the code just external table name). So the next step I did was to drop and recreate the external table (MA_EXT) but the same thing happened the data is not showing and no error in log file and no bad file.
BTW this is in 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
Has anyone encountered this? TIA...

eadelrosario wrote:
Hi Guys,
Need some help on my external table. I have an existing external table (MA_EXT) when I select the table no data is showing and there is no error in the log file and there is no bad file. The next thing I did to check if the error is in the file is to copy the same code and just rename the external table (MA_EXT2) and it worked just fine (data is showing no changes in the code just external table name). So the next step I did was to drop and recreate the external table (MA_EXT) but the same thing happened the data is not showing and no error in log file and no bad file.
BTW this is in 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
Has anyone encountered this? TIA...you have a mystery & we have no clues.
Either you are correct or Oracle is correct.
I bet Oracle is correct more often than you.
You are free to submit a Bug Report if you are sure that Oracle is mis-behaving.

Similar Messages

  • Querying external tables ERROR no not English version 10g R2 ¿BUG 5172459?

    Hello
    I have a serious problem when trying to view the content of external tables under Oracle 10R2 in Spanish
    Steps to perform:
    1. Make directory on file system (in oracle server side).
    2. Copy a data file into this directory.
    3. Login (sqlplus) as "sys as sysdba"
    4. Make one oracle directory object
    5. Grant permits read / write to a user 'simple_uesr'
    6. Logout sys, and login as 'simple_user'
    7. Make a external table, which uses the directory and data file.
    8. Run query 'select * from myExtTable' to check it.
    I have repeated these steps on Oracle 9i Enterprise, Oracle 10gR2 Enterprise, and Oracle 10g XE, and always, always worked perfectly (no problems).
    The problem occurs in the client's DB (Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 SPANISH), everything works fine until the step 8 (querying external tables), where systematically the following error occurs:
    ERROR en línea 1:
    ORA-29913: error al ejecutar la llamada de ODCIEXTTABLEOPEN
    ORA-29400: error de cartucho de datos
    KUP-00552: internal XAD package failed to load
    ORA-06512: en "SYS.ORACLE_LOADER", línea 19
    I have made many tests, such as assigning a wrong directory to external table, remove the data file, remove access permissions, and always, always gives the same error, nerver error "file not found...etc, etc".
    I have concluded that the failure, which occurs before Oracle even try to access the file system, but I do not know what may be the cause.
    Searching the Internet, I found the following links:
    http://www.dba-oracle.com/t_ora_29913_external_table_error.htm
    http://zalbb.itpub.net/post/980/249423
    Where mention the BUG 5172459 (MetaLink Note: 373168.1), but after follow the directions, still does not work.
    Can anyone help me with this problem?
    Thanks!
    Full details of the DB which gives the error
    SO: Windows 2003 Server Standard SP1.
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
    PL/SQL Release 10.2.0.2.0 - Production
    CORE 10.2.0.2.0 Production
    TNS for 32-bit Windows: Version 10.2.0.2.0 - Production
    NLSRTL Version 10.2.0.2.0 - Production
    show parameter nls;
    NAME TYPE VALUE
    nls_calendar string
    nls_comp string
    nls_currency string
    nls_date_format string
    nls_date_language string
    nls_dual_currency string
    nls_iso_currency string
    nls_language string SPANISH
    nls_length_semantics string BYTE
    nls_nchar_conv_excp string FALSE
    nls_numeric_characters string
    nls_sort string
    nls_territory string SPAIN
    nls_time_format string
    nls_timestamp_format string
    nls_timestamp_tz_format string
    nls_time_tz_format string
    -- NLS_SESSION_PARAMETERS
    select * from NLS_SESSION_PARAMETERS order by parameter;
    PARAMETER VALUE
    NLS_CALENDAR GREGORIAN
    NLS_COMP BINARY
    NLS_CURRENCY €
    NLS_DATE_FORMAT DD/MM/RR
    NLS_DATE_LANGUAGE SPANISH
    NLS_DUAL_CURRENCY €
    NLS_ISO_CURRENCY SPAIN
    NLS_LANGUAGE SPANISH
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NUMERIC_CHARACTERS ,.
    NLS_SORT SPANISH
    NLS_TERRITORY SPAIN
    NLS_TIME_FORMAT HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT DD/MM/RR HH24:MI:SSXFF
    NLS_TIMESTAMP_TZ_FORMAT DD/MM/RR HH24:MI:SSXFF TZR
    NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
    -- NLS_INSTANCE_PARAMETERS
    select * from NLS_INSTANCE_PARAMETERS order by parameter;
    PARAMETER VALUE
    NLS_CALENDAR
    NLS_COMP
    NLS_CURRENCY
    NLS_DATE_FORMAT
    NLS_DATE_LANGUAGE
    NLS_DUAL_CURRENCY
    NLS_ISO_CURRENCY
    NLS_LANGUAGE SPANISH
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NUMERIC_CHARACTERS
    NLS_SORT
    NLS_TERRITORY SPAIN
    NLS_TIME_FORMAT
    NLS_TIMESTAMP_FORMAT
    NLS_TIMESTAMP_TZ_FORMAT
    NLS_TIME_TZ_FORMAT
    -- NLS_DATABASE_PARAMETERS
    select * from NLS_DATABASE_PARAMETERS order by parameter;
    PARAMETER VALUE
    NLS_CALENDAR GREGORIAN
    NLS_CHARACTERSET WE8MSWIN1252
    NLS_COMP BINARY
    NLS_CURRENCY ?
    NLS_DATE_FORMAT DD/MM/RR
    NLS_DATE_LANGUAGE SPANISH
    NLS_DUAL_CURRENCY ?
    NLS_ISO_CURRENCY SPAIN
    NLS_LANGUAGE SPANISH
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NUMERIC_CHARACTERS ,.
    NLS_RDBMS_VERSION 10.2.0.2.0
    NLS_SORT SPANISH
    NLS_TERRITORY SPAIN
    NLS_TIME_FORMAT HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT DD/MM/RR HH24:MI:SSXFF
    NLS_TIMESTAMP_TZ_FORMAT DD/MM/RR HH24:MI:SSXFF TZR
    NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
    END.

    jpadron_uy wrote:
    ERROR en línea 1:
    ORA-29913: error al ejecutar la llamada de ODCIEXTTABLEOPEN
    ORA-29400: error de cartucho de datos
    KUP-00552: internal XAD package failed to load
    ORA-06512: en "SYS.ORACLE_LOADER", línea 19Hola!
    Let's go through errors you posted:
    First error (ORA-29913) indicating error occurs when Oracle tryed to access external table.
    Then ORA-29400 says that error has occurred in a data cartridge external procedure.
    And then finally KUP-00552 - an error was encountered while attempting to initialize the XAD package.
    So did you check state of the XAD package in that database?
    Also, please post code you used in steps 4. and 7.
    HTH

  • SQL LOADER , EXTERNAL  TABLE and ODBS DATA SOURCE

    hello
    Can any body help loading data from dbase file .dbt to an oracle 10g table.
    I tried last day with SQL LOADER, EXTERNAL table , and ODBC data source.
    Why all of these utilities still failing to solve my problem ?
    Is there an efficient way to reach this goal ?
    Thanks in advance

    export the dbase data file to text file,
    then you have choice of using either sql loader or external table option to use.
    regards

  • External Table Error

    While Creating an external table I got following error
    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 "missing": expecting one of: "badfile, byteordermark, characterset, column, data, delimited, discardfile, disable_directory_link_check, exit, fields, fixed, load, logfile, language, nodiscardfile, nobadfile, nologfile, date_cache, processing, readsize, string, skip, territory, varia¿gÀ"
    KUP-01007: at line 2 column 14
    ORA-06512: at
    My CREATE TABLE Syntax is as follow
    CREATE TABLE APPL_NOTE_EXT
    CUS_ID NUMBER(10),
    TEXT VARCHAR2(2000 ),
    PAGE_NUM NUMBER(3)
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
    DEFAULT DIRECTORY EXT_TABLE
    ACCESS PARAMETERS
    RECORDS DELIMITED BY newline
    MISSING FIELD VALUES ARE NULL
    FIELDS
    CUS_ID POSITION (2:10) ,
    TEXT POSITION (39:1737),
    PAGE_NUM POSITION (13:14)
    LOCATION ('APPNOTES.TXT')
    REJECT LIMIT Unlimited
    NOPARALLEL
    NOMONITORING;

    This is the result I obtained after creating the table with your script:
    Table created.
    SQL> desc APPL_NOTE_EXT
    Name                                      Null?    Type
    CUS_ID                                             NUMBER(10)
    TEXT                                               VARCHAR2(2000)
    PAGE_NUM                                           NUMBER(3)The only issue I faced was the directory object. I had to create it. May be you don't have privileges on the specified ext_table directory. Please verify.
    ~ Madrid

  • External table error in windows environment

    Can i create external table from directory which is on network drive not on local server where oracle is intsalled. I am receiving follwoing error when I try to query external table poinittng to directory object on network drive in windows. Thanks
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04063: unable to open log file BRIDGIES_EXTERNAL_4564_4844.log
    OS error The system cannot find the file specified.
    ORA-06512: at "SYS.ORACLE_LOADER", line 19

    I suspect not. Copy the file to a local disk location, point the directory or a directory to it, update the external table definition if necessary, repeat. If this run works then you have your answer.
    HTH -- Mark D Powell --

  • Oracle 9i External Tables Error

    Hello,
    I am getting following error in querying an external table.
    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 8 column 23
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    OR
    Below is how External table is created.
    CREATE TABLE CXS_Datatraffic (
    tablespace_name varchar2(30),
    owner varchar2(30),
    index_name varchar2(30),
    clustering_factor number,
    leaf_blocks number,
    blevel number,
    next_extent number,
    extents number,
    isegment_type varchar2(18),
    index_bytes number,
    table_tspace_name varchar2(30),
    table_owner varchar2(30),
    table_name varchar2(30),
    table_extent number,
    table_extents number,
    tsegment_type varchar2(18),
    table_bytes NUMBER,
    Acurdate date
    ORGANIZATION EXTERNAL (
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY CXS_XMLPATH
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','
    MISSING FIELD VALUES ARE NULL
    tablespace_name char(30),
    owner char(30),
    index_name char(30),
    clustering_factor number,
    leaf_blocks number,
    blevel number,
    next_extent number,
    extents number,
    isegment_type char(18),
    index_bytes number,
    table_tspace_name char(30),
    table_owner char(30),
    table_name char(30),
    table_extent number,
    table_extents number,
    tsegment_type char(18),
    table_bytes NUMBER,
    Acurdate date
    LOCATION ('DataTraffic.csv')
    PARALLEL 5
    REJECT LIMIT UNLIMITED;
    And below is the datafile content(just one record) I am trying to read.
    "APPLSYSX","APPLSYS","FND_ATTACHED_DOCUMENTS_U1",1100732,17459,2,,56,"INDEX",162660352,"APPLSYSD","APPLSYS",,"FND_ATTACHED_DOCUMENTS",,84,"TABLE",344981504,21-DEC-09
    I am not sure where I am doing wrong.
    Please help.
    Thank you for your time in reading this post.
    -R

    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','i think this is the problem. DELIMITED should be ',' and TERMINATED must be NEWLINE

  • External Table error in Oracle9i Database

    Hi List,
    Please see the following errors and guide me that how can I resolve these
    errors?
    SQL> CREATE OR REPLACE DIRECTORY EXT_TABLE
    2 AS 'G:\';
    Directory created.
    1 CREATE TABLE ORDER_ITEM_EXT
    2 ( ORDER_ID NUMBER(12), LINE_ITEM_ID NUMBER(3), PRODUCT_ID
    NUMBER(6),
    3 UNIT_PRICE NUMBER(8,2), QUANTITY NUMBER(8))
    4 ORGANIZATION EXTERNAL
    5 (TYPE ORACLE_LOADER
    6 DEFAULT DIRECTORY EXT_TABLE
    7 ACCESS PARAMETERS (RECORDS DELIMITED BY NEWLINE
    8 FIELDS TERMINATED BY ',')
    9* LOCATION ('ORDER_ITEMS1.TXT','ORDER_ITEMS2.TXT'))
    SQL> /
    Table created.
    SQL> SELECT * FROM ORDER_ITEM_EXT;
    SELECT * FROM ORDER_ITEM_EXT
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file ORDER_ITEMS1.TXT in EXT_TABLE not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    ORA-06512: at line 1
    SQL> ALTER PACKAGE ORACLE_LOADER COMPILE PACKAGE;
    ALTER PACKAGE ORACLE_LOADER COMPILE PACKAGE
    ERROR at line 1:
    ORA-04043: object ORACLE_LOADER does not exist
    Need your help
    Thanks A Lot in advance
    Natalia

    I suspect not. Copy the file to a local disk location, point the directory or a directory to it, update the external table definition if necessary, repeat. If this run works then you have your answer.
    HTH -- Mark D Powell --

  • External Table error: KUP-04043: table column not found in external source

    I am trying to get the syntaxc correct for an external table.
    I keep getting this error:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04043: table column not found in external source: SITE
    29913. 00000 - "error in executing %s callout"
    *Cause:    The execution of the specified callout caused an error.
    *Action:   Examine the error messages take appropriate action.
    Data looks like: (some of one of many files, where the character field widths are variable)
    ZZ,ANYOLDDATA,77777,25002000,201103,12,555.555,11.222
    ZZ,ANYOLDDATA,77777,25002300,201103,34,602.162,8.777
    ZZ,ANYOLDDATA,77777,25002400,201103,12,319.127,9.666
    ZZ,OTHERDATA,77121,55069600,201103,34,25.544,1.332
    ZZ,OTHERDATAS,77122,55069600,201103,22, 1.011,0.293
    External table def I have:
    CREATE TABLE MY_INPUT (
    FIRST_CODE VARCHAR2(10),
    SECOND_CODE VARCHAR2(20),
    MY_NUMBER VARCHAR2(20),
    THIRD_CODE VARCHAR2(20),
    YEARMO VARCHAR2(6),
    N NUMBER,
    MEAN NUMBER,
    SD NUMBER
    ORGANIZATION EXTERNAL (
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY INPUT_DIR
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY newline
    BADFILE INPUT_LOGDIR:'bad.bad'
    LOGFILE INPUT_LOGDIR:'log.log'
    DISCARDFILE INPUT_LOGDIR:'discards.log'
    fields terminated by ',' LRTRIM
    MISSING FIELD VALUES ARE NULL
    REJECT ROWS WITH ALL NULL FIELDS
    ( THIRD_CODE,N,MEAN,SD) )
    LOCATION ( 'myfile.rpt')
    NOPARALLEL
    REJECT LIMIT UNLIMITED;
    I have the directories INPUT_DIR and INPUT_LOGDIR defined, and read/write access granted to the user who creates the table and tried to query from it.
    I have tried various combinations of VARCHAR2 lengths and NUMBER vs VARCHAR2 for some of the numeric fields.
    I am not getting any Bad, Log or Discard files.
    I can do a GET from the SQL prompt, and see the data:
    SQL> GET 'C:\temp\input_dir'myfile.rpt'
    and I see the data.
    Windows 7
    Oracle 11.2
    I am not positive of the newline record delimiter - these files are generated by an automated system. Probably generated on a UNIX machine.
    Any suggestions on what to try would be helpful.
    KUP-04043 error message says to check the syntax .. .I am running out of thigns to check.
    Thank you - Karen

    And the get ( I created the sanitized file, so we have a real working, failing, santiized example):
    SQL> get c:\Inputfiles\myfile.rpt
    1 ZZ,ANYOLDDATA,77777,25002000,201103,12,555.555,11.222
    2 ZZ,ANYOLDDATA,77777,25002300,201103,34,602.162,8.777
    3 ZZ,ANYOLDDATA,77777,25002400,201103,12,319.127,9.666
    4 ZZ,OTHERDATA,77121,55069600,201103,34,25.544,1.332
    5* ZZ,OTHERDATAS,77122,55069600,201103,22, 1.011,0.293
    So the full series is:
    CREATE DIRECTORY INPUT_DIR AS 'C:\InputFiles';
    -- grant READ and WRITE
    GRANT READ ON DIRECTORY INPUT_DIR TO ILQC;
    GRANT WRITE ON DIRECTORY INPUT_DIR TO ILQC;
    -- As SYS, create the bad/log/discard directory:
    CREATE DIRECTORY LOGDIR AS 'C:\InputFiles\Logs';
    -- grant READ and WRITE
    GRANT READ ON DIRECTORY LOGDIR TO ILQC;
    GRANT WRITE ON DIRECTORY LOGDIR TO ILQC;
    CREATE TABLE MY_INPUT (
    FIRST_CODE VARCHAR2(10),
    SECOND_CODE VARCHAR2(20),
    MY_NUMBER VARCHAR2(20),
    THIRD_CODE VARCHAR2(20),
    YEARMO VARCHAR2(6),
    N NUMBER,
    MEAN NUMBER,
    SD NUMBER
    ORGANIZATION EXTERNAL (
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY INPUT_DIR
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY newline
    BADFILE INPUT_LOGDIR:'bad.bad'
    LOGFILE INPUT_LOGDIR:'log.log'
    DISCARDFILE INPUT_LOGDIR:'discards.log'
    fields terminated by ',' LRTRIM
    MISSING FIELD VALUES ARE NULL
    REJECT ROWS WITH ALL NULL FIELDS
    ( THIRD_CODE,N,MEAN,SD) )
    LOCATION ( 'myfile.rpt')
    NOPARALLEL
    REJECT LIMIT UNLIMITED;
    SELECT * FROM my_input;
    and GET is as above.

  • Report question: how to use external table to bring data from excel file?

    i need to import excel data into oracle report, how to do that? thanks.

    Hi... What is the error message you get when using external tables?
    You must create a control center connection in the Connection Explorer.
    I recommend you read this:
    http://download-east.oracle.com/docs/cd/B31080_01/doc/owb.102/b28223/toc.htm
    Look for the following sections:
    - Using External Tables (and the "External Tables versus Flat File Operators" sub section)
    - About Flat File Modules
    - Chapter 16, Deploying Target Systems
    Regards,
    Marcos

  • External Table Creation for .dat file

    Hi,
    I have created an External Table, below is the code
    CREATE TABLE  "NFO_DATA_LOAD_STAGING_TEST1"
       (     "DATA_DISCRAPANCY" VARCHAR2(100),
         "APPLICATION_NUMBER" VARCHAR2(30),
         "BATCH_NUMBER" VARCHAR2(30),
         "AMC_ID" VARCHAR2(30),
         "TA_BRANCH" VARCHAR2(30),
         "SERVER_DATE_1" DATE,
         "SERVER_TIME_1" DATE,
         "ARN_NUMBER" VARCHAR2(30),
         "BROKER_CODE" VARCHAR2(30),
         "SUB_BROKER_CODE_1" VARCHAR2(30),
         "SUB_BROKER_CODE_2" VARCHAR2(30),
         "SUB_BROKER_CODE_3" VARCHAR2(30),
         "BROKER_ADDRESS" VARCHAR2(100),
         "FOLIO_NO" NUMBER,
         "MODE_OF_HOLDING" VARCHAR2(30),
         "STATUS" VARCHAR2(30),
         "SALUATION" VARCHAR2(30),
         "CONTACT_PERSON_NAME" VARCHAR2(30),
         "INVESTOR_NAME" VARCHAR2(30),
         "GUARDIAN_NAME" VARCHAR2(30),
         "PAN_NO" VARCHAR2(30),
         "POA_HOLDER_NAME" VARCHAR2(30),
         "KYC" VARCHAR2(30),
         "GUARDIAN_PAN_NO" VARCHAR2(30),
         "DOB_DOC" DATE,
         "GUARDIAN_RELATIONSHIP" VARCHAR2(30),
         "SALUATION_2" VARCHAR2(30),
         "DATE_OF_BIRTH" DATE,
         "SECOND_HOLDER_NAME" VARCHAR2(30),
         "GUARDIAN_NAME_2" VARCHAR2(30),
         "PAN_NO_2" VARCHAR2(30),
         "GUARDIAN_PAN_NO_2" VARCHAR2(30),
         "KYC_2" VARCHAR2(30),
         "GUARDIAN_RELATIONSHIP_2" VARCHAR2(30),
         "SALUATION_3" VARCHAR2(30),
         "DATE_OF_BIRTH_3" DATE,
         "THIRD_HOLDER_NAME" VARCHAR2(30),
         "GUARDIAN_NAME_3" VARCHAR2(30),
         "PAN_NO_3" VARCHAR2(30),
         "GUARDIAN_PAN_NO_3" VARCHAR2(30),
         "KYC_3" VARCHAR2(30),
         "GUARDIAN_RELATIONSHIP_3" VARCHAR2(30),
         "ADDRESS_LINE_1" VARCHAR2(100),
         "PINCODE" NUMBER,
         "ADDRESS_LINE_2" VARCHAR2(100),
         "CONTACT_NUMBER_O" VARCHAR2(15),
         "CITY" VARCHAR2(30),
         "CONTACT_NUMBER_R" VARCHAR2(15),
         "STATE" VARCHAR2(30),
         "MOBILE_NUMBER" VARCHAR2(15),
         "COUNTRY" VARCHAR2(30),
         "EMAIL_ID" VARCHAR2(30),
         "ALT_EMAIL_ID" VARCHAR2(30),
         "ADDRESS_LINE_1_A" VARCHAR2(100),
         "PINCODE_A" NUMBER,
         "ADDRESS_LINE_2_A" VARCHAR2(100),
         "CONTACT_NUMBER_O_A" VARCHAR2(15),
         "CITY_A" VARCHAR2(30),
         "CONTACT_NUMBER_R_A" VARCHAR2(15),
         "STATE_A" VARCHAR2(30),
         "MOBILE_NUMBER_A" VARCHAR2(15),
         "COUNTRY_A" VARCHAR2(30),
         "EMAIL_ID_A" VARCHAR2(30),
         "ALT_EMAIL_ID_A" VARCHAR2(30),
         "DESPATCH_ACCOUNT" VARCHAR2(30),
         "REDEMPTION_PAYOUT" VARCHAR2(30),
         "I_PIN_ASSIGN" VARCHAR2(30),
         "DIVIDEND_PAYOUT" VARCHAR2(30),
         "T_PIN_ASSIGN" VARCHAR2(30),
         "TO_FUND_NAME" VARCHAR2(30),
         "TO_FUND_ID" VARCHAR2(30),
         "OPTION_F_S" VARCHAR2(30),
         "MCR_NO" NUMBER,
         "BANK_NAME" VARCHAR2(30),
         "ACCOUNT_NUMBER" NUMBER,
         "BANK_BRANCH" VARCHAR2(30),
         "ACCOUNT_TYPE" VARCHAR2(30),
         "MCR_NO_P" NUMBER,
         "CHEQUE_DD_NO" NUMBER,
         "BANK_NAME_P" VARCHAR2(30),
         "PAYMENT_DATE" DATE,
         "BANK_BRANCH_P" VARCHAR2(30),
         "ADVICE_NO" NUMBER,
         "PAYMENT_TYPE_P" VARCHAR2(30),
         "AMOUNT_P" NUMBER,
         "MINIMUM_AMOUNT" NUMBER,
         "AMOUNT_WORDS" VARCHAR2(1000),
         "NOMINEE_NAME" VARCHAR2(30),
         "SALUATION_STG" VARCHAR2(30),
         "NOMINEE_DOB_STG" DATE,
         "GUARDIAN_NAME_STG" VARCHAR2(30),
         "RELATIONSHIP_STG" VARCHAR2(30),
         "ADDRESS_LINE_1_STG" VARCHAR2(100),
         "COUNTRY_STG" VARCHAR2(30),
         "ADDRESS_LINE_2_STG" VARCHAR2(100),
         "PINCODE_STG" NUMBER,
         "CITY_STG" VARCHAR2(30),
         "CONTACT_NUMBER_STG" VARCHAR2(15),
         "STATE_STG" VARCHAR2(30),
         "MOBILE_NUMBER_STG" VARCHAR2(15),
         "REMARKS_STG" VARCHAR2(100),
         "EXCEPTION_CHK_STG" CHAR(1),
         "HOLD_CHK_STG" CHAR(1),
         "PAN_STG" CHAR(1),
         "BOARD_RESOLUTION_STG" CHAR(1),
         "KYC_STG" CHAR(1),
         "MOA_STG" CHAR(1),
         "CHEQUE_STG" CHAR(1),
         "ASL_STG" CHAR(1),
         "TRUST_DEED_STG" CHAR(1),
         "PARTNERSHIP_DEED_STG" CHAR(1),
         "BYE_LAWS_STG" CHAR(1),
         "AUTO_DEBIT_STG" CHAR(1),
         "ENROLLMENT_FORM_STG" CHAR(1),
         "APPROVED" VARCHAR2(10),
         "CREATED_BY" NUMBER,
         "CREATION_DATE" DATE,
         "LAST_UPDATE_DATE" DATE,
         "LAST_UPDATED_BY" NUMBER,
         "FUND_TYPE" VARCHAR2(30)
       ORGANIZATION EXTERNAL
        ( TYPE ORACLE_LOADER
          DEFAULT DIRECTORY DUMP_DIR
          ACCESS PARAMETERS
          ( RECORDS DELIMITED BY NEWLINE
               BADFILE 'emp.bad'
                          LOGFILE 't.log_xt'               
                          FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY ' " ' LDTRIM
                          REJECT ROWS WITH ALL NULL FIELDS
                   "DATA_DISCRAPANCY" 
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "APPLICATION_NUMBER"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BATCH_NUMBER"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "AMC_ID"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "TA_BRANCH"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SERVER_DATE_1"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SERVER_TIME_1"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ARN_NUMBER"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BROKER_CODE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SUB_BROKER_CODE_1"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SUB_BROKER_CODE_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SUB_BROKER_CODE_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BROKER_ADDRESS"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "FOLIO_NO"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MODE_OF_HOLDING"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "STATUS"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SALUATION"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CONTACT_PERSON_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "INVESTOR_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PAN_NO"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "POA_HOLDER_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "KYC"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_PAN_NO"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "DOB_DOC"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_RELATIONSHIP"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SALUATION_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "DATE_OF_BIRTH"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SECOND_HOLDER_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_NAME_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PAN_NO_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_PAN_NO_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "KYC_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_RELATIONSHIP_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SALUATION_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "DATE_OF_BIRTH_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "THIRD_HOLDER_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_NAME_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PAN_NO_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_PAN_NO_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "KYC_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_RELATIONSHIP_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ADDRESS_LINE_1"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PINCODE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ADDRESS_LINE_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CONTACT_NUMBER_O"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CITY"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CONTACT_NUMBER_R"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "STATE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MOBILE_NUMBER"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "COUNTRY"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "EMAIL_ID"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ALT_EMAIL_ID"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ADDRESS_LINE_1_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PINCODE_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ADDRESS_LINE_2_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CONTACT_NUMBER_O_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CITY_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CONTACT_NUMBER_R_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "STATE_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MOBILE_NUMBER_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "COUNTRY_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "EMAIL_ID_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ALT_EMAIL_ID_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "DESPATCH_ACCOUNT"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "REDEMPTION_PAYOUT"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "I_PIN_ASSIGN"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "DIVIDEND_PAYOUT"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "T_PIN_ASSIGN"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "TO_FUND_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "TO_FUND_ID"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "OPTION_F_S"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MCR_NO"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BANK_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ACCOUNT_NUMBER"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BANK_BRANCH"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ACCOUNT_TYPE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MCR_NO_P"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CHEQUE_DD_NO"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BANK_NAME_P"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PAYMENT_DATE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BANK_BRANCH_P"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ADVICE_NO"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PAYMENT_TYPE_P"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "AMOUNT_P"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MINIMUM_AMOUNT"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "AMOUNT_WORDS"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "NOMINEE_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SALUATION_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "NOMINEE_DOB_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_NAME_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "RELATIONSHIP_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ADDRESS_LINE_1_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "COUNTRY_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ADDRESS_LINE_2_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PINCODE_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CITY_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CONTACT_NUMBER_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "STATE_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MOBILE_NUMBER_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "REMARKS_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "EXCEPTION_CHK_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "HOLD_CHK_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PAN_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BOARD_RESOLUTION_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "KYC_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MOA_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CHEQUE_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ASL_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "TRUST_DEED_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PARTNERSHIP_DEED_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BYE_LAWS_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "AUTO_DEBIT_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ENROLLMENT_FORM_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "APPROVED"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CREATED_BY"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CREATION_DATE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "LAST_UPDATE_DATE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "LAST_UPDATED_BY"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "FUND_TYPE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " '
          LOCATION
           ( 'Key_File_Report.dat'
    {code}
    while trying to select the data from external table, am facing the below error.
    {code}
    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: "and, column, exit, (, ltrim, lrtrim, ldrtrim, missing, notrim, rtrim, reject" KUP-01008: the bad identifier was: LDTRIM KUP-01007: at line 4 column 77
    {code}
    can anyone suggest me how to resolve this.
    Regards,
    Sakthi.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

    I think i found the problem:
    KUP-01008: the bad identifier was: LDTRIM KUP-01007: at line 4 column 77There is no LDTRIM. It is LDRTRIM or LRTRIM.
    this should work
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LDRTRIM{code}
    Edited by: Sven W. on Aug 27, 2010 2:59 PM -- removed the blanks in the optionally enclosed spec                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • External Table Error Message

    Here is the error message I get when trying to query from an External Table:
    SQL> select * from customer;
    select * from customer
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04063: unable to open log file customer.log
    OS error No such file or directory
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    ORA-06512: at line 1
    I corrected the following:
    create table TU_DATA(
    ERROR at line 1:
    ORA-00406: COMPATIBLE parameter needs to be 9.0.0.0.0 or greater
    By Adding:
    COMPATIBLE 9.0.0
    to my /Users/oracle/9iR2/orahome/dbs/initdw.ora file

    What database utility are you using to view the table?
    If sqlplus try this:
    Col Entryno  For A20 Tru
    Col Glaccountno  For A20 Tru
    Col Postingdate  For A20 Tru
    Col Documenttype  For A20 Tru
    Col Documentno  For A20 Tru
    Col Description  For A20 Tru
    Col Balaccountno  For A20 Tru
    Col Amount  For A20 Tru
    Col Globaldimension1Code  For A20 Tru
    Col Globaldimension2Code  For A20 Tru
    Col Userid  For A20 Tru
    Col Sourcecode  For A20 Tru
    Col Balaccounttype  For A20 Tru
    Col Documentdate  For A20 Tru
    Col Sourceno  For A20 Tru
    Col Sourcetype For A20 Tru
    Select * From STG0_NAV_GL_ENTRY_EXT;:p

  • Regarding external table error

    Hi,
    I have created a csv file using excel as source, then I creaed a flat file module and imported the source.
    Next I have created a external table for that file.
    By using ssh I copied my source file (.csv file) to the server location ( By drag and drop method)
    In the server it shows the file name as Income Source.csv file.
    I deployed the external table.
    When I am trying to opening the table it shows the message like
    file not found in that location.
    When I view the generated SQL of external table
    in that query : the location the file name as Income_Source not Income Sourcce.csv ( I am thinking this might be the problem)
    Please give me the suggestions.
    Thanks,
    Venkat

    user642615 wrote:
    Hi,
    I have created a csv file using excel as source, then I creaed a flat file module and imported the source.
    Next I have created a external table for that file.
    By using ssh I copied my source file (.csv file) to the server location ( By drag and drop method)
    In the server it shows the file name as Income Source.csv file.
    I deployed the external table.
    When I am trying to opening the table it shows the message like
    file not found in that location.
    When I view the generated SQL of external table
    in that query : the location the file name as Income_Source not Income Sourcce.csv ( I am thinking this might be the problem)
    Please give me the suggestions.
    Thanks,
    VenkatFile name should be exactly same as the filename in the directory.
    Its a good practise to use filename as one string or have some char such as " _" to seperate two strings rather than have space such as INCOME SOURCE
    i presume you have given permissions on the directory for owb to read the file.
    Edited by: Darthvader-647181 on Mar 31, 2009 2:42 AM

  • Need info on using external tables load/write data

    Hi All,
    We are planning to load conversion/interface data using external tables feature available in the Oracle database.
    Also for outbound interfaces, we are planning to use the same feature to write data in the file system.
    If you have done similar exercise in any of your projects, please share sample code units. Also, let me know if there
    are any cons/limitations in this approach.
    Thanks,
    Balaji

    Please see old threads for similar discussion -- http://forums.oracle.com/forums/search.jspa?threadID=&q=external+AND+tables&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Error while loading  data into External table from the flat files

    HI ,
    We have a data load in our project which feeds the oracle external tables with the data from the Flat Files(.bcp files) in unix.
    While loading the data, we are encountering the following error.
    Error occured (Error Code : -29913 and Error Message : ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04063: un) while loading data into table_ext
    Please let us know what needs to be done in this case to solve this problem.
    Thanks,
    Kartheek

    Kartheek,
    I used Google (mine still works).... please check those links:
    http://oraclequirks.blogspot.com/2008/07/ora-29400-data-cartridge-error.html
    http://jonathanlewis.wordpress.com/2011/02/15/ora-29913/
    HTH,
    Thierry

  • External Tables Date Error

    I get error while loading data into Oracle 11g R2 with EXTERNAL TABLES.
    error processing column DATE_M in row 1 for datafile C:\app\S\admin\orcl\dpdump\TABLE_EXT.txt
    ORA-01847: day of month must be between 1 and last day of month
    error processing column DATE_M in row 2 for datafile C:\app\S\admin\orcl\dpdump\TABLE_EXT.txt
    ORA-01843: not a valid month
    error processing column DATE_M in row 3 for datafile C:\app\S\admin\orcl\dpdump\TABLE_EXT.txt
    ORA-01843: not a valid month
    error processing column DATE_M in row 4 for datafile C:\app\S\admin\orcl\dpdump\TABLE_EXT.txt
    ORA-01847: day of month must be between 1 and last day of month
    error processing column DATE_M in row 5 for datafile C:\app\S\admin\orcl\dpdump\TABLE_EXT.txt
    ORA-01843: not a valid month
    error processing column DATE_M in row 6 for datafile C:\app\S\admin\orcl\dpdump\TABLE_EXT.txt
    ORA-01843: not a valid month
    error processing column DATE_M in row 7 for datafile C:\app\S\admin\orcl\dpdump\TABLE_EXT.txt
    ORA-01843: not a valid month
    error processing column DATE_M in row 8 for datafile C:\app\S\admin\orcl\dpdump\TABLE_EXT.txt
    ORA-01843: not a valid month
    error processing column DATE_M in row 9 for datafile C:\app\S\admin\orcl\dpdump\TABLE_EXT.txt
    ORA-01843: not a valid month
    error processing column DATE_M in row 10 for datafile C:\app\S\admin\orcl\dpdump\TABLE_EXT.txt
    ORA-01843: not a valid month-----
    CREATE TABLE TABLE_EXT
       (  "COMPANY" VARCHAR2(101),
      "COMPANY_VN" VARCHAR2(15),
      "IL" VARCHAR2(17),
      "TERMINAL" VARCHAR2(8),
      "T_NO" VARCHAR2(15),
      "NAME" VARCHAR2(108),
      "SNAME" VARCHAR2(50),
      "REF_NO" VARCHAR2(23),
      "AMOUNT" NUMBER(15,2),
      "DATE_M" DATE,
      "TIME" VARCHAR2(11),
      "TEL_NO" VARCHAR2(25),
      "ADDRESS" VARCHAR2(50)
       ORGANIZATION EXTERNAL (
      TYPE ORACLE_LOADER
      DEFAULT DIRECTORY data_pump_dir
      ACCESS PARAMETERS (
        RECORDS DELIMITED BY NEWLINE
        FIELDS TERMINATED BY '|'
        MISSING FIELD VALUES ARE NULL
    COMPANY,
    COMPANY_VN,
    IL,
    TERMINAL,
    T_NO,
    NAME,
    SNAME,
    REF_NO,
    AMOUNT decimal  ,
    DATE_M CHAR  date_format DATE mask "dd.mm.yyyy" ,
    TIME,
    TEL_NO,
    ADDRESS
      LOCATION ('TABLE_EXT.txt')
    REJECT LIMIT 10------
    Sample Data:
    CITY HOSPITAL|04680072124|CITY|00614860|47746244218|JOHN|WHITE|172871|420,12|21.08.2011|14:26|0806422627784|06
    CITY HOSPITAL|04680072124|CITY|00614847|14274017676|BRAD|BROWN|448127|810,00|22.08.2011|11:04|0806427488476|06
    CITY HOSPITAL|04680072124|CITY|00614842|16218778886|PETER|BALSON|862626|12,00|24.08.2011|14:16|0806062177008|06
    CITY HOSPITAL|04680072124|CITY|00614846|14607666866|GEORGE|LOUIS|688811|40,10|24.08.2011|08:48|0806424172468|06
    CITY HOSPITAL|04680072124|CITY|00614846|14607666866|GEORGE|LOUIS|460481|42,64|24.08.2011|08:47|0806424172468|06
    CITY HOSPITAL|04680072124|CITY|00614860|18460662462|JR|TEPE|404622|44,16|22.04.2011|20:08|0806446446866|06
    CITY HOSPITAL|04680072124|CITY|00614840|47207688618|BARRY|HRAN|402886|42,40|27.08.2011|11:12|0806478768007|06
    CITY HOSPITAL|04680072124|CITY|00614847|42161048612|TOM|HIGGS|148640|12,00|06.06.2011|08:18|0806068076700|06
    CITY HOSPITAL|04680072124|CITY|00614846|42161048612|TOM|HIGGS|208847|12,00|06.06.2011|08:46|0806068076700|06-----
    NLS_DATE_FORMAT : DD/MM/RRRR-----
    NOTE:
    I tried :
    TARIH CHAR date_format DATE mask "DD/MM/RRRR" , same error.
    Edited by: 904386 on Jan 24, 2012 6:42 AM

    I have no experience with external tables but my understanding is that they are described the same was as you would describe a file to be loaded by SQL Loader. When ever I create a sql loader control file to load a date column I use syntax like this:
    DATE_M                                             "TO_DATE(:DATE_M,'dd.mm.yyyy')",Not sure if that will work for external tables or not.

Maybe you are looking for

  • Get values from selected row in a Table?

    Hello. I'm on VC 7.1 (the trial version downloaded from SDN). I'm trying to figure out a way to retrieve some values from the currently selected row in a Table element through the output connector. I have a web-service which returns results to the Ta

  • Toggle Finder sort order with AppleScript under Lion 10.7?

    For years I've been using this AppleScript to toggle the sort order of a Finder window: if sort direction of column id size column of list view options of window 1 is normal then     set sort direction of column id size column of list view options of

  • Auth-fail vlan won't support re-authentication

    We're using ACS 1113 Appliance with ACS version 4.1.4.13. via the RADIUS attributes, clients are re-authenticated every 16 hours. The machine cache is set to 12 hours. This means that, if the user doesn't log off within 16 hours, he will be denied ne

  • Problem in selecting the count

    This the query which gives output as select substr(c.department_edesc,1,15)Department ,      substr(a.employee_code,1,8)Code,      substr(b.employee_edesc,1,20)Name ,      SUBSTR(min(a.log_time),1,8) INTIEM,      SUBSTR(max(a.log_time),1,8) OUTTIEM,

  • Can I use Amazon's affiliate widget html in my site?

    I've configured what I want the "slideshow" widget to have via Amazon's page, generated the code that includes linkage to my affiiliate info, and pasted it to a iWeb html snippet.  Looks good in iWeb, but disappears when I publish.  Thanks for any su