RE: oledb & locale problem
Posted in 2006
i finally solve the problem with the help of your post and an example found in release notes of client sdk. in oledb connection if we give db_locale=en_us.1252 and client_locale=en_us.1252 regardless of client_locale and db_locale values in setnet32 it works. Then i tried some other character set codes and finally found a suitable one for us: pc-latin5. connection is ok now :-) Thanks for your help Abdullah AKOGLU ________________________________ From: Sheshnarayan Agrawal [mailto:shagrawal@in.ibm.com] Sent: Friday, September 22, 2006 2:42 PM To: Abdullah Akoglu Cc: informix-list@iiug.org; informix-list-bounces@iiug.org Subject: RE: oledb & locale problem Thanks for the info ...I am not sure about the "modified version of tr_tr ...." part. If you simply create the database with the english locale (default) and trying to connect to the database, does this work? If so probably you need to revisit the modification part of the locales. Error -23101 says as follows .. Unable to load locale categories. An invalid locale name was supplied for the locale initialization. The environment variable specifying the locale category has a wrong value. ... ... Thanks & Regards -Shesh Informix CSDK Team, IBM India Software Lab, Bangalore, Office : +91-80-41056295 , Cell : +91-9341853684 Tie Line : 92-46271 "Abdullah Akoglu" <aakoglu@vob.org.tr> 09/22/2006 02:07 PM To Sheshnarayan Agrawal/India/IBM@IBMIN cc <informix-list@iiug.org>, <informix-list-bounces@iiug.org> Subject RE: oledb & locale problem * Informix 3.30: "Dsn='';Driver={INFORMIX 3.30 32 BIT};Host=hostname;Server=myserver;Service=service-name;Protocol=olsoctc p;Database=mydb;UID=myUsername;PWD=myPassword * Informix-CLI 2.5: "Driver={Informix-CLI 2.5 (32 Bit)};Server=myserver;Database=mydb;Uid=myUsername;Pwd=myPassword" * OLE DB * IBM Informix OLE DB Provider: "Provider=Ifxoledbc.2;password=myPassword;User ID=myUsername;Data Source=dbName@serverName;Persist Security Info=true" For oledb ==> provider=ifxoledbc.2;password=***;user id=dbuser;data source=testdb@thales;persist security info=true For odbc ==> dsn=testdb Testdb properties in odbc setup==> server name = thales, hostname=thales_host, service = 1528, protocol = onsoctcp, database name = testdb, user id= dbuser, password = ***, client_locale= tr_TR.8859-9@ifix, db_locale= tr_TR.8859-9@ifix Our locale is a modified version of tr_tr.8859-9. after installation of client sdk we copy some files onto gls directory. Also the same change is done on the server side. ________________________________ From: Sheshnarayan Agrawal [mailto:shagrawal@in.ibm.com] Sent: Friday, September 22, 2006 11:28 AM To: Abdullah Akoglu Cc: informix-list@iiug.org; informix-list-bounces@iiug.org Subject: RE: oledb & locale problem Can you post your connection string both for ODBC and OLEDB? As you pointed out locale setting(I assume DB locale) is tr_tr.8859-9 looks like the client locale you are trying to set is not compatible with this db locale (in terms of conversion it takes place). -Shesh "Abdullah Akoglu" <aakoglu@vob.org.tr> 09/22/2006 01:36 PM To Sheshnarayan Agrawal/India/IBM@IBMIN cc <informix-list@iiug.org>, <informix-list-bounces@iiug.org> Subject RE: oledb & locale problem Yes i have run coledbp.sql against sysmaster database before. Db version is Informix IDS 7.31 UD3 On client side i set client_locale and db_locale environment variables and make the connection tests but nothing changed. Locale setting is tr_tr.8859-9@ifix. i create a connection file on my desktop with right click-> new -> text file. And rename it : For example a.udl if you double click that file it opens the db connection dialog. On first tab page i choose provider: IBM Informix OLE DB Provider, on connection page i give data source as testdb@thales then username and password. When i click test connection button i get the error. ________________________________ From: Sheshnarayan Agrawal [mailto:shagrawal@in.ibm.com] Sent: Friday, September 22, 2006 10:52 AM To: Abdullah Akoglu Cc: informix-list@iiug.org; informix-list-bounces@iiug.org Subject: Re: oledb & locale problem I hope you ran coledbp.sql (which is under CSDK %INFOMRIXDIR%\\etc dir) against "sysmaster" database of 7.31 server. I am not aware about any such connectivity issue with CSDK 2.90.TC5 and IDS 7.31 (can you provide exact version of 7.31?). Do you have client/db locales set in your system environment other than setnet32? Can you also post your connection string and the DB locale for the database you are trying to connect? -Shesh "Abdullah Akoglu" <aakoglu@vob.org.tr> Sent by: informix-list-bounces@iiug.org 09/22/2006 01:02 PM To <informix-list@iiug.org> cc Subject oledb & locale problem Hi, i'm having some problems with oledb connection. The problem is i can't connect using oledb provider but with odbc everything is ok. our database is using a modified character set (other than en_us.8859-1). I have installed another instance with en_us.8859-1 locale. When connecting to this instance with en_us.8859-1 locale, oledb connection succeeds. i changed the client_locale and db_locale in setnet32 and datasource property of oledb connection to our production database. This time it gives an error saying: "test connection failed because of an error initializing provider. 0x80040e21" if i do not change the client_locale and db_locale in setnet32 (leave default blank) then it gives an error:"test connection failed because of an error in initializing provider. EIX000:(-23101) Unable to load locale categories." Server side : Informix IDS 7.31 Client side : IBM Informix Client SDK 2.90 TC5 i am planning to use analysis services 2005 and it only supports oledb connection. So i have to make this oledb connection work. Have you got any idea or solution for my situation? Thanks Abdullah AKOGLU Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger Bu e-posta mesaji size yanlislikla ulasmissa, icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya geri gonderiniz ve tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hicbir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz, para karsiligi satilamaz . Bu e-posta mesaji virus koruma sistemleri ile kontrol ediliyor olsa bile virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez.Bu e-posta mesajindaki gorusler Vadeli Islem ve Opsiyon Borsasi A.S.'nin goruslerini yansitmayabilir ve kurumu baglayici degildir. _____________