Professional Documents
Culture Documents
19 NLS and Globalization Support
19 NLS and Globalization Support
Objectives
After completing this lesson, you should be able to: Choose database character set and national character set of a database Outline the pros and cons of different available encoding formats Configure the language-dependent behavior using initialization parameters, environment variables, and the ALTER SESSION command Use the different types of National Language Support (NLS) parameters Explain the influence on language-dependent application behavior Obtain the NLS and Globalization information of the database
Copyright 2002 Solutions IT services. All rights reserved
Varying-width multibyte character sets Fixed-width multibyte character sets Unicode (AL32UFT8, AL16UTF16, UTF8)
Is space an issue? (Use AL16UTF16 for American and Europian and use UTF8 for Asian) Is performance an issue? (Use fixed width Character set AL16UTF16)
12
13
NLS_TERRITORY
NLS_CURRENCY NLS_ISO_CURRENCY NLS_DATE_FORMAT NLS_NUMERIC_CHARACTERS NLS_CALENDAR
AMERICA
$ AMERICA DD-MON-RR ,. GREGORIAN
NLS_LANG=<language>_<territory>.<charset> NLS_NCHAR=<ncharset>
Linguistic Sorting
Oracle supports three types of sorting Binary sorting
Sorted according to the binary values of the encoded characters
Monolingual sorting
Sorts are done in two passes Based on the character's assigned major and minor values
Multilingual sorting
Based on the new ISO 14651 standards and, Unicode 3.0 Standard for multilingual collation
NLS Sorting
NLS_SORT specifies which type of sort is to be done for character data
Is governed by the NLS_LANG environment variable can be specified directly at the session level
NLSSORT function
Specifies the type of sort for character data within a query
Summary
In this lesson, you should have learned to: Choose a database character set and a national character set for the database Outline the pros and cons of different available encoding formats Use the various types of National Language Support parameters for the server, or the session Outline the usage of Globalization Support Utilities Obtain the NLS and Globalization information of the database
Practice 19 Overview
This practice covers the following topics: Checking the database and national character set Identifying valid NLS values Setting NLS parameters
40
41
42