Академический Документы
Профессиональный Документы
Культура Документы
NLS_LANG
The initialization parameter NLS_LANG defines client language-specific
behavior, and its value cascades to those of the parameters
NLS_LANGUAGE, NLS_TERRITORY, and NLS_CHARACTERSET to
define the client language, territory, and character set. The value of
NLS_LANG is derived from the language selection made during Oracle
installation and becomes a read-only option. However, its value can be
changed with the NLS_LANGUAGE
parameter at the operating system environment level.
Linguistic Sort
Binary sorting returns queried data sorted by the numerical value of characters.
While binary sorting is faster than other sort types for English alphabet characters, its
results become unreliable when data includes multilingual characters.
Oracle provides a linguistic sorting function, which is triggered by setting the value of
the NLS_SORT parameter to a valid NLS_LANGUAGE value in a query statement,
to accurately sort data according to language-specific character conventions.
Linguistic sorting replaces generic numerical values with those that reflect each
character’s proper linguistic order, resulting in a character sort order that more
accurately reflects the native order for different languages.
Oracle provides two types of linguistic sorting methods: monolingual and multilingual.
NLS_COMP
The NLS_COMP parameter can be used in conjunction with NLS_SORT to ease the
specification of linguistic sorts. An NLS_COMP value of ANSI forces Oracle to use
linguistic sorting by default in the language specified by the value of the NLS_SORT
parameter.