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 > DB2 > DB2 Java Codepage problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-18-05, 04:16
xamar xamar is offline
Registered User
 
Join Date: Apr 2004
Posts: 39
DB2 Java Codepage problem

Hi,


DB2 Server is DB2 7.1 in OS/390
Java development is on Win 2000
Connecting with DB2 Connect.


We recently moved our database from one mainframe to another. Source system CCSID was 500. The CCSID in new mainframe DB2 is 1146. After the movement, the java development people are unable to connect to new DB2 system using JDBC. Following is the error they get.

Error:
------
COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver] SQL0332N There is no available conversion for the source code page "1146" to the target code page "1208". Reason Code "1". SQLSTATE=57017

But they can connect to the old system.

We tried following :
-------------------
1. We tried changing the db2cli.ini file and added
DisableUnicode =1

Still got the error.

2. So added

DisableUnicode =1
ConnectCodepage=1146

Error is same.

Does anyone know what could be the problem?

Thanks,
xamar
Reply With Quote
  #2 (permalink)  
Old 01-18-05, 10:03
achiola achiola is offline
Registered User
 
Join Date: May 2002
Location: General Deheza, Cba, Arg.
Posts: 273
Reply With Quote
  #3 (permalink)  
Old 01-18-05, 12:06
nidm nidm is offline
Registered User
 
Join Date: May 2003
Posts: 113
Can't open the link. I am interested in this topic, too. thx

Quote:
Originally Posted by achiola
Reply With Quote
  #4 (permalink)  
Old 01-18-05, 12:47
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
The contents of the link
I am getting an SQL0332N error when I connect to a zSeries Unicode database. Can I connect to such a database?

A: Yes, the connection is possible. Specify the following in the db2cli.ini file under the sqllib directory:
[Common]
DisableUnicode=1
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 01-19-05, 02:58
xamar xamar is offline
Registered User
 
Join Date: Apr 2004
Posts: 39
Reply

Thanks achiola and others!

We didn't have the [Common] in there. It works after we added that.

Most of the places I looked around did talk about DisableUnicode(which we tried) but not this "Common" thing.

So thanks again.
xamar.
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