SSB模型测试过程中,生成customer表的数据文件customer.tbl中有2999980行记录,(cat customer.tbl |wc -l命令查看)
创建Oracle的外表customer_out使用customer.tbl文件,则查询
select count(*) from customer_out得到的返回结果为有记录2999981行。多出1行来,百思不解。-------------------------------
创建外表的路径:create directory ssbtmp as '/home/oracle/ssbdata/';
创建外表:create table customer_out (
……
) organization external (
type oracle_loader
default directory ssbtmp
access parameters
(
records delimited by newline
fields terminated by '|'
missing field values are null
)location('customer.tbl')
)parallel 2 reject limit unlimited;通过sqlldr进行文件load,能加载正确的数据行数。
可能是数据文件格式与表列数等有出入导致,但是why?PS:ITPUT的讨论氛围明显不足啊。原帖地址:http://www.itpub.net/viewthread.php?tid=1309468