If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > How to connect different locale informix DB?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-08-04, 02:11
wings wings is offline
Registered User
 
Join Date: Sep 2004
Posts: 2
Unhappy How to connect different locale informix DB?

Hi,

Is anybody has this experience? Connect Informix DB that use different Locale? Any kind Locale? (See attach)

My Informix DB is 9.3, and ODBC is IBM Informix Client-SDK 2.81.

1. The code set problem doesnt exit between the two Informix DBs that both use the same code set, like zh_TW.big5 vs zh_TW.big5.

2. But, when 2 DBs' Code Set is different, like Database Locale is "en_US.819" and Client Locale is "zh_TW.big5", how could I connect two DB and transfer data from Server to Client?

3. As attach, what's kind of information about Translation Library and Translation Option have to enter?

4. If need some of Libraries or Options, where I can get it?


Thanks for your time!

wings!
Attached Images
File Type: jpg InformixODBC.jpg (71.3 KB, 316 views)
Reply With Quote
  #2 (permalink)  
Old 09-08-04, 09:28
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi Wings,

Can You test define DBNLS=[0|1|2] ?

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 09-10-04, 06:00
Big Kahuna Big Kahuna is offline
Registered User
 
Join Date: Jan 2003
Posts: 30
Code set conversion

Hi,

Codeset conversion using CLIENT_LOCALE and DB_LOCALE can only be used to perform codeset conversion between a client application and a serverdatabase.

In pre 9.40 releases performing distributed queries on 2 different db's with different locales was not possible.

In 9.40 however the collation of a database can be changed :

in your database session you can use
set collation "zh_TW.big5" ;
this overrules the DB_LOCALE setting.
Please do this setting and then try your distributed query.

Or as an alternative create both your db's with the same locale( use UNICODE) ...and always do the codeset conversion from client to db.

"set no collation" places the DB_LCOALE back to the default

Good luck
Koen
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

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