1.json文件
[root@host135 script]# more oracle2mysql.json { "job": { "content": [ { "reader": { "name": "oraclereader", "parameter": { "column": ["*"], "connection": [ { "jdbcUrl": ["jdbc:oracle:thin:@192.168.1.1:1521/orcl"], "table": ["cinfo"] } ], "password": "oracle", "username": "hxl" } }, "writer": { "name": "mysqlwriter", "parameter": { "column": ["*"], "connection": [ { "jdbcUrl": "jdbc:mysql://192.168.1.135:3306/db_hxl?useUnicode=true&characterEncoding=UTF-8", "table": ["cinfo"] } ], "password": "mysql", "preSql": [], "session":["set session sql_mode='ANSI'"], "username": "root", "writeMode": "update" } } } ], "setting": { "speed": { "channel": "3" } } } }
2.执行
python /opt/datax/bin/datax.py /opt/datax/script/oracle2mysql.json
标签:opt,192.168,json,datax,mysql,oracle From: https://www.cnblogs.com/hxlasky/p/17261410.html