今天一個入庫程序報錯
SQL*Loader-00510 Physical record in data file (string) is longer than the maximum(number)
明顯是sqlloader引起的
官方文檔解釋如下
Cause: The datafile has a physical record that is too long.
Action: Use CONCATENATE or CONTINUEIF. Break up the physical records.
經測試發現,原因是由於導入文件中存在不同格式的回車換行,
有^M$和$兩種回車換行導致,所以用dos2unix命令統一轉換成Linux回車換行。
dos2unix filename
問題解決。