木匠的微型博客 Charlie Twitter

    follow me on Twitter

    Tuesday, January 22, 2008

    Supporting Multilingual Databases and NLS_CHARACTERSET

    We recommend going to AL32UTF8 as the ultimate solution for Oracle 11g-.
    AL32UTF8 is the database character set that supports the latest version (5.0 in Oracle 11.1) of
    the Unicode standard. It also provides support for the newly defined supplementary characters.

    Here are some major points I briefed as a reference.

    How to move to AL32UTF8 / UTF8 (Unicode) Database Character Set
    Note:119119.1

    to check you database Character Set,
    select value from NLS_DATABASE_PARAMETERS where parameter='NLS_CHARACTERSET';

    Usualy database will grow when going to AL32UTF8, use CSSCAN to generate the size expansion report.

    The NLS_LENGTH_SEMANTICS initialization parameter determines whether a new column of character datatype uses byte or character semantics. The default value of the parameter is BYTE. The BYTE and CHAR qualifiers shown in the VARCHAR2 definitions should be avoided when possible because they lead to mixed-semantics databases. Instead, set NLS_LENGTH_SEMANTICS in the initialization parameter file and define column datatypes to use the default semantics based on the value of NLS_LENGTH_SEMANTICS.

    columne_name VarChar2(300 char/byte)

    Related function: lengthb(), substrb()

    UniStr() over Chr()
    select Chr(163) from dual;
    select UniStr('\C2A3') from dual;

    convert(string_column,'AL32UTF8','US7ASCII'), convert from US7ASCII to AL32UTF8.

    To use WE8MSWIN1252 over WE8ISO8559P1, WE8MSWIN1252 supports European Code.

    Reference

    * US7ASCII: US 7-bit ASCII character set
    * WE8ISO8859P1: ISO 8859-1 West European 8-bit character set
    * WE8MSWIN1252: Microsoft Windows West European Code Page 1252
    * UTF8: Unicode 3.0 Universal character set CESU-8 encoding form
    * AL32UTF8: Unicode 5.0 Universal character set UTF-8 encoding form

    **Unicode character sets in the Oracle database, Note:260893.1

    exp/imp

    set NLS_LANG=
    export

    set NLS_LANG=
    import into the new UTF8 db.

    The conversion to UTF8 is done while inserting the data in the UTF8 database.

    Today's learning:

    如果你确信了那些消极的结论,那么你就极少可能去冒险和尝试新事物。消极的想法掩盖了你的感受,使其处于恐惧中。

    积极的想法的也是以同样的方式起到其作用。带着积极的心态,你将搜寻那些积极的选择然后确信其积极的结论。它帮助你克服恐惧并且尝试那些可能你认为“不能做到”的事情.

    积极的思想,有助于确定目标实现.

    Tuesday, January 08, 2008

    看看日本人是怎么抵制中国货的

    打击日货, 喊得有些累了, 这里转抄一篇, 华人同胞, 共同学习进步.

    --From 枫华园
    http://www.fhy.net

    最近很多国家在抵制中国货,特别是日本。日本抵制中国货不是象我们中国只是喊口号,而是肆意贬低中国货,特别是利用宣传工具。

    日本有2个电视台播放了2个关于中国货的节目。一个是试验生活中怎么不用中国货,当然是很可笑的了,可给消费者的影响可想而知。另外一个台,放了他们在中国的采访,说是广东的一个地方,说用来浇蔬菜的河水被污染了,河里的水--当然水很黑很臭的了。看了这样的镜头还有谁敢买中国的成品?还把河水和菜拿到日本来化验,虽然没查出什么。可还请什么专家来说话,说不能否定含有重金属。

    利用媒体,不是直接抵制中国货,这就是日本的手法。断章取义,再好的东西都可说成说垃圾的,我们中国人在抵制日货方面是不是也可以其人之道还其人之身呢?中国的媒体在干吗?我们不放日本作品?我们可以去揭揭日资企业的违法问题?可以说说销售到中国的倭货是在日本被淘汰的东西的?要找问题,为什么不利用现代的科技手段呢?

    建议大家不要光叫抵制日货的口号,真有爱国的思想的,多做一些具体的事情,真正的抵制日货。