Format SET CHARACTER_SET character-set
1 – Parameters
1.1 – character-set
Specifies the type of characters to be used during the current CDO session. Valid Character Set Names lists the valid character set names. Table 1-6 Valid Character Set Names Character Character Set Type Set Description MCS DEC_MCS A set of international alphanumeric characters Kanji+ASCII DEC_KANJI Japanese characters as defined by the JIS X0208:1990 standard, Narrow Katakana characters, as defined by the JIS X0201:1976 standard, and ASCII characters
2 – Description
Specifies the valid characters that you can use for an element name, the initial value field property, and in comments. You must set the character-set parameter to DEC_KANJI when you use Japanese with Oracle CDD/Repository. If you omit the SET CHARACTER SET command, Oracle CDD/Repository references the equivalence name of the CDD$CHARACTER_SET logical as the character set for the session. If this logical is not assigned, the default character set is DEC_MCS. RESTRICTION DEC_KANJI is not available through the CDO editor. Oracle CDD/Repository accepts a maximum field and record name length of 31 octets (31 characters for ASCII/MCS characters; 15 characters for Kanji and Narrow Katakana). Oracle CDD/Repository accepts the following characters as the field and record name when the character-set parameter is DEC_ KANJI: o Kanji (Japanese characters as defined by the JIS X0208:1990 standard) o Katakana (Japanese phonetic alphabet, Narrow Katakana, as defined by the JIS X0201:1976 standard) o ASCII characters (A-Z, a-z, _, $)
3 – Examples
CDO> SET CHARACTER_SET DEC_KANJI In this example, the character-set parameter is DEC_KANJI to support Japanese characters during the CDO session.