SQL Error: ORA-12712: new character set must be a superset of old character set

前端 未结 4 476
北荒
北荒 2021-01-13 09:47

I want to change character set of oracle database from \'WE8MSWIN1252\' to \'AL32UTF8\'

I tried to execute following steps from the link (http://download.oracle.com/

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-13 09:57

    For an ALTER DATABASE CHARACTER SET statement to execute successfully, two conditions must be fulfilled:

    • Each and every character in the current character set is available in the new character set.
    • Each and every character in the current character set has the same code point value in the new character set. (ie: the old charset must be a subset of the new one)

    Because WE8MSWIN1252 is not a strict subset of AL32UTF8 this statement will fail (example: the pound sign is A3 in hex in WE8MSWIN1252, but in AL32UTF8 it is C2 A3).

    You'll need to use CSALTER to do this migration.

    Refer to: Character Set Migration.

提交回复
热议问题