Chapter 20 : Globalization
NLS : National Lanuage support
It supports:
• Language support
• Territory support
• Character set support
• Linguistic sorting
• Message support
• Date and time formats
• Numeric formats
Monetary formats
MLS : multilingual Support:
If my book of accounts is published in English and now I want to publish it in Arabic,
I will apply patch, it will convert it in run time to Arabic.
What Every DBA Needs to Know:
• What is a character set?
• How are character sets used?
• Problems to avoid
• Choosing your character set
• Obtaining character set information
• Specifying language-dependent behavior
• Using linguistic searching and sorting
• Using data conversion
What Is a Character Set?:
There are two categories:
1. Single byte character set
Are usually fixed width
– 7-bit
– 8-bit
Multiple byte character set
Two sub types
i) Fixed width ii) varying width
Fixed Width
Like 27 = 128 combination…asci
Like 28 = 256 combination…stand asci
Multiple Byte:
Like Unicode: have different versions:
2.0 = 216
3.0 = 232
4.0 = 264
Fiexed mean = a need to store 8 bytes, we need fixed
width character
Supplemnetart = like Arabic , chines, japaenes
For this we need varying width chararacter.
How Are Character Sets Used?;
NLS_Lang is combination of three basic things:
1. Language 2. Territory 3. Characterset
If server is on “super set” and client is on “subset”
Then there is no issue.
If server is on “same set” and client is on “same set”
Then there is no issue.
If server is on “sub set” and client is on “super set”
Then there is issue. Information would be truncated.
Choosing Your Character Set:
If we move to 16 or 32 or 64 bit….our reliablility will enhance but our performance and security will
degrade.
If we choose fixed length, then security will enhance but reliability will decrease.
Database Character set:
Once it is set, it can’t be changed.
National Character set:
Can changed at session and system level.
SELECT parameter, value FROM nls_database_parameters WHERE parameter LIKE
'%CHARACTERSET%';
Now
Goto
/u01/app/oracle/product/11.2.0/db_1/nls/lbuilder