我正在尝试使用sql loader将.data文件加载到SQL表中。
加载后:
数据文件包含:1287条记录
错误文件包含:51条记录
表记录数:640
代码:
load data
infile 'c:\myfiles\Infile\daily_file.data'
append
into table statement_list
fields terminated by ','
(account_number
,ammount
,transction_text
,merchant
,post_date
,transaction_date)
LOG:
SQL*Loader: Release 11.2.0.2.0 - Production on Mon Apr 13 11:46:13 2015
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Control File: insert_data.ctl
Data File: c:\myfiles\Infile\daily_file.data
Bad File: daily_file.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table STATEMENT_LIST, loaded from every logical record.
Insert option in effect for this table: APPEND
Column Name Position Len Term Encl Datatype
------------------------------ ---------- ----- ---- ---- ---------------------
ACCOUNT_NUMBER FIRST * | CHARACTER
TRANSACTION_SERNO NEXT * | CHARACTER
AMMOUNT NEXT * | CHARACTER
TRANSCTION_TEXT NEXT * | CHARACTER
MERCHANT NEXT * | CHARACTER
POST_DATE NEXT * | CHARACTER
TRANSACTION_DATE NEXT * | CHARACTER
Table STATEMENT_LIST:
851 Rows successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 115584 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 851
Total logical records rejected: 0
Total logical records discarded: 0
Run began on Mon Apr 13 11:46:13 2015
Run ended on Mon Apr 13 11:46:15 2015
Elapsed time was: 00:00:02.10
CPU time was: 00:00:00.10
似乎在sql loader中存在绑定参数和提交点的问题。此代码在重新启动数据库服务器之前工作正常,此错误正在发生。
先谢谢..