SybaseIQ导入数据库Load失败的解决办法
?
使用isql导入脚本的方式Load数据到IQ中时,出现下面错误:L'éxecution du load table génére ce message d'erreur:
?Could not execute statement.
? Number of bytes (3) for a column from an input file has exceeded the
? maximum allowed (512).
? -- (db_RecScanner.cxx 725)
? SQLCODE=-1013027, ODBC 3 State="HY000"?
?
Number of bytes (%2) for a column from an input file has exceeded the maximum allowed (%3). %1
Probable causeThe number of bytes you are trying to load into a column from an input file has exceeded the maximum number of bytes allowed.
? LOAD TABLE XXXXXXXXXXXXXXXXXXXXXX
??? ( XXXXXXX '|',
??? XXXXXXXX '|',
?? XXXXXXXXXXX '|',.....
? xxxxxxxxxx '|',
? xxxxxxxxxxx '|',
? xxxxxxxxxxx?'@@@')
? FROM '/PATH/Fichier_NAME'?
? QUOTES OFF
? ESCAPES OFF?
MESSAGE LOG '/PATH/Fichier_Name.log'
row log? '/PATH/Fichier_Name.log';
?commit;
?
Le problème est dans les fichier source
?Aprés analyse du fichier, la génération du fichier s'est faite avec un select sans effacer le nombre de ligne retourné à la fin du fichier.
?
XXXX|NXXXXX|????????????????????????????????????????????????????????????????? |XXXX|XXXX|XXXX|????????? |????????? |???? |XXXX|XXXX|XXXX|XXXXXXXX|XXXX|XXXX|????????? |????????? |XXXX|????? |???? |???? |XXXX|??????? |???? |????????? |????????? |XXXX |????????? |????????? |?????????????? |XXXX|?? |XXXX|???? |XXXX|XXXX|XXXX|XXXX|XXXX|XXXX|XXXX|XXXX|XXXX|????????? |XXXXXXXX|??????? |??????? |XXXX| |XXXX|XXXX|????????????????????????????? |?????????????? |????????? | | |XXXX|????????????????????????????? |XXXX|????????? |? |????????? |????????? |????????? |?? |XXXX|??????????????????????????????????????????????????????????????????????????????????????????????????? | | |????????? | | |????????? |????????????????????????????? |????????????????????????????? |????????????????????????????? |????????? |????????? | | | |??????????????????? |? |????????? |????????? |????????? |????????? |????????????????????????????????????????????? |????????? |????? |????? |?????????????????????????????????? |????????? |?? |????????? |?????????????? |????????? |????????? |??????????????????? |??????????????????? |??????????????????? |????????? |????????? |????????????????????????????? |????????????????????????????? |????????????????????????????? |????? |??? |??? |????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? |XXXX|XXXX|XXXX|????????? |XXXX|?? |?? |???????? |XXXX|? |XXXX|XXXX|XXXX|????????? |????????? |????????? |??????????????????? |??????????????????? |??????????????????? |? |? |? |????????? |????????? |????????? |XXXX|XXXX |X ?????????????????????????????????????????????????????????????????????????????????????@@@
XXXX|000002207?????
La suppression de la ligne résout le problème.