sqlldr匯入資料包錯 Field in data file exceeds maximum length
value used for ROWS parameter changed from 64 to 19
Record 1: Rejected - Error on table DELLYSD.SHIPLABEL, column TNINTERNALID.
Field in data file exceeds maximum length
Record 2: Rejected - Error on table DELLYSD.SHIPLABEL, column TNINTERNALID.
Field in data file exceeds maximum length
Record 4: Rejected - Error on table DELLYSD.SHIPLABEL, column TNINTERNALID.
Field in data file exceeds maximum length
Record 5: Rejected - Error on table DELLYSD.SHIPLABEL, column TNINTERNALID.
Field in data file exceeds maximum length
Record 3: Rejected - Error on table DELLYSD.SHIPLABEL, column TNINTERNALID.
ORA-12899: value too large for column "DELLYSD"."SHIPLABEL"."TNINTERNALID" (actual: 965, maximum: 60)
Record 6: Rejected - Error on table DELLYSD.SHIPLABEL, column MESGID.
ORA-01400: cannot insert NULL into ("DELLYSD"."SHIPLABEL"."MESGID")
Symptoms Loading long columns using sqlldr,the following error is reported:
" Record 1: Rejected - Error on table CRM_ATIC_HEADER_DIF, column LONG_DESC.
Field in data file exceeds maximum length "
Cause In the control file,char(n) had to be specified for all the "varchar2" and "long" columns that were there in the table definition
.
E.g. Control file:
LOAD DATA
INFILE data.dat
APPEND INTO TABLE sload
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
(
PROCESS_DT,
PROCESS_ID,
PROCESS_FLG,
TICKET_ID ,
TICKET_TYPE ,
TECHNOLOGY ,
SUBFLAVOR ,
LIB_VER_NUM ,
PRIORITY ,
STATE ,
OPEN_DATE DATE 'DD-MON-YY',
REV_RELEASE ,
SHORT_DESC ,
LONG_DESC
)
Note that LONG_DESC is a long type described in the table definition of sload.
There are many other columns that are described as varchar2 in the table definition.
But in the control file char(n) where n is an integer is not specified. Fix 1.Check if there are any LONG or VARCHAR2 columns in the table where the data has to be loaded
2.Check the control file to make sure whether char(n) has been included for those corresponding columns.
Taking the example of the above control file,if these changes are made:
3.Changing the control file by including char(n) will resolve the issue
LOAD DATA
INFILE data.dat
APPEND INTO TABLE sload
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
(
PROCESS_DT,
PROCESS_ID,
PROCESS_FLG,
TICKET_ID char(50),
TICKET_TYPE char(50),
TECHNOLOGY char(50),
SUBFLAVOR char(50),
LIB_VER_NUM char(50),
PRIORITY char(50),
STATE char(50),
OPEN_DATE DATE 'DD-MON-YY',
REV_RELEASE char(50),
SHORT_DESC char(50),
LONG_DESC char(1000)
)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-704500/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 匯入報錯:field in data file exceeds maximum lengthOracle
- ORA-01144: File size (4224000 blocks) exceeds maximum of 4194303BloC
- iis 0x80070032 Cannot read configuration file because it exceeds the maximum file size
- GreatSQL 並行Load Data加快資料匯入SQL並行
- 故障分析 | MySQL 使用 load data 匯入資料錯誤的一個場景MySql
- Oracle用資料泵匯入資料包12899的錯誤碼解決方法Oracle
- [LeetCode] 3090. Maximum Length Substring With Two OccurrencesLeetCode
- Python匯入包報錯(沒有這個包)Python
- 一次sqlldr匯入慢的解決過程SQL
- python匯入資料錯誤:ParserError: Error tokenizing data. C error: Expected 1 fields in line 3, saw 2PythonError
- Exercise 5: Field data acquisition and analysisUI
- 資料庫 MySQL 資料匯入匯出資料庫MySql
- sqoop資料匯入匯出OOP
- Oracle 資料匯入匯出Oracle
- 資料泵匯出匯入
- Oracle資料匯入匯出Oracle
- phpMyAdmin匯入/匯出資料PHP
- mysql5.7 資料匯入5.6 Index column size too large. The maximum column size is 767 bytes.MySqlIndex
- bootstrap匯入js包和css包時錯誤怎麼解決?bootJSCSS
- 大文字資料,匯入匯出到資料庫資料庫
- MySQL入門--匯出和匯入資料MySql
- spring data mongo @Field 失效問題SpringGo
- PyCharm匯入Selenium包時報錯,需要升級pipPyCharm
- MATLAB匯入資料Matlab
- 資料匯入終章:如何將HBase的資料匯入HDFS?
- MySQL load data載入資料MySql
- IDEA 匯入 ***.jar包IdeaJAR
- 如何匯入rvest包
- IDEA匯入jar包IdeaJAR
- golang匯入本地包Golang
- 【解決方法】Dubbo報錯Data length too large,調整payload大小解決
- Mongodb資料的匯出與匯入MongoDB
- oracle資料匯出匯入(exp/imp)Oracle
- 匯入和匯出AWR的資料
- EasyPoi, Excel資料的匯入匯出Excel
- Mysql 資料庫匯入與匯出MySql資料庫
- Excel 表匯入資料Excel
- MySQL資料的匯入MySql
- Oracle 資料匯入ExcelOracleExcel