create table FTP_BD_PSNCL
(
createdate CHAR(10),
dr NUMBER(10) ,
memo VARCHAR2(100),
pk_corp CHAR(4),
pk_psncl CHAR(20) ,
pk_psncl1 CHAR(20),
psnclasscode VARCHAR2(40) ,
psnclassname VARCHAR2(200) ,
psnclscope NUMBER(38),
sealflag CHAR(10),
ts CHAR(19)
)
organization external
(
type ORACLE_LOADER
default directory FTP_DATASOURCE
access parameters
(
RECORDS DELIMITED BY NEWLINE CHARACTERSET AL32UTF8
BADFILE FTP_DATASOURCE:''BD_PSNCL.LOG''
LOGFILE FTP_DATASOURCE:''BD_PSNCL.LOG''
READSIZE 1048576
FIELDS TERMINATED BY " " RTRIM
MISSING FIELD VALUES ARE NULL
REJECT ROWS WITH ALL NULL FIELDS
(
createdate CHAR(10),
dr NUMBER(10) ,
memo VARCHAR2(100),
pk_corp CHAR(4),
pk_psncl CHAR(20) ,
pk_psncl1 CHAR(20),
psnclasscode VARCHAR2(40) ,
psnclassname VARCHAR2(200) ,
psnclscope NUMBER(38),
sealflag CHAR(10),
ts CHAR(19)
)
)
location (FTP_DATASOURCE:''BD_PSNCL.TXT'')
)
reject limit UNLIMITED