本文共 751 字,大约阅读时间需要 2 分钟。
Kettle实现定时更新的,从而,可以定时从pgsql中抽取数据到oracle。
1.kettle8.0
2.oracle12c
1.新建一个转换settime_transfer.ktr
2.其中表输入是pgsql的student_de表3.插入更新模块
4.新建settime.job
(1)拖入相关组件(2)将转换选择为之前创建的settime_transfer.ktr
1.使用kettle软件实现
(1)打开job (2)确定时间间隔,单击“确定” (3)点击“Run”,开始执行循环任务(4)缺点:需要运行kettle程序,会造成一定的资源浪费。2.windows定时任务实现
(1)新建setTimejob.bat文件,写入任务脚本 (2)任务脚本d: ## Kitchen.bat所在路径盘符cd D:\Program Files\kettle\data-integration ## Kitchen.bat所在目录## 作业的文件路径和日志文件路径## 执行kitchen执行job,并写入日志Kitchen /file:F:\...\02job\setTime.kjb /level:Base>>F:\...\test.log
(3)双击setTimejob.bat执行pgsql到oracle任务
(4)设置windows定时任务,执行刚刚脚本。
(5)在windows的搜索栏中,搜索“计划任务” (6)点击“操作”-》“创建任务” (7)输入任务名称(8)点击“操作”-》“新建”,然后选择新建的bat文件
(9)选择“触发器”-》“新建”-》设定程序运行时间转载地址:http://tgygi.baihongyu.com/