LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-10-2010, 05:04 AM   #1
Jackie_2008
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
How to change character set in Linux


My distribution is CentOS 5.5, I installed Oracle 11g and create an instance setting its character set as AL32UTF8. The problem is the message from oracle cannot be shown correctly, like this:

ORA-00942: ???????

I guess that maybe the characterset of my CentOS differs from what oracle uses. So i turned to /etc/sysconfig/i18n and found:

LANG="zh_CN.UTF-8"

So i changed contents of i18n to:
LANG="zh_CN.AL32UTF8"
But still cannot solve the problem.
Maybe my linux don't know what AL32UTF8 is???
What shall I do ??? please help me !!!
 
Old 10-10-2010, 07:31 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
As far as I know there is no character set AL32UTF8 in Linux. Maybe in Oracle. So change your LANG environment back. If you can not see UTF8 messages on console, try to switch it by command "unicode_start" and check that you have loaded unicode fonts.
 
Old 10-10-2010, 01:00 PM   #3
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hye,

AL32UTF8 is an Oracle internal database character set. There is no dependency to the Linux character set.

To set Oracle charset on shell create the variable NLS_LANG.

To set Linux charset use shell variable LANG, or set the value persistent for all users across reboot in /etc/sysconfig/i18n.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change file Character Set keenboy Linux - General 5 08-11-2010 09:05 PM
help me to change the character set hosney00ux Solaris / OpenSolaris 4 08-18-2009 06:43 AM
character set problem vbsaltydog Linux - General 2 07-06-2009 01:33 PM
Korean Character Set bootneck Linux - Newbie 2 06-29-2006 05:41 AM
changing character set in linux box haora Linux - Newbie 1 06-20-2005 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration