我写的程序使用java和脚本(etl框架)来移动数据从访问(Mdb)到甲骨文,我改变了访问中的unicodeCompression为每个字段的是,我已经测试了甲骨文编码添加utf-8数据在SqlDeveloper中这是好的,现在当我运行程序移动数据到甲骨文时,我得到了questionMarks的记录。
这是我的etl
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE etl SYSTEM "http://scriptella.javaforge.com/dtd/etl.dtd">
<etl>
<connection id="dbInput" url="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=$MDB_FILE_NAME" />
<connection id="dbOutput" url="jdbc:oracle:thin:@localhost:1521:xe" user="user" password="pass" />
<query connection-id="dbInput" >
SELECT * FROM table1;
<script connection-id="dbOutput">
INSERT INTO some_table(COLUMN1, COLUMN2, COLUMN3) values (?field1,
?field2, ?field3);
</script>
</query>
</etl>
这有什么问题吗?
我在jasperETL等ETL工具中见过输入/输出编码,在scriptella中有类似的东西吗?
在SqlDeveloper中移动数据,最后一个(id=4)我直接填充到oracle中
发布于 2012-10-20 03:13:08
尝试设置charSet属性introduced in Java 5
<connection id="dbInput" url="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=$MDB_FILE_NAME">
charSet=UTF-8
</connection>
https://stackoverflow.com/questions/12973960
复制相似问题