GithubHelp home page GithubHelp logo

longyangzz / kettlesyncrain Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 215 KB

使用kettle ETL配置作业、转换实现数据库间的雨情表同步

License: GNU General Public License v3.0

Batchfile 100.00%

kettlesyncrain's Introduction

水雨情数据同步作业配置

默认情况下同步三张表:

  1. st_pptn_r;

  2. sr_river_r

  3. st_rsvr_r

    同时,需要有ST_STBPRP_B站点信息表,即可实现两个库之前这三张表的数据同步。

    一、配置步骤

    1. 打开作业工程后边界,source和target数据库连接信息,并测试是否连接成功;

      数据库连接设置

    2. 在作业页面右键设置作业参数,设置启动时候前推时间以及当天项目行政区划编码。

      作业参数设置

    3. 创建etl表,通过在目标库中,执行下边语句,同步一天前的数据默认:

      create table etl_temp (id int primary key,time_stamp datetime,time_stamp_river datetime,time_stamp_rsvr datetime) INSERT INTO etl_temp (id,time_stamp,time_stamp_river, time_stamp_rsvr) VALUES (1, DATEADD(DD ,-1, getdate()), DATEADD(DD ,-1, getdate()) , DATEADD(DD ,-1, getdate()) )

kettlesyncrain's People

Stargazers

longyangzz avatar

Watchers

James Cloos avatar longyangzz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.