SQL error “ORA-01722: invalid number”

前端 未结 13 1738
野趣味
野趣味 2020-11-29 10:15

A very easy one for someone, The following insert is giving me the

ORA-01722: invalid number

why?

INSERT INTO C         


        
13条回答
  •  遥遥无期
    2020-11-29 10:29

    This happened to me too, but the problem was actually different: file encoding.

    The file was correct, but the file encoding was wrong. It was generated by the export utility of SQL Server and I saved it as Unicode.

    The file itself looked good in the text editor, but when I opened the *.bad file that the SQL*loader generated with the rejected lines, I saw it had bad characters between every original character. Then I though about the encoding.

    I opened the original file with Notepad++ and converted it to ANSI, and everything loaded properly.

提交回复
热议问题