Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top