csvdir = /u01/script/anl_pyetl/py_csv/two/
3
#源库连接信息:支持:Oracle\Mysql\Greenplum\Postgresql
4
srcdb = {'dbtype':'oracle','user': 'two','passwd': 'two', 'tns':
'192.168.2.101:1521/two', 'encoding': 'utf-8'}
5
6
#Mysql
7
#dburl = {'dbtype':'mysql','user': 'two','passwd': 'two',
'dbname':'two_db','host':'192.168.2.101','port':3305}
8
9
#Greenplum
10
#srcdb = {'dbtype':'greenplum','user': 'two','passwd': 'two', 'dbname':
'two_db','host':'192.168.2.101','port':'5432'}
11
12
#目标库连接信息:仅支持Greenplum, 删除此配置仅生成csv文件,不入库
13
dstdb = {'dbtype':'greenplum','user': 'anl_two','passwd': 'anl_two', 'dbname':
'anltwo_db','host':'192.168.2.102','port':'5432'}
14
15
# 表1:anl_trans_day 与入库表名一致
16
[anl_trans_day]
17
# Y:同步,N:不同步
18
sync = Y
19
#同步状态,用于监控,Start :开始,End:同步结束,Fail:同步失败,格式:[状态:记录数:结束日期]
20
state = End:319843:2024-07-19 00:25:14
21
#指定SQL File
22
sqlfile = py_sql/two/1.anl_trans_day.sql
23
#传参数:同步昨天的数据
24
params = {"StartDate": "sysdate-1", "EndDate": "sysdate"}
25
26
[anl_refund_day]
27
sync = Y
28
state = End:1976:2024-07-19 00:27:16
29
sqlfile = py_sql/two/2.anl_refund_day.sql
30
#指定日期同步
31
params = {"StartDate": "2024-06-14", "EndDate": "2024-06-15"}
32
文档被以下合辑收录
评论