暂无图片
datax迁移,数据导入之后格式错误
我来答
分享
暂无图片 匿名用户
datax迁移,数据导入之后格式错误

使用datax从oracle 12.2.0.1迁移到mysql 8.0

表的字段是select ID_,CREATE_TIME_ from statudent;

job内容如下:

{
"job": {
"setting": {
"speed": {
"channel": 5
}
},
"content": [
{
"reader": {
"name": "oraclereader",
"parameter": {
"username": "student",
"password": "student",
"where": "",
"mandatoryEncoding": "UTF8",
"connection": [
{
"querySql": [
" select ID_,CREATE_TIME_ from statudent;"

],
"jdbcUrl": [

"jdbc:oracle:thin:@10.10.10.11:1521/student"

]
}
]
}
},
"writer": {
"name": "mysqlwriter",
"parameter": {
"column": ["ID_","CREATE_TIME_",],
"connection": [
{
"jdbcUrl": "jdbc:mysql://10.10.10.10:3306/oa?useUnicode=true&characterEncoding=utf8",
"table": ["statudent"]
}
],
"password": "student",
"username": "student",
"preSql": ["truncate table statudent"],
"segment_reject_limit": 0,
"copy_queue_size": 100000,
"num_copy_processor": 4,
"num_copy_writer": 1
}
}
}
]
}
}


源oracle得内容如下:


导入mysql之后如下:



其他表的字段是正常字符结尾的,导入的数据都是正常的,只有字段结尾使用了下划线,导入的数据是这样,有什么方法可以解决

我来答
添加附件
收藏
分享
问题补充
1条回答
默认
最新
S
shing

可以用etlcloud试试,目前正在用 流程实现数仓同步支持很多数据库

暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏