• datax 数据同步迁移


    https://github.com/alibaba/DataX/blob/master/mysqlwriter/doc/mysqlwriter.md

    https://github.com/alibaba/DataX/blob/master/oraclewriter/doc/oraclewriter.md

    [root@OracNode1 job]# vim mysql2oracle.json
    {
    "job": {
    "content": [
    {
    "reader": {
    "name": "mysqlreader",
    "parameter": {
    "username": "testAdmin",
    "password": "tsj123456",
    "column": ["first_name","last_name"],
    "where": "first_name like 'C%'",
    "connection": [
    {
    "table": [
    "actor"
    ],
    "jdbcUrl": [
    "jdbc:mysql://192.168.1.139:3306/sakila"
    ]
    }
    ]
    }
    },
    "writer": {
    "name": "oraclewriter",
    "parameter": {
    "username": "scott",
    "password": "tiger",
    "column": [
    "first_name",
    "last_name"
    ],
    "preSql": [
    "delete from actor_test"
    ],
    "connection": [
    {
    "jdbcUrl": "jdbc:oracle:thin:@192.168.1.146:1521:ORCL",
    "table": [
    "actor_test"
    ]
    }
    ]
    }
    }
    }
    ],
    "setting": {
    "speed": {
    "channel": 1
    }
    }
    }

    ===============

    [root@OracNode1 job]# vim oracle2mysql.json
    {
    "job": {
    "content": [
    {
    "reader": {
    "name": "oraclereader",
    "parameter": {
    "column": ["EMPNO","ENAME", "JOB ","MGR"],
    "connection": [
    {
    "jdbcUrl": ["jdbc:oracle:thin:@192.168.1.146:1521:ORCL"],
    "table": ["emp"]
    }
    ],
    "password": "tiger",
    "username": "scott"
    }
    },
    "writer": {
    "name": "mysqlwriter",
    "parameter": {
    "column": ["EMPNO","ENAME", "JOB ","MGR"],
    "connection": [
    {
    "jdbcUrl": "jdbc:mysql://192.168.1.139:3306/sakila",
    "table": ["emp"]
    }
    ],
    "password": "tsj123456",
    "preSql": ["delete from emp"],
    "session": [],
    "username": "testAdmin",
    "writeMode": "insert"
    }
    }
    }
    ],
    "setting": {
    "speed": {
    "channel": "1"
    }
    }
    }
    }

  • 相关阅读:
    html5 表單元素
    html5 表單輸入類型
    html5 服務器發送事件
    html5 web workers
    html5應用緩存
    html5 sessionStorage VS loaclStorage
    html5地理定位
    html5 画布和SVG的差别
    html5 SVG
    SQL-22 统计各个部门对应员工涨幅的次数总和,给出部门编码dept_no、部门名称dept_name以及次数sum
  • 原文地址:https://www.cnblogs.com/moss_tan_jun/p/9226742.html
Copyright © 2020-2023  润新知