py+datax自动生成job,自动bat方式批处理运行job

1、批处理传入表结构所在的oracle库用户名、表名,连接串

echo 调用参数:.py connusername connuserpass dbconn  username  tablename oboracle
python pyorajobarg.py xmgl xmgl 10.***:1521/test EINP_TREATMENT AC60 oboracle

运行后即可生成job.json文件,和自动调用datax运行job的bat批处理文件

{
  "job": {
    "setting": {
      "speed": {
        "channel": $speedchannel,
        "byte": $speedbyte
      },
      "errorLimit": {
        "record": $errrecord,
        "percentage": $errpercentage
      }
    },
    "content": [
      {
        "reader": {
          "name": "oceanbasev10reader",
          "parameter": {
            "username": "$susername",
            "password": "$spass",
            "column": [
            
                
                    "BAZ001",

                 
                    "BAZ002",

                 
                    "AAZ821",

                 
                    "AAZ257",

                 
                    "AAZ172",

                 
                    "AAZ099",

                 
                    "AAC001",

                 
                    "AJC039",

                 
                    "AAE127",

                 
                    "AAC242",

                 
                    "AAC260",

                 
                    "AAC015",

                 
                    "ACA111",

                 
                    "ACA112",

                 
                    "ACA113",

                 
                    "AAB118",

                 
                    "AAC187",

                 
                    "AAE001",

                 
                    "AJC024",

                 
                    "AJC120",

                 
                    "AAZ159",

                 
                    "AAE100",

                 
                    "AAE011",

                 
                    "AAE036",

                 
                    "AAB034",

                 
                    "BZE011",

                 
                    "BZE036",

                 
                    "BZE034",

                 
                    "AAA027",

                 
                    "AAE013",

                 
                    "BZE300",

                 
                    "AJC121",

                 
                    "AJC122",

                 
                    "AJC123",

                 
                    "AJC049"
                 
              
            ],
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值