Oracle Kanji occupies byte length

Source: Internet
Author: User

1, today to investigate an Oracle database problem, found in 11g a Chinese character accounted for 2 bytes, in 10g accounted for 3 bytes, resulting in 11g database data import into 10g always error, at the beginning of the thought is 11g and 10g version is not the same, Chinese characters occupy a different number of bytes, and then I think, Oracle will not do so, so the difference is too big, and then a survey, found to be related to the Oracle Character set encoding:

If it is the following character set, a Chinese character occupies 2 bytes: simplified Chinese_china. ZHS16GBK If the character set is the following, a Chinese character occupies 3 bytes: simplified Chinese_china.          Al32utf8 (1) View the Oracle character set can be viewed in the following SQL text: Select Userenv (' language ') from dual (2) See how many bytes a Chinese character occupies in the current Oracle environment can be viewed in the following SQL text: Select LENGTHB (' Ah ') from dual knowledge about Oracle Character set (including character set viewing and modification), main references: HTTP://WWW.CNBLOGS.COM/ROOTQ/ARTICLES/2 049324.html http://blog.csdn.net/uestcong/article/details/7348008

Oracle Kanji occupies byte length

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.