Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

External Table with tab field delimiter

orclrunnerJun 5 2014 — edited Jun 6 2014

Using Oracle 11g Release 2

Here is my create external table statement:

CREATE TABLE global.ext_a_attrib_cmt

(   tag      VARCHAR2(255)

  , from$    VARCHAR2(255)

  , to$      VARCHAR2(255)

)

   ORGANIZATION EXTERNAL

(  TYPE ORACLE_LOADER

   DEFAULT DIRECTORY EXT_DATA_DIR

      ACCESS PARAMETERS

        (  RECORDS DELIMITED BY NEWLINE

           SKIP 1

           BADFILE EXT_BAD_DIR:'a_attrib_cmt.bad'

           LOGFILE EXT_LOG_DIR:'a_attrib_cmt.log'

       --    FIELDS TERMINATED BY 0X'09' -- TAB delimited 

           FIELDS TERMINATED BY '\t'

           OPTIONALLY ENCLOSED BY "'"

           MISSING FIELD VALUES ARE NULL

           REJECT ROWS WITH ALL NULL FIELDS

        )

      LOCATION ('a_attrib_cmt.txt')

)

   REJECT LIMIT UNLIMITED

   NOMONITORING

/

Here is the text file, a_attrib_cmt.txt:

tagfromto
FrontSpringType_idCoilw/FRONT COIL SPRINGS
FrontSpringType_idLeafw/FRONT LEAF SPRINGS
Aspiration_idNaturally Aspiratedw/o TURBO
Aspiration_idTurbochargedw/TURBO
Aspiration_idSuperchargedw/SUPERCHARGER
SteeringType_idRackw/RACK & PINION STEERING
SteeringType_idGearw/GEAR STEERING
FuelDeliveryType_idCARBw/o FUEL INJ
FuelDeliveryType_idFIw/FUEL INJ
BedLength_id?" BED
BodyNumDoors_id? DR
BrakeSystem_idw/? BRAKES
FrontBrakeType_idw/FRONT ? BRAKES

PUBLIC has read/write privs on the directory EXT_DATA_DIR.

Here is the error I'm getting:

globall@ORA1> select count(*) from ext_a_attrib_cmt;

select count(*) from ext_a_attrib_cmt

*

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 "minussign": expecting one of: "badfile, byteordermark, characterset, column, data, delimited, discardfile,

disable_directory_link_check, fields, fixed, load, logfile, language, nodiscardfile, nobadfile, nologfile, date_cache, preprocessor, readsize, string, skip,

territory, variable"

KUP-01007: at line 5 column 8

This post has been answered by Solomon Yakobson on Jun 5 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2014
Added on Jun 5 2014
3 comments
6,499 views