我在尝试时收到以下错误select * from ext_poc
ORA-29913:执行 ODCIEXTTABLEOPEN 调用时出错 ORA-29400:数据磁带错误 KUP-00554:解析访问参数时遇到错误 KUP-01005:语法错误:找到“标识符”:期望以下之一:“binary_double, binary_float, comma, char , date, defaultif, decimal, double, float, integer, (, no, nullif, oracle_date, oracle_number, position, raw, recnum, ), unsigned, varrawc, varchar, varraw, varcharc, zoned” KUP-01008:错误的标识符是:varchar2 KUP-01007:在第 4 行第 10 列 29913。00000 -“执行 %s 标注时出错” *原因:指定标注的执行导致错误。*行动:检查错误消息采取适当的行动。
下面是ddl
表格:
CREATE TABLE "JDASTG"."EXT_POC"
( "ID" varchar2(100),
"NAME" varchar2(100),
"DOB" varchar2(100)
)
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY "SCPO_EXT_DATA"
ACCESS PARAMETERS
( RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY ','
MISSING FIELD VALUES ARE NULL
(id varchar2(100),
name varchar2(100),
dob varchar2(100)
)
)
LOCATION
( 'xyz_aldrin.csv'
)
);
varchar2(100)
PS:但是,如果将其更改为,则不会发生此错误char(100)
:
MISSING FIELD VALUES ARE NULL
(id char(100),
name char(100),
dob char(100)
)