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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- sqlldr Field in data file exceeds maximum lengthSQL
- oracle 匯入報錯:field in data file exceeds maximum lengthOracle
- 資料匯入SQLLDRSQL
- MySQL資料匯入匯出之Load data fileMySql
- sqlldr 匯入資料包錯 ORA-01841,ORA-01400SQL
- sqlldr 匯入資料範例SQL
- sqlldr批量匯入匯出資料測試SQL
- sqlldr批次匯入匯出資料測試SQL
- 通過SQLLDR匯入LOB資料SQL
- Oracle ORA-01948:identifier's name length(%s)exceeds maximum(%s)報錯的解決OracleIDE
- oracle資料庫使用sqlldr命令匯入txt資料Oracle資料庫SQL
- 【匯入匯出】sqlldr 匯入含有內嵌換行符的資料SQL
- 使用oracle sqlldr匯入文字資料的例子OracleSQL
- 【匯入匯出】sqlldr 匯入案例SQL
- oracle sqlldr匯入OracleSQL
- sqlldr匯入資料中文亂碼SQL
- 使用sqlldr匯入文字資料到oracleSQLOracle
- sqlldr 匯入重複資料導致PK INDEX失效SQLIndex
- Oracle 的資料匯入匯出及 Sql Loader (sqlldr) 的用法OracleSQL
- 【sqlldr載入資料】SQL
- Oracle - UTL_FILE包之BLOB匯入和匯出Oracle
- 資料泵匯出資料包錯處理
- 【SQL*Loader】sqlldr匯入SQL
- sqlldr匯入日期函式SQL函式
- iis 0x80070032 Cannot read configuration file because it exceeds the maximum file size
- 關於 Oracle 的資料匯入匯出及 Sql Loader (sqlldr) 的用法OracleSQL
- 文字檔案用sqlldr工具匯入到oracel資料庫中SQL資料庫
- GreatSQL 並行Load Data加快資料匯入SQL並行
- 故障分析 | MySQL 使用 load data 匯入資料錯誤的一個場景MySql
- Oracle用資料泵匯入資料包12899的錯誤碼解決方法Oracle
- 【轉貼】mysql匯入資料load data infile用法MySql
- 使用BCP匯入資料犯的錯
- ORACLE百萬資料匯入匯出解決方法(LOADER、UTL_FILE)Oracle
- 【UTL_FILE】使用UTL_FILE包生成檔案並寫入資料
- Python匯入包報錯(沒有這個包)Python
- MySQL 5.5使用LOAD DATA INFILE語句匯入資料MySql
- 使用load data匯入資料到mysqlMySql
- ORA-27092: skgfofi: size of file exceeds file size limit of the processMIT