Character set in Oracle 11g r2 XE

岁酱吖の 提交于 2019-12-12 00:34:03

问题


I have an exported data using exp command from a full Oracle 11gR2 database that has the AR8MSWIN1256 charset. However, when I import the data into an 11gR2 XE database, I get the error:

row rejected due to ORACLE error 12899

Could the problem be the mismatch in charsets (AL32UTF8 vs AR8MSWIN1256)? If so, is there a solution?


回答1:


the table almost certainly has length semantics BYTE for the character columns. imp creates the table with the same length semantics as they were in the source database. So if you want to migrate to a multibyte character set you need to make sure that the length semantics of those columns are changed to character.

Easiest is to pre-create the tables and make sure that your column definitions don't specify their length in bytes but in characters.



来源:https://stackoverflow.com/questions/18420177/character-set-in-oracle-11g-r2-xe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!