SQLLoader ORA-01722 invalid number
用 SQLLoader 載入資料提示 (最後一列)是無效數字,其實不是資料的問題,而是換行符導致的,去掉換行符就好了。
注意,使用了兩層
replace 函式,這裡的換行符包括 換行和回車
CHR(10):換行
CHR(13):回車
修改完成的控制檔案內容如下:
load data
infile './dataset_2009_2016.txt'
insert into table DATASET_1999_2016
fields terminated by ' ' TRAILING NULLCOLS
(
DATE_TIME date 'YYYY-MM-DD HH24:MI',
STOCK_TYPE,
STOCK_CODE,
OPEN,
HIGH,
LOW,
CLOSE,
VOLUME,
AMT
"replace(replace(:AMT, CHR(13), ''), CHR(10), '')"
)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31560527/viewspace-2658907/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- err Invalid input of type: 'dict'. Convert to a byte, string or number first
- 【nginx】invalid PID number ““ in “/usr/local/nginx/logs/nginx.pid“Nginx
- Oracle12c叢集啟動時提示%CRS_LIMIT_OPENFILE%: invalid numberOracleMIT
- vue報錯:[Vue warn]: Invalid prop: type check failed for prop "value". Expected Number, got String....VueAIGo
- EXP、IMP、SQLLOADER、EXPDP、IMPDP、DBMS_METADATA、SQLPLUS等方面SQL
- JavaScript invalid 事件JavaScript事件
- found an invalid color
- JavaScript Number()JavaScript
- Invalid time zone indicator ‘ ‘Indicator
- StreamCorruptedException: invalid stream headerExceptionHeader
- JavaScript Number 物件JavaScript物件
- Leetcode Number of islandsLeetCode
- Kata:Hamming number
- JavaScript Number toLocaleString()JavaScript
- JavaScript Number toString()JavaScript
- Number.NaNNaN
- python: invalid value encountered in divide以及invalid value encountered in double_scalars報錯PythonIDE
- OSError: [Errno 22] Invalid argumentError
- Serial number lookup for Panasonic
- D. The Number of Imposters
- Big Number hd 1212
- 7.104 ITERATION_NUMBER
- Leetcode 447 Number of BoomerangsLeetCodeOOM
- react input[type='number']React
- number(p,s)(轉)
- Last digit of a huge numberASTGit
- [HNU 10072] Fibonacci Number
- Python Number(數字)Python
- Perfect Number 完美數
- [LeetCode] Third Maximum NumberLeetCode
- [LeetCode] Find the Duplicate NumberLeetCode
- Leetcode 9 Palindrome NumberLeetCode
- 136. Single Number
- Number.parseInt() 方法
- Number.parseFloat()方法
- Number.isSafeInteger()方法
- Number.isNaN()方法NaN
- Number.isFinite()方法