简体   繁体   English

如何在Informatica中执行增量加载?

[英]How can I perform Incremental load in informatica?

i want to load data into target table. 我想将数据加载到目标表中。 the load will be delta(Incremental). 负载将为增量(增量)。 I want load initial load and later i will schedule daily jobs. 我要加载初始负载,以后再安排日常工作。 how can i do this using parameter file. 我如何使用参数文件来做到这一点。

Create a mapping variable say $LOAD_DATE . 创建一个映射变量,例如$LOAD_DATE In the SQ overide query put a condition UPDT_TS > $$LOAD_DATE . 在SQ覆盖查询中,输入条件UPDT_TS > $$LOAD_DATE

Also in an expression transformation, use SETVARIABLE function to set the variable to SESSIONSTARTTIME . 同样在表达式转换中,使用SETVARIABLE函数将变量设置为SESSIONSTARTTIME

Now for the initial load, set $$LOAD_DATE=01/01/1900 in the parameter file. 现在,对于初始加载,在参数文件中设置$$LOAD_DATE=01/01/1900

For delta loads simply remove the parameter from the parameter file. 对于增量负载,只需从参数文件中删除参数即可。 It will take the value saved in repository, which is the last load date. 它将采用保存在存储库中的值,这是上次加载日期。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM