English 中文(简体)
使用DB2 SYSPROC时的特征问题。 ADMIN_CMD for database import
原标题:Problems with Characterset when using DB2 SYSPROC.ADMIN_CMD for database import

我正在办理一项 Java诉申请,将我需要进口的档案移交给第二行的服务器。 之后,Java Application创建了一个JDBC与数据库的联系,并运行:

 CALL SYSPROC.ADMIN_CMD( import from <filename> of del modified by decpt, coldel; messages on server inert into <view> )

The problem I have seems somehow conencted to the charset of either the database of the user the database uses to import the files (using the admin_cmd stored procedure). That problem is: "Umlaute", like ä,ö,ü get messed up by this import. I had this sort of problem in the past and solution always was to set the LC_CTYPE of the user importing the data to de_DE.iso88591

What I already ruled out as the source of the problem: - The file transfer to the database server. (Umlaute are still ok after that) - The JDBC Connection (I simply inserted a line through the sql command instead of reading from a file)

现在我并没有说,亚银2使用什么来通过杀伤人员地雷进口档案。 我还认为,它可能在某种程度上与非行2环境相关联,因为与所有其他方式一样,插入、将......数据输入其中,将工作罚款。

是的,我需要使用杀伤人员地雷。 亚洲开发银行2指挥线工具是一种表演夜总会。

问题回答

感谢您的答复。

最后,我通过增加一个席位来确定这个问题。

MODIFIED BY CODEPAGE=1252 

致我的亚行进口指挥部。 这似乎凌驾于以前使用过制版环境之上。 数据库的缺省代码也看上去,因为定在1252处。 我现在能够认为的唯一事情,是所有这一切的原因,可能是在通过杀伤人员地雷进口时使用亚银2。





相关问题
MaxPooledStatements setting in JDBC oracle

I can t figure out how to set MaxPooledStatements in Oracle using the Oracle thin JDBC driver. Could someone point me in the right direction?

pass ResultSet from servlet to JSP

I am doing the following in my SampleServlet.java //Fill resultset from db .... try { ArrayList Rows = new ArrayList(); while (resultSet.next()){ ArrayList row = new ArrayList(); ...

How to correctly use ResultSet with h:dataTable

The problem is, that after displaying the ResultSet with <h:dataTable>, the connection is left open. If I close it, it closes the ResultSet too. I m thinking about copying the ResultSet data ...

Mysql session variable in JDBC string

am using this connection string to connect to mysql from java: jdbc:mysql://localhost:3306/db?noDatetimeStringSync=true&useUnicode=yes&characterEncoding=UTF-8 is it possible to set the ...

热门标签