1 CDO CDO (Common Dictionary Operator) is an interactive utility that allows you to define and manage CDO dictionaries, define data definitions, perform pieces tracking, and verify and fix dictionaries. In the CDO environment, you can accomplish all the data description, administration, and dictionary management functions. In addition, a flexible menu-driven editor allows you to easily create and modify field and record definitions. For more information about CDO, type: $ REPOSITORY OPERATOR Then, from the CDO> prompt, type HELP to display information on specific CDO commands. 2 CDO_Foreign_Command You can invoke CDO as a foreign Digital Command Language (DCL) command. At the DCL prompt, type REPOSITORY OPERATOR and any CDO command. After the CDO command executes, you automatically return to the DCL prompt. Before invoking CDO with the REPOSITORY OPERATOR command, make sure that your CDD$DEFAULT is set to the CDO dictionary that you want to work in. You cannot override your CDD$DEFAULT by using the REPOSITORY OPERATOR command. You can use the hyphen ( - ) to continue a CDO command that extends beyond one line. The following command creates the field definition MIDDLE_INITIAL in your default dictionary: $ REPOSITORY OPERATOR DEFINE FIELD MIDDLE_INITIAL - _$ DATATYPE IS TEXT SIZE IS 1. $ 2 Japanese_Input_Method Oracle CDD/Repository supports a Japanese input method to the CDO interface using the Japanese screen management library (Japanese SMG), which is provided by the Japanese OpenVMS operating system. The following logical definitions are required to invoke the Japanese SMG in CDO: Logical Names to Invoke Japanese SMG ------------------------------------------------------ Logical Name Equivalence Name ------------------------------------------------------ CDD$SMGSHR SYS$LIBRARY:JSY$SMGSHR CDD$SMG_CHARACTER_SET KANJI ------------------------------------------------------ When you do not use the Japanese input method in CDO, assign the following logical name: Logical Names to Invoke English SMG ------------------------------------------------------ Logical Name Equivalence Name ------------------------------------------------------ CDD$SMGSHR SYS$LIBRARY:SMGSHR ------------------------------------------------------ To run CDO, the CDD$SMGSHR logical name must point an existing SMG image. Be sure that the logical name, CDD$SMGSHR, is defined correctly before you use CDO. 2 Japanese_Help_Error_Msgs Oracle CDD/Repository provides Japanese CDO help and error messages. To use Japanese CDO help and messages, assign the following logical names: Logical Names For Japanese CDO Help and CDO Messages ----------------------------------------------------------------- Logical Name Equivalence Name ----------------------------------------------------------------- Help: CDO$HELP SYS$HELP:JCDO$HELP CDO messages: CDO$MESSAGES SYS$MESSAGE:JCDO$MESSAGES ----------------------------------------------------------------- When you read Japanese CDO messages, set the character_set of your session to DEC_KANJI using the CDO SET CHARACTER_SET command; otherwise, some Japanese messages may not display correctly. To read Japanese help and messages you must use a Japanese virtual terminal, or use Japanese DECwindows, which provides a Japanese terminal emulator. To read English CDO help and CDO messages, deassign the logical names or assign the following logical names: Logical Names For English CDO Help and CDO Messages ----------------------------------------------------------------- Logical Name Equivalence Name ----------------------------------------------------------------- Help: CDO$HELP SYS$HELP:CDO$HELP CDO messages: CDO$MESSAGES SYS$MESSAGE:CDO$MESSAGES ----------------------------------------------------------------- 2 Session_Character_Set 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 of the session to DEC_KANJI when you use Japanese with Oracle CDD/Repository. Use the CDO SET CHARACTER_SET command to set the session character_set of the current CDO session. For example: CDO> SET CHARACTER_SET DEC_KANJI If you omit the CDO SET CHARACTER_SET command, Oracle CDD/Repository references the equivalence name of the CDD$CHARACTER_SET logical name as the session character_set. If this logical name is not assigned, Oracle CDD/Repository defaults to DEC_MCS. The following table lists the valid character_set names for character_set: Valid Character_set Names for the Session Character_set ------------------------------------------------------------------ Character_set Character_set Description Name ------------------------------------------------------------------ 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 ------------------------------------------------------------------ To display the character_set of the current session, use the CDO SHOW CHARACTER_SET command. For example: CDO> SHOW CHARACTER_SET Session Character_set is DEC_MCS