Operating System - HP-UX
1831602 Members
2310 Online
110027 Solutions
New Discussion

A question about Oracle on HP-UX

 
Wang,MinJie
Super Advisor

A question about Oracle on HP-UX

Hi all
We recently transplanted Oracle database from Windows to HP-UX.
Now we are faced with a serious problem.
Our web application cannot display the characters correctly which it read from Oracle!
I can't understand because there is no difference in "character set" of the database between windows and unix(I have confirmed it when I initialized the database on Unix)

Any advice will be appreciated
Thx in advance
6 REPLIES 6
meno
Advisor

Re: A question about Oracle on HP-UX

Hi,

you have to check how is set NLS_LANG on client which is connecting to the database.
Client NLS_LANG setting is responsible for NLS conversion.

Marian

Wang,MinJie
Super Advisor

Re: A question about Oracle on HP-UX

Hey Marian
My client is a windows server
So how can I view and change NLS_LANG
meno
Advisor

Re: A question about Oracle on HP-UX

Hi,

you can view and set in more ways.
- first is setting session variable NLS_LANG e.g. AMERICAN_AMERICA.UTF8
- second is system environment variable NLS_LANG
- third is registry key HKEY_LOCAL_MACHINE -> SOFTWARE -> ORACLE -> OraClientHome(or something like this) -> NLS_LANG

Marian

Wang,MinJie
Super Advisor

Re: A question about Oracle on HP-UX

Hey Marian
I want to know the exact name of charset on Oracle server.
How can I know it
Is the following command correct?:
SQL>select userenv(â languageâ ) from dual;
Wang,MinJie
Super Advisor

Re: A question about Oracle on HP-UX

Hey Marian
I got it Thx
Now I want to know the exact name of charset on Oracle server.
How can I know it
Is the following command correct?:
SQL>select userenv(â languageâ ) from dual;
meno
Advisor

Re: A question about Oracle on HP-UX

Hi,

you can see all abou your NLS in this 3 views:
----------------
- NLS_SESSION_PARAMETERS shows the NLS parameters and their values for the session that is querying the view. It does not show information about the character set.

- NLS_INSTANCE_PARAMETERS shows the current NLS instance parameters that have been explicitly set and the values of the NLS instance parameters.

- NLS_DATABASE_PARAMETERS shows the values of the NLS parameters that were used when the database was created
------------------------

Maybe this manual pages could help you
for 9i (see Chapter 3):
http://download.oracle.com/docs/cd/B10501_01/server.920/a96529/toc.htm

for 10g:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/toc.htm