{
"job": {
"setting": {
"speed": {
"channel": 1
}
},
"content": [
{
"reader": {
"name": "streamreader",
"parameter": {
"column" : [
{
"value": "DataX",
"type": "string"
},
{
"value": 19880808,
"type": "long"
},
{
"value": "1988-08-08 08:08:08",
"type": "date"
},
{
"value": true,
"type": "bool"
},
{
"value": "test",
"type": "bytes"
}
],
"sliceRecordCount": 1000
}
},
"writer": {
"name": "oraclewriter",
"parameter": {
"username": "root",
"password": "root",
"column": [
"id",
"name"
],
"preSql": [
"delete from test"
],
"connection": [
{
"jdbcUrl": "jdbc:oracle:thin:@[HOST_NAME]:PORT:[DATABASE_NAME]",
"table": [
"test"
]
}
]
}
}
}
]
}
}
"session":[
"alter session set nls_date_format = 'dd.mm.yyyy hh24:mi:ss';"
"alter session set NLS_LANG = 'AMERICAN';"
]
Q:OracleWriter执行postSql语句报错,那么数据导入到目标数据库了吗?
Q:按照上述说法,那么有部分脏数据导入数据库,如果影响到线上数据库怎么办?
Q:上面第二种方法可以避免对线上数据造成影响,那我具体怎样操作?
评论区(0)