Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> odd problem with external tables. (10.2.0.3 on Red Hat)
i've got an external table defined as
CREATE TABLE "CMAP_WH"."OIL_WORLD_DATA" ( "MEASURE_NAME" VARCHAR2(50 BYTE),
"GEOGRAPHY_NAME" VARCHAR2(50 BYTE), "COMMODITY_NAME" VARCHAR2(50 BYTE), "IGNORE" VARCHAR2(50 BYTE), "YEAR" VARCHAR2(4 BYTE), "QUARTER" VARCHAR2(4 BYTE), "MEASURE_VALUE" NUMBER, "STATUS" VARCHAR2(50 BYTE)
DEFAULT DIRECTORY "OIL_WORLD_LOC" ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE
TERMINATED BY '\t' OPTIONALLY ENCLOSED BY '"' AND '"' NOTRIM (
"MEASURE_NAME" CHAR,
"GEOGRAPHY_NAME" CHAR,
"COMMODITY_NAME" CHAR,
"IGNORE" CHAR,
"YEAR" CHAR,
"QUARTER" CHAR,
"MEASURE_VALUE" CHAR,
"STATUS" CHAR
) ) LOCATION ( "OIL_WORLD_LOC":'oil_world.txt' )
KUP-04021: field formatting error for field STATUS KUP-04023: field start is after end of record KUP-04101: record 1 rejected in file
If i go out and manually insert a '*' into that column it works fine.
Anybody know why oracle isn't just skipping over the blank column?
Here are the ascii values of the first few rows. The bolded character is what I had to manually insert:
Typ=1 Len=40:
83,84,79,67,75,9,69,85,45,50,53,9,83,111,121,98,101,97,110,115,9,42,9,50
,48,48,53,9,49,48,51,9,49,55,51,50,46,56,9,42
Typ=1 Len=40:
83,84,79,67,75,9,69,85,45,50,53,9,83,111,121,98,101,97,110,115,9,42,9,50
,48,48,53,9,52,48,54,9,49,51,56,56,46,54,9,42
Typ=1 Len=40:
83,84,79,67,75,9,69,85,45,50,53,9,83,111,121,98,101,97,110,115,9,42,9,50
,48,48,53,9,55,48,57,9,49,52,56,53,46,50,9,42
CONFIDENTIALITY NOTICE:
This message is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by email reply.
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Mar 09 2007 - 10:47:36 CST
![]() |
![]() |