NLS_SORT
The NLS_SORT
attribute indicates which collating sequence to use for linguistic comparisons.
It accepts the monolingual and multilingual values from the Supported Linguistic Sorts tables. All these values can be modified to do case-insensitive sorts by appending _CI
to the value. To perform accent-insensitive and case-insensitive sorts, append _AI
to the value.
For materialized views and cache groups, TimesTen recommends that you explicitly specify the collating sequence using the NLSSORT
SQL function rather than using this attribute in the connection string or DSN definition.
Operations involving character comparisons support linguistic case-sensitive collating sequences. Case-insensitive sorts may affect DISTINCT
value interpretation.
NLS_SORT
may affect many operations. The supported operations that are sensitive to collating sequence are:
-
MIN
,MAX
-
BETWEEN
-
=
,<>
,>
,>=
,<
,<=
-
DISTINCT
-
CASE
-
GROUP BY
-
HAVING
-
ORDER BY
-
IN
-
LIKE
NLS_SORT
settings other than BINARY
may have significant performance impact on character operations.
NLS_SORT
can be modified by an ALTER SESSION SQL statement,
described in Oracle TimesTen In-Memory Database SQL Reference.
Note:
Primary key indexes are always based on the BINARY
collating sequence. Use of non-BINARY NLS_SORT
equality searches cannot use the primary key index.
Required Privilege
No privilege is required to change the value of this attribute.
Usage in TimesTen Scaleout and TimesTen Classic
This attribute is supported in both TimesTen Classic and TimesTen Scaleout.Setting
Set NLS_SORT
as follows:
Where to set the attribute | How the attribute is represented | Setting |
---|---|---|
C or Java programs or UNIX and Linux systems |
|
Specify the linguistic sort sequence or |
Windows ODBC Data Source Administrator |
Not applicable |
Supported Linguistic Sorts
The tables in this section list the supported values for the NLS_SORT
general connection attribute and the NLS_SORT
SQL function.
Monolingual Linguistic Sorts
Basic name | Extended name |
---|---|
|
N/A |
|
N/A |
|
N/A |
|
N/A |
|
N/A |
|
|
|
N/A |
|
N/A |
|
N/A |
|
N/A |
|
N/A |
|
|
|
|
|
|
|
|
|
|
|
|
|
N/A |
|
N/A |
|
N/A |
|
N/A |
|
N/A |
|
|
|
|
|
|
|
N/A |
|
N/A |
|
N/A |
|
N/A |
|
|
|
N/A |
|
N/A |
|
N/A |
|
N/A |
|
N/A |
|
N/A |
|
N/A |
|
N/A |
|
N/A |
|
|
|
N/A |
|
N/A |
|
|
|
|
|
|
|
N/A |
|
|
|
N/A |
|
|
|
N/A |
|
N/A |
|
N/A |
|
|
Multilingual Linguistic Sorts
Sort Name | Description |
---|---|
|
Canadian French sort supports reverse secondary, special expanding characters. |
|
Danish sort supports sorting uppercase characters before lowercase characters. |
|
French sort supports reverse sort for secondary. |
|
Generic sorting order which is based on |
|
Japanese sort supports SJIS character set order and EUC characters which are not included in SJIS. |
|
Korean sort Hangul characters are based on Unicode binary order. Hanja characters based on pronunciation order. All Hangul characters are before Hanja characters. |
|
Traditional Spanish sort supports special contracting characters. |
|
Thai sort supports swap characters for some vowels and consonants. |
|
Simplified Chinese sort is based on radical as primary order and number of strokes order as secondary order. |
|
Simplified Chinese sort uses number of strokes as primary order and radical as secondary order. |
|
Simplified Chinese Pinyin sorting order. |
|
Traditional Chinese sort based on radical as primary order and number of strokes order as secondary order. |
|
Traditional Chinese sort uses number of strokes as primary order and radical as secondary order. It supports supplementary characters. |