sqlldr Field in data file exceeds maximum length
sqlldr 匯入時報如下錯誤:
Record 1: Rejected - Error on table INFOBASE, column CONTENT.
Field in data file exceeds maximum length
Record 2: Rejected - Error on table INFOBASE, column CONTENT.
Field in data file exceeds maximum length
我的控制檔案為
OPTIONS ( DIRECT=TRUE)
LOAD DATA
INFILE '/u/oracle/cdrd/sms_data/hebei_yd/hb_yd_sms_content.txt'
BADFILE '/u/oracle/sqlldr/log/hebei_yd/hb_yd_sms_content.bad'
DISCARDFILE '/u/oracle/sqlldr/log/hebei_yd/hb_yd_sms_content.dsc'
INTO TABLE "ETL"."HB_YD_SMS_CONTENT"
TRUNCATE
FIELDS TERMINATED BY ','
TRAILING NULLCOLS
(sms_id,
category_id,
areas_id,
sms_type,
content )
表定義為:
CONTENT欄位為varchar2(4000 char)
解決:
控制檔案修改為:
OPTIONS ( DIRECT=TRUE)
LOAD DATA
INFILE '/u/oracle/cdrd/sms_data/hebei_yd/hb_yd_sms_content.txt'
BADFILE '/u/oracle/sqlldr/log/hebei_yd/hb_yd_sms_content.bad'
DISCARDFILE '/u/oracle/sqlldr/log/hebei_yd/hb_yd_sms_content.dsc'
INTO TABLE "ETL"."HB_YD_SMS_CONTENT"
TRUNCATE
FIELDS TERMINATED BY ','
TRAILING NULLCOLS
(sms_id,
category_id,
areas_id,
sms_type,
content char(20000)
)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21754115/viewspace-2086546/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- sqlldr匯入資料包錯 Field in data file exceeds maximum lengthSQL
- oracle 匯入報錯:field in data file exceeds maximum lengthOracle
- Oracle ORA-01948:identifier's name length(%s)exceeds maximum(%s)報錯的解決OracleIDE
- iis 0x80070032 Cannot read configuration file because it exceeds the maximum file size
- ORA-27092: skgfofi: size of file exceeds file size limit of the processMIT
- Exercise 5: Field data acquisition and analysisUI
- spring data mongo @Field 失效問題SpringGo
- leetCode(Using C)——718. Maximum Length of Repeated SubarrayLeetCode
- [LeetCode] 3090. Maximum Length Substring With Two OccurrencesLeetCode
- rsau/max_diskspace/local - Maximum space for security audit file
- rsau/max_diskspace/per_file - Maximum size of one single security audit file
- ES 筆記三十五:排序及 Doc Values & Field Data筆記排序
- HP -Data Protector Restore file systemREST
- data file int write和db file sequential read個人想法
- Unload data to a flat file from Oracle databaseOracleDatabase
- ORA-14060: data type or length of a table partitioning column may not be changed
- mysql char_length和lengthMySql
- ELF file data encoding not little-endianEncoding
- HP -Data Protector Restore file system【Blog 搬家】REST
- [轉載]Oracle等待事件Data file init writeOracle事件
- Java中 length、length()、size()區別Java
- oracle10g 資料檔案頭data file header(file header)OracleHeader
- GoldenGate replication using a data definition file and DEFGEN utilityGo
- 【解決方法】Dubbo報錯Data length too large,調整payload大小解決
- java 反射 報錯:Attempt to get java.lang.Integer field "..." with illegal data type conversion to intJava反射
- SQLLDR 命令SQL
- SQLLDR 教程SQL
- sqlldr使用SQL
- Sqlldr操作SQL
- The innodb_system data file 'ibdata1' must be writable
- 【蓋國強】Oracle Wait Event:Data file init writeOracleAI
- DataTransferItemList.length
- sessionStorage.lengthSession
- CSSStyleDeclaration.lengthCSS
- inverse of arc length
- java反射——FieldJava反射
- MySQL資料匯入匯出之Load data fileMySql
- 自動生成sqlldr 控制檔案的指令碼(Script To Generate SQL*Loader Control File)SQL指令碼