简体   繁体   English

如何在 Informatica Power Center 中从多个表生成单个文件

[英]How to Generate a Single file from multiple tables in Informatica Power Center

How to Generate a Single file from multiple tables in Informatica Power Center like below...如何从 Informatica Power Center 中的多个表生成单个文件,如下所示...

在此处输入图像描述

I think we can do this using UNION ALL .我认为我们可以使用UNION ALL来做到这一点。 Assuming 3 files are read from different sources,假设从不同来源读取 3 个文件,

  1. Create three expression transformations with 3 ports.使用 3 个端口创建三个表达式转换。 This is Exp1, 2, and 3 in below pic.这是下图中的 Exp1、2 和 3。 For Exp1-对于 Exp1-
    out_concat_all = Name1 ||'|'||FirstName1||'|'||... and so on. out_concat_all = Name1 ||'|'||FirstName1||'|'||... 等等。
    in_NEXTVAL = Add NEXTVAL from new sequence generator. in_NEXTVAL = 从新的序列生成器添加 NEXTVAL。
    out_SEQ = 'File1`||in_NEXTVAL Pls make similar logic as per file2 and file3. out_SEQ = 'File1`||in_NEXTVAL 请按照 file2 和 file3 进行类似的逻辑。
  2. Create a UNION ALL to combine above 3 pipelines into one pipeline.创建一个 UNION ALL 将以上 3 个管道合并为一个管道。
  3. Sort the data based on SEQ column.根据 SEQ 列对数据进行排序。
  4. Link only concat_all column into a target file.仅将 concat_all 列链接到目标文件。 Whole flow should look like this -整个流程应该是这样的 -

在此处输入图像描述

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

相关问题 行类型更新策略-Informatica Power Center - Row Type Update Strategy - Informatica Power Center 有没有办法在 informatica power center 中处理具有动态结构的源平面文件? - Is there any way to handle source flat file with dynamic structure in informatica power center? 如何在Informatica的间接加载中为每个文件的数据定义指标 - How to define a indicator for the data from each file in the indirect load in Informatica 如何在Informatica PowerCenter中使用单个映射处理具有不同但相似格式的多个文件? - How do I use a Single Mapping to Handle Multiple Files with Different but Similar Formats in Informatica PowerCenter? 使用变换从单个平面文件中获取所需目标(请参见图片) - INFORMATICA Using transformation to get desired target from a single flat file (see pictures) 如何通过 Informatica PowerCenter 从文件名中提取多个值作为多列数据? - How to extract multiple values as multiple column data from filename by Informatica PowerCenter? Informatica / Oracle表中的分区 - Partitions in Informatica / Oracle tables 使用Pentaho Kettle,如何在保持参照完整性的同时从单个表中加载多个表? - Using Pentaho Kettle, how do I load multiple tables from a single table while keeping referential integrity? Abbyy和Informatica如何手动运行文件 - Abbyy and Informatica How do i manually run a file 电源中心查看结果 - Power Center view result
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM