Set Unix, Linux environment NLS_LANG, linuxnls_lang

Source: Internet
Author: User

Set Unix, Linux environment NLS_LANG, linuxnls_lang

  1. Set the NLS_LANG variable
  2. 1) correctly configure the LC_ALL Parameter
  3. 2) configure the character set of the telnet/ssh/SecureCRT Client
  4. In linux, you can use the locale command to view the NLS_LANG settings, as shown in the following example:
  5. [Root @ HXZG ~] # Locale
  6. LANG = en_US.UTF-8
  7. LC_CTYPE = "en_US.UTF-8"
  8. LC_NUMERIC = "en_US.UTF-8"
  9. LC_TIME = "en_US.UTF-8"
  10. LC_COLLATE = "en_US.UTF-8"
  11. LC_MONETARY = "en_US.UTF-8"
  12. LC_MESSAGES = "en_US.UTF-8"
  13. LC_PAPER = "en_US.UTF-8"
  14. LC_NAME = "en_US.UTF-8"
  15. LC_ADDRESS = "en_US.UTF-8"
  16. LC_TELEPHONE = "en_US.UTF-8"
  17. LC_MEASUREMENT = "en_US.UTF-8"
  18. LC_IDENTIFICATION = "en_US.UTF-8"
  19. LC_ALL =
  20. In most unix versions, "C" is set by default ",
  21. [Oracle @ HXZG ~] $ Locale
  22. LANG =
  23. LC_CTYPE = "C"
  24. LC_COLLATE = "C"
  25. LC_MONETARY = "C"
  26. LC_NUMERIC = "C"
  27. LC_TIME = "C"
  28. LC_MESSAGES = "C"
  29. LC_ALL =
  30. "C" indicates that NLS_LANG is US7ASCII, which means that your terminal can only display a-z, A-Z and 0-9 characters.
  31. In Unix environments, you can specify a value through export LC_ALL to set language environment variables.
  32. [Oracle @ HXZG ~] $ Export LC_ALL = en_US.UTF-8
  33. [Oracle @ HXZG ~] $ Locale
  34. LANG = en_US.UTF-8
  35. LC_CTYPE = "en_US.UTF-8"
  36. LC_NUMERIC = "en_US.UTF-8"
  37. LC_TIME = "en_US.UTF-8"
  38. LC_COLLATE = "en_US.UTF-8"
  39. LC_MONETARY = "en_US.UTF-8"
  40. LC_MESSAGES = "en_US.UTF-8"
  41. LC_PAPER = "en_US.UTF-8"
  42. LC_NAME = "en_US.UTF-8"
  43. LC_ADDRESS = "en_US.UTF-8"
  44. LC_TELEPHONE = "en_US.UTF-8"
  45. LC_MEASUREMENT = "en_US.UTF-8"
  46. LC_IDENTIFICATION = "en_US.UTF-8"
  47. LC_ALL =
  48. [Oracle @ HXZG ~] $ Export LC_ALL = zh_CN.gb2312
  49. [Oracle @ HXZG ~] $ Locale
  50. LANG = en_US.UTF-8
  51. LC_CTYPE = "zh_CN.gb2312"
  52. LC_NUMERIC = "zh_CN.gb2312"
  53. LC_TIME = "zh_CN.gb2312"
  54. LC_COLLATE = "zh_CN.gb2312"
  55. LC_MONETARY = "zh_CN.gb2312"
  56. LC_MESSAGES = "zh_CN.gb2312"
  57. LC_PAPER = "zh_CN.gb2312"
  58. LC_NAME = "zh_CN.gb2312"
  59. LC_ADDRESS = "zh_CN.gb2312"
  60. LC_TELEPHONE = "zh_CN.gb2312"
  61. LC_MEASUREMENT = "zh_CN.gb2312"
  62. LC_IDENTIFICATION = "zh_CN.gb2312"
  63. LC_ALL = zh_CN.gb2312
  64. NLS_LANG consists of three parts: NLS_LANG = <NLS_LANGUAGE >_< NLS_TERRITORY>. <clients characterset>
  65. : NLS_LANG = language _ region _ client Character Set
  66. When the LANG value is "en_US.UTF-8", it means that NLS_LANG sets NLS_LANG = AMERICAN_AMERICA.AL32UTF8 in the following format
  67. If the LANG value is "fr_FR.UTF-8", the value set in NLS_LANG is FRENCH_FRANCE.AL32UTF8.
  68. You can also set LANG through export
  69. [Oracle @ HXZG ~] $ Export NLS_LANG = AMERICAN_AMERICA.AL32UTF8
  70. [Oracle @ HXZG ~] $ Locale | grep LANG
  71. LANG = en_US.UTF-8
  1. Set the NLS_LANG variable
  2. 1) correctly configure the LC_ALL Parameter
  3. 2) configure the character set of the telnet/ssh/SecureCRT Client
  4. In linux, you can use the locale command to view the NLS_LANG settings, as shown in the following example:
  5. [Root @ HXZG ~] # Locale
  6. LANG = en_US.UTF-8
  7. LC_CTYPE = "en_US.UTF-8"
  8. LC_NUMERIC = "en_US.UTF-8"
  9. LC_TIME = "en_US.UTF-8"
  10. LC_COLLATE = "en_US.UTF-8"
  11. LC_MONETARY = "en_US.UTF-8"
  12. LC_MESSAGES = "en_US.UTF-8"
  13. LC_PAPER = "en_US.UTF-8"
  14. LC_NAME = "en_US.UTF-8"
  15. LC_ADDRESS = "en_US.UTF-8"
  16. LC_TELEPHONE = "en_US.UTF-8"
  17. LC_MEASUREMENT = "en_US.UTF-8"
  18. LC_IDENTIFICATION = "en_US.UTF-8"
  19. LC_ALL =

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.