简体   繁体   English

用于不同存储库的一个参数文件 Informatica PowerCenter

[英]One parameter file for different repositories Informatica PowerCenter

I have a parameter file which is assigning DB Connections for one repository which stands for test.我有一个参数文件,它为一个代表测试的存储库分配数据库连接。 It is referring to the folder where the workflow and session is like the following.它指的是工作流所在的文件夹,session 如下所示。

[ORANGE_REMIGRATION.WF:wf_m_remigration_payments_test.ST:s_m_remigration_payments_test]

I would like to know whether I can use one parameter file to assign DB Connections for different environments eg when the repository is PROD then the workflow should write in that environment.我想知道我是否可以使用一个参数文件为不同的环境分配数据库连接,例如,当存储库是 PROD 时,工作流应该在该环境中编写。 I need to know whether we can use repository names in the parameter file eg我需要知道我们是否可以在参数文件中使用存储库名称,例如

[MDM_TEST.ORANGE_REMIGRATION.WF:wf_m_remigration_payments_test.ST:s_m_remigration_payments_test]

whereas MDM_TEST would be the repository and then list the DB Connections and then another list in the same parameter file for MDM_PROD.而 MDM_TEST 将是存储库,然后列出数据库连接,然后在 MDM_PROD 的同一参数文件中列出另一个列表。 Is this possible or is there another way to do this?这是可能的还是有其他方法可以做到这一点?

Here's the description of Parameter File sections .是参数文件部分的描述 Repository is not allowed.不允许存储库。

However if you migrate workflows between environments and use different Integration Service, there are different values for $$ParamFileDir (or $$PMRootDir in general).但是,如果您在环境之间迁移工作流并使用不同的集成服务,则$$ParamFileDir (或一般的$$PMRootDir )有不同的值。 So if you refer to your file using the variable, migrated workflow will use the parameterfile for the given environment.因此,如果您使用变量引用文件,迁移的工作流将使用给定环境的参数文件。 Hence DEV WF would use DEV connections, PROD one would use PROD connections.因此,DEV WF 将使用 DEV 连接,PROD 将使用 PROD 连接。 No actions needed.无需采取任何行动。 More can be found here .更多可以在这里找到。

I assume, your have distinct physical servers for DEV & PROD.我假设,您有用于 DEV 和 PROD 的不同物理服务器。 If you define folder structure mirror each other like如果您定义文件夹结构相互镜像

/share/param/Paramfile1   ===> Dev server

/share/param/Paramfile1   =====> Prod Server

you can use the same param file.您可以使用相同的参数文件。 These param files can be configured via respective workflow properties.这些参数文件可以通过各自的工作流属性进行配置。

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

相关问题 我可以根据文件名在三种不同类型的文件的信息处理映射中使用一个工作流程 - Can I have one workflow in informatica handle mappings for three different types of files based on the filename Informatica 文件日期字符串转换为时间戳 - Informatica File date string convert into timestamp Gitlab存储库文件内容位置 - Gitlab repositories file content location 一个文件中有两种不同的文件类型? - Two different file types in one file? 如何在Informatica中增加源输入xml文件的文件大小? - How to increase the file size of source input xml file in Informatica? 用一个图像替换具有不同文件名的图像 - Replacing an images with different file names with one image 一个显示不同文件版本的.exe - One .exe showing different file versions 一个文件到不同文件的结果之间的VSCode超链接:行 - VSCode hyperlink between results in one file to different file:line 将一个文件中的关键字与包含不同推文的另一个文件进行比较 - Comparing keywords from one file to another file containing different tweet 用一个线程将文件复制到不同的目的地是否安全 - Is it thread-safe to copy a file to different destinations with one thread each
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM