informatica

Case Statements/Decode Function in Informatica

余生颓废 提交于 2019-12-05 02:52:35
Could anyone help me with writing case statements in Informatica PowerCenter Designer? I am fairly new to Informatica, and based on my limited experience I feel case statements aren't supported. There is a decode function with similar functionality, but I am unable to find any good examples on the syntax. I would really appreciate if anyone could give me some specific examples on how to use case statements/decode function in Informatica. Thanks much for your help! You're right - there is no CASE statement, but you can use DECODE to simulate it: DECODE( TRUE , DECIMAL_PORT > 0, 'positive value'

Informatica writes rejected rows into a bad file, how to avoid that?

吃可爱长大的小学妹 提交于 2019-12-04 14:43:57
I have developed an Informatica PowerDesigner 9.1 ETL Job which uses lookup and an update transform to detect if the target table has the the incoming rows from the source or not. I have set for the Update transform a condition IIF(ISNULL(target_table_surrogate_id), DD_INSERT, DD_REJECT) Now, when the incoming row is already in the target table, the row is rejected. Informatica writes these rejected rows into a .bad file. How to prevent this? Is there a way to determine that the rejected rows are not written into a .bad file? Or should I use e.g. a router insted of an update transform to

Informatica_(1)安装

匿名 (未验证) 提交于 2019-12-03 00:40:02
安装961 server和client 0.informatica卸载 保证服务(informatica9.6.1)在关闭状态; 卸载客户端,应用程序--》informatica--》uninstall; 卸载服务端,在安装目录下找 E:\Informatica\9.6.1\Uninstaller_Server\uninstaller.exe 在安装目录下删除残留文件, 检查服务中是否还有informatica9.6.1,没有的话,正常;有的话,需要删除注册表信息,regedit。 1.安装前准备 创建表空间,用于存放数据库数据 创建域用户并分配权限,用于管理域 创建资源用户并分配权限 --删除用户-- drop user bi_domain cascade; drop user bi_resource cascade; drop user bi_target cascade; --删除表空间-- drop tablespace BI_ETL including contents; --创建表空间及数据文件-- create tablespace BI_ETL datafile ‘E:\app\oradata\orcl\BI_ETL.DBF‘ size 200M reuse autoextend on next 10M; --创建用户并授权-- create user bi

Informatica_(2)第一个例子

匿名 (未验证) 提交于 2019-12-03 00:40:02
PowerCenter Repository Manager 1.启动客户端程序连接服务器 打开客户端(PowerCenter Repository Manager)PCRM; 存储库--配置域--添加新域; 填写域名(Domain_1)、网关主机(SC-201709251400)、网关端口后(6005),点“确定”; 选中右边的存储库(BI),点“确定”; 双击左边导航中的BI存储库,填写用户名、密码(admin),点“连接”; BI存储库显示在工作区,客户端连接服务器成功。 2.创建文件夹 点文件夹--》创建 名称输入”练习”,点“确定”; 左侧导航区显示出新建的”练习”文件夹; 选中练习”文件夹,点“D”图标进入PowerCenter Designer; PowerCenter Designer就是我们的开发区域。 3.导入练习所需要的表(可选) sql脚本在客户端bin文件夹下(E:\Informatica\9.6.1\client\clients\PowerCenterClient\client\bin); 我们安装的是oracle数据库,所以需要执行smpl_ora.sql脚本, 注意:代码需要做如下调整 增加: alter session set nls_date_format=‘YYYY-MM_DD‘; DROP TABLE DEPARTMENT; 注释:

Informatica_(6)性能调优

匿名 (未验证) 提交于 2019-12-03 00:40:02
六、实战汇总 31.powercenter 字符集 了解源或者目标数据库的字符集,并在Powercenter服务器上设置相关的环境变量或者完成相关的设置,不同的数据库有不同的设置方法; 多数字符集的问题,需要源读和目标写分开来考虑,而不是混为一谈。 31.1 oracle字符集 获取Oracle数据库字符集, 以sys用户登录,select value$ from props$ where name=‘NLS_CHARACTERSET‘; 返回数据库本身的字符集 --ZHS16GBK 设置Oracle环境变量, Windows平台需要在注册表或者环境变量中设置; Linux平台需要修改Profile文件。 使用NLS_LANG=AMERICAN_AMERICA.ZHS16GBK设置 数据库字符集与NLS_LANG不一致时, 以写入字符集NLS_LANG为准,即设置Powercenter服务器环境变量为NLS_LANG=AMERICAN_AMERICA.ZHS16GBK 数据源有两个Oracle数据库,但字符集不一致时, 创建两个集成服务,在集成服务分别设置与对应数据库相同的字符集。 数据源和目标都是Oracle数据库,但字符集不一致时, 源使采用Native驱动,使用NLS_LANG; 目标采用ODBC驱动,在odbc.ini文件中设置对应的字符集信息。 31.2 db2字符集

Informatica_(3)组件

匿名 (未验证) 提交于 2019-12-03 00:40:02
一、Informatica介绍 Informatica PowerCenter 是Informatica公司开发的世界级的企业数据集成平台,也是业界领先的ETL工具。 Informatica PowerCenter使用户能够方便地从异构的已有系统和数据源中抽取数据, 用来建立、部署、管理企业的数据仓库,从而帮助企业做出快速、正确的决策。 此产品为满足企业级要求而设计,可以提供企业部门的数据和电子商务数据源之间的集成, 如XML,网站日志,关系型数据,主机和遗留系统等数据源。 此平台性能可以满足企业分析最严格的要求。 Informatica PowerCenter已被全球多家著名企业用来建设BI/DW系统, 它可集成和分析企业的关键商务信息,优化整个商务价值链的表现和响应速度。 Informatica PowerCenter拥有一个功能强大的数据整合引擎, 所有的数据抽取、转换、装载的功能都是在内存中执行的,不需要开发者手工编写这些过程的代码。 Informatica PowerCenter 数据整合引擎是元数据驱动的, 通过知识库和引擎的配对管理,可以保证数据整合过程能够最优化执行, 并且使数据仓库管理员比较容易对系统进行分析管理,从而适应日益增加的数据装载和用户群。 二、informatica开发步骤: 定义源: Desinger 定义目标: Desinger 创建映射: 源--

How to pivot data using Informatica when you have variable amount of pivot rows?

冷暖自知 提交于 2019-12-02 06:45:59
问题 Based on my earlier questions, how can I pivot data using Informatica PowerCenter Designer when I have variable amount of Addresses in my data. I would like to Pivot e.g four addresses from my data. This is the structure of the source data file: +---------+--------------+-----------------+ | ADDR_ID | NAME | ADDRESS | +---------+--------------+-----------------+ | 1 | John Smith | JohnsAddress1 | | 1 | John Smith | JohnsAddress2 | | 1 | John Smith | JohnsAddress3 | | 2 | Adrian Smith |

How to pivot data using Informatica when you have variable amount of pivot rows?

折月煮酒 提交于 2019-12-02 03:15:35
Based on my earlier questions , how can I pivot data using Informatica PowerCenter Designer when I have variable amount of Addresses in my data. I would like to Pivot e.g four addresses from my data. This is the structure of the source data file: +---------+--------------+-----------------+ | ADDR_ID | NAME | ADDRESS | +---------+--------------+-----------------+ | 1 | John Smith | JohnsAddress1 | | 1 | John Smith | JohnsAddress2 | | 1 | John Smith | JohnsAddress3 | | 2 | Adrian Smith | AdriansAddress1 | | 2 | Adrian Smith | AdriansAddress2 | | 3 | Ivar Smith | IvarAddress1 | +---------+------

How to run only failed sessions in a workflow

↘锁芯ラ 提交于 2019-12-01 13:18:24
In a workflow there are sessions connected in parallel and in sequence. Suppose some sessions which are in parallel and in sequential mode are failed, How do I restart the workflow with only failed sessions. How can I design this in Informatica? Turn 'suspend on error' for workflow Turn 'restart on recovery' for each session in workflow Now if any session fail workflow will be suspended until you fix the problem and hit recover on workflow in monitor. When you do so it cause to restart only failed sessions. A large publishing client asked us to implement something similar to what you asked. We

Synchronizing four shell scripts to run one after another in unix

社会主义新天地 提交于 2019-12-01 12:10:58
I have 4 shell script to generate a file(let's say param.txt) which is used by another tool(informatica) and as the tool is done with processing, it deletes param.txt. The intent here is all four scripts can get invoked at different time lets say 12:10 am, 12:13 am, 12:16 am, 12:17 am. First script runs at 12:10am and creates param.txt and trigger informatica process which uses param.txt. Informatica process takes another 5-10 minutes to complete and deletes the param.txt. The 2nd script invokes at 12:13 am and waits for unavailability of param.txt and as informatica process deletes it, script