dataX从orcal数据库抽取数据插入gbase 8a数据库 与 OceanBase数据库

一:dataX从orcal数据库抽取数据插入gbase 8a数据库配置:

复制代码
{
  "job": {
    "setting": {
      "speed": {
        "channel": 4
      },
      "errorLimit": {
        "percentage": 0
      }
    },
    "content": [
      {
        "reader": {
          "name": "oraclereader",
          "parameter": {
            "username": "ddd",
            "password": "123456",
            "column": [
              "*"
            ],
            "connection": [
              {
                "table": [
                  "${STABLE}"
                ],
                "jdbcUrl": [
                  "jdbc:oracle:thin:@1.4.1.7:1521/aaa"
                ],
                "where":"${SSUM} = ${SDATE}"
              }
            ]
          }
        },
        "writer": {
          "name": "rdbmswriter",
          "parameter": {
            "batchSize": 5000,
            "memstoreThreshold": "90",
            "username": "nnn",
            "password": "fdfsdfs",
            "column": [
              "*"
            ],
            "preSql": [
              "delete from ${STABLE} where ${SSUM} = ${SDATE}"
            ],
            "connection": [
              {
                "table": [
                  "${TTABLE}"
                ],
                "jdbcUrl": "jdbc:gbase://16.16.16.4:5258/gb_ku?rewriteBatchedStatements=true"
              }
            ]
          }
        }
      }
    ]
  }
}

二:dataX从orcal数据库抽取数据插入OceanBase数据库配置:

复制代码
{
  "job": {
    "setting": {
      "speed": {
        "channel": 4
      },
      "errorLimit": {
        "percentage": 0
      }
    },
    "content": [
      {
        "reader": {
          "name": "oraclereader",
          "parameter": {
            "username": "yy",
            "password": "yy#yy",
            "column": [
              "*"
            ],
            "connection": [
              {
                "querySql": [
                  "select * from ${STABLE} where ${SSUM} > ${SDATE} "
                ],
                "jdbcUrl": [
                  "jdbc:oracle:thin:@14.64.12.14:1521/fgh"
                ]
              }
            ]
          }
        },
        "writer": {
          "name": "oceanbasev10writer",
          "parameter": {
            "writeMode": "insert",
            "batchSize": 5000,
            "memstoreThreshold": "90",
            "username": "show",
            "password": "fgfg",
            "column": [
              "*"
            ],
            "preSql": [
              "delete from ${STABLE} where ${SSUM} > ${SDATE}"
            ],
            "connection": [
              {
                "table": [
                  "${STABLE}"
                ],
                "jdbcUrl": "jdbc:oceanbase://14.54.161.3:9056/hhh"
              }
            ]
          }
        }
      }
    ]
  }
}
相关推荐
电商API&Tina2 分钟前
【电商API接口】开发者一站式电商API接入说明
大数据·数据库·人工智能·云计算·json
2401_857918294 分钟前
用Python和Twilio构建短信通知系统
jvm·数据库·python
樹JUMP9 分钟前
使用Docker容器化你的Python应用
jvm·数据库·python
原来是猿1 小时前
MySQL【用户管理】
数据库·mysql
2501_945423541 小时前
使用Fabric自动化你的部署流程
jvm·数据库·python
2401_846341651 小时前
用Pandas处理时间序列数据(Time Series)
jvm·数据库·python
2401_831824961 小时前
编写一个Python脚本自动下载壁纸
jvm·数据库·python
2401_857918291 小时前
Python在2024年的主要趋势与发展方向
jvm·数据库·python
IvorySQL2 小时前
PostgreSQL 19 重磅新语法终于补齐这个缺口
数据库·postgresql·开源
IvorySQL2 小时前
PostgreSQL 技术日报 (3月23日)|使用 rdtsc 减少 EXPLAIN ANALYZE 的计时开销
数据库·postgresql·开源