在Pentaho Kettle中使用变量名称进行数据库连接 [英] using variable names for a database connection in Pentaho Kettle
本文介绍了在Pentaho Kettle中使用变量名称进行数据库连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用PDI水壶.我们可以定义一个变量并在数据库连接名称中使用它吗?这样一来,如果将来如果我需要在多个转换中更改连接,我将只更改水壶属性文件中的变量值?
I am working on PDI kettle. Can we define a variable and use it in a database connection name. So that if in future if i need to change the connections in multiple transformations i would just change the variable value in kettle properties file?
推荐答案
只需在Database Connection
中使用变量.
例如${DB_HostName}
和${DB_Name}
等
然后将其放入您的kettle.properties:
DB_HostName=localhost
您可以在蓝色菱形图中查看S
哪些字段支持变量.
You can see what fields that support variables by the S
in the blue diamond.
这篇关于在Pentaho Kettle中使用变量名称进行数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文