forked from wgzhao/Addax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoracle2dbf.json
76 lines (76 loc) · 1.88 KB
/
oracle2dbf.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"job": {
"content": [
{
"reader": {
"name": "oraclereader",
"parameter": {
"column": [
"BRANCH_NO",
"2.3",
"BRANCH_NAME",
"DW_CLT_DATE"
],
"connection": [
{
"jdbcUrl": [
"jdbc:oracle:thin:@127.0.0.1:1521/stage"
],
"table": [
"STGUF.ALLBRANCH"
]
}
],
"password": "password",
"username": "oracle",
"where": "branch_no = '1211'",
"session": [
"alter session set NLS_DATE_FORMAT='yyyy/mm/dd hh24:mi:ss'",
"alter session set NLS_TIMESTAMP_FORMAT='yyyy/mm/dd hh24:mi:ss'",
"alter session set NLS_TIMESTAMP_TZ_FORMAT='yyyy-mm-dd hh24:mi:ss'",
"alter session set TIME_ZONE='Asia/Chongqing'"
]
}
},
"writer": {
"name": "dbffilewriter",
"parameter": {
"column": [
{
"name": "col1",
"type": "numeric",
"length": 10,
"scal": 0
},
{
"name": "col2",
"type": "numeric",
"length": 10,
"scal": 2
},
{
"name": "col3",
"type": "char",
"length": 250
},
{
"name": "col4",
"type": "date"
}
],
"fileName": "allbranch.dbf",
"path": "/tmp/out",
"writeMode": "truncate"
}
}
}
],
"setting": {
"speed": {
"batchSize": 20480,
"bytes": -1,
"channel": 10
}
}
}
}