Oracle character set

Posted Science Or Humanity, Both?

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle character set相关的知识,希望对你有一定的参考价值。

Based on Oracle, processing an English character takes 1 byte, but 3 bytes for a Chinese character.

 

For example:

select ename, length(ename), lengthb(ename), empno, length(empno),lengthb(empno)

from emp001;

 

ENAME     LENGTH(ENAME) LENGTHB(ENAME)      EMPNO LENGTH(EMPNO) LENGTHB(EMPNO)

-------------------- ------------- -------------- ---------- ------------- --------------

郭靖                             2              6        100             3              3

黄蓉                             2              6        200             3              3

裘千尺                           3              9        300             3              3

洪七公                           3              9        400             3              3

杨过                             2              6        600             3              3

梅超风                           3              9        500             3              3

 

From storage point view, deciding to use Chinese characters in the table values would cost 3 times more space 

usage than its English counterpart. How much impact would have on the database performance 

when the data activity on a table, such as insert and update data, is increased? 

Can we compare apple and orange in this case?

 

It seems that to process Asia language, like Chinese, Japanese, and Korean, the character set in database system 

will cost more than in English. And perhaps we can‘t comapre apple and orange in this case after all. 

以上是关于Oracle character set的主要内容,如果未能解决你的问题,请参考以下文章

如何使用非默认 NLS_NUMERIC_CHARACTERS 在 Oracle PL/SQL 中有效地将文本转换为数字?

navicat连接oracle报错:ORA-12737 Instant Client Light:unsupported server character set ZHS16GBK

navicat连接oracle报错:ORA-12737 Instant Client Light:unsupported server character set ZHS16GBK

navicat连接oracle报错ORA-12737: Instant Client Light: unsupported server character set CHS16GBK”

PHP7 连oracle 11g 可能出现的pdo_oci_handle_factory,Check the character问题和解决方法

ORACLE 中怎么格式化如下日期