I use the same IFMX JDBC driver on Windows and AIX.
This is the version information :
IBM Informix JDBC Driver Version 2.21.JC2
Software Serial Number (Unregistered Version)
When unsetting CLIENT_LOCALE and DB_LOCALE and
test the connection again, I got the same result :
java.sql.SQLException: Unable to load locale categories.
at com.informix.util.IfxErrMsg.getSQLException(IfxErr Msg.java:348)
at com.informix.jdbc.IfxSqli.addException(IfxSqli.jav a:3025)
at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.jav a:3335)
at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java :2288)
at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.j ava(Compiled Code))
at com.informix.jdbc.IfxSqli.executeOpenDatabase(IfxS qli.java:1703)
at com.informix.jdbc.IfxSqliConnect.<init>(IfxSqliCon nect.java:1007)
at java.lang.reflect.Constructor.newInstance(Native Method)
at com.informix.jdbc.IfxDriver.connect(IfxDriver.java :251)
at java.sql.DriverManager.getConnection(DriverManager .java:523)
at java.sql.DriverManager.getConnection(DriverManager .java:183)
at TESTDB.main(TESTDB.java:12)
I think some environment settings on the AIX were not correct. I'll try again.
Quote:
Originally posted by eherber
I don't think that this a problem of the JVM.
Is there a difference in the JDBC versions you use
on Windows and AIX ?
You can get the version information of the IFMX JDBC driver
with the following command:
java com.informix.jdbc.Version
Older versions of the IFMX JDBC driver didn't support
NLS databases. So this might be the problem.
Try unsetting CLIENT_LOCALE and DB_LOCALE and
test the connection again.
|