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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 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
- [LeetCode] 3090. Maximum Length Substring With Two OccurrencesLeetCode
- Exercise 5: Field data acquisition and analysisUI
- spring data mongo @Field 失效問題SpringGo
- ES 筆記三十五:排序及 Doc Values & Field Data筆記排序
- ELF file data encoding not little-endianEncoding
- mysql char_length和lengthMySql
- oracle ORA-01157: cannot identify/lock data file 64OracleIDE
- Java中 length、length()、size()區別Java
- 【解決方法】Dubbo報錯Data length too large,調整payload大小解決
- sqlplus和sqlldr工具安裝SQL
- Oracle sqlldr工具功能測試OracleSQL
- Oracle OCP(55):SQLLDR—CTL檔案OracleSQL
- Oracle OCP(56):SQLLDR-樣例OracleSQL
- CSSStyleDeclaration.lengthCSS
- sessionStorage.lengthSession
- DataTransferItemList.length
- history.length
- inverse of arc length
- E - Maximum Glutton
- CSSStyleDeclaration length 屬性CSS
- FileList length 屬性
- MySQL History List LengthMySql
- Java String length()例子Java
- MySQL啟動報錯InnoDB: The innodb_system data file './ibdata1' is of a differentMySql
- ValueError: Length of values (141) does not match length of index (4278)問題的解決ErrorIndex
- [LeetCode] Third Maximum NumberLeetCode
- MySQL 之 ORDER BY FIELDMySql
- JavaScript select length 屬性JavaScript
- JavaScript 字串 length屬性JavaScript字串
- string.length() & strlen(char *)
- [leetcode]length-of-last-wordLeetCodeAST
- mongoengine.errors.OperationError: Update failed (BSON field ‘no_cursor_timeout‘ is an unknown fieldGoErrorAI
- 654-Maximum Binary Tree
- 1383. Maximum Performance of a TeamORM
- 11-Overview-Field SelectorsView
- copying model and updating field of pydantic