[英]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.