Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > Setting NLS Lang on Session

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-27-03, 09:19
ThomasMihatsch ThomasMihatsch is offline
Registered User
 
Join Date: May 2003
Posts: 3
Setting NLS Lang on Session

I’m using VB6 to connect to two different ORACLE 8 DB’s.
These DB’s are set up with different language settings.

DB1 is set up with NLS_LANG = AMERICAN_AMERICA.WE8ISO8859P1

DB2 is set up with NLS_LANG = GERMAN_GERMANY.WE8ISO8859P9

Setting these values in the registry allows me to connect to the DB’s but not at the same time. So the question is how to set NLS_LANG individual for each session. I have tried out various settings for the

AdoConnection.Properties("Locale Identifier") = 1033 'EN-US locale code

But with out any success.

PLS Advice.

/Thomas
Reply With Quote
  #2 (permalink)  
Old 05-27-03, 17:34
ravipurbia ravipurbia is offline
Registered User
 
Join Date: May 2003
Posts: 5
Cool Re: Setting NLS Lang on Session

If I understood your probs, then u can try this with creating at command prompt one enviorenment variable for each session,,,

SET NLS_LANG=AMERICAN_AMERICA.WHATEVER

and for onther session go to prompt

SET NLS_LANG=GERMANY,,, WHATEVER

all the best!
Reply With Quote
  #3 (permalink)  
Old 05-28-03, 03:34
ThomasMihatsch ThomasMihatsch is offline
Registered User
 
Join Date: May 2003
Posts: 3
Re: Setting NLS Lang on Session

Quote:
Originally posted by ravipurbia
If I understood your probs, then u can try this with creating at command prompt one enviorenment variable for each session,,,

SET NLS_LANG=AMERICAN_AMERICA.WHATEVER

and for onther session go to prompt

SET NLS_LANG=GERMANY,,, WHATEVER

all the best!

Thanks for the answer, but I have to connect to the DB’s with on single EXE file.

My hope is that someone knows a Solution – like setting NLS_LANG in the tnsname.ora for each Database file.
Reply With Quote
  #4 (permalink)  
Old 05-28-03, 15:32
clio_usa clio_usa is offline
Registered User
 
Join Date: Apr 2002
Location: California, USA
Posts: 482
Thumbs up

I guess, you can run this command:

SQL> ALTER SESSION SET NLS_LANGUAGE = GERMAN;

Session wurde geändert.

SQL> SELECT * FROM TEST_ONLY;
SELECT * FROM TEST_ONLY
*
FEHLER in Zeile 1:
ORA-00942: table or view does not exist


Hope that helps,

clio_usa - OCP - DBA

dbaclick.com
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On