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"
              }
            ]
          }
        }
      }
    ]
  }
}
相关推荐
wrx繁星点点7 分钟前
多个线程同时写入一个共享变量,会发生什么问题?如何解决?
java·开发语言·数据库
鲨鱼辣椒ii23 分钟前
sql中索引查看是否生效
数据库·sql
leidata1 小时前
MySQL系列—10.Innodb行格式
数据库·mysql
阿维的博客日记1 小时前
聚簇索引和二级索引
数据库·聚簇索引·二级索引
璇嘟嘟2 小时前
springboot-创建连接池
数据库
计算机程序设计开发2 小时前
小说阅读网站登录注册搜索小说查看评论前后台管理计算机毕业设计/springboot/javaWEB/J2EE/MYSQL数据库/vue前后分离小程序
数据库·vue.js·spring boot·java-ee·课程设计·计算机毕业设计·数据库管理系统
赵利伟@2 小时前
springboot对数据库进行备份+对一个文件夹内的文件按时间排序,只保留最近的8个文件
数据库
水兵没月2 小时前
MongoDB根据字段内容长度查询语句
数据库·mongodb
shuiyihang09812 小时前
数据库课程 CMU15-445 2023 Fall Project-1 Buffer Pool Manager
网络·数据库·cmu 15-445
阿维的博客日记3 小时前
简要介绍联合索引
数据库·联合索引