一: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"
}
]
}
}
}
]
}
}