翻译 - 关于DAC变量

浏览: 1841
ETL

About DAC Variables

DAC contains predefined variables that act as a mechanism to allow parameters to access various ETL-specific and task-specific information. These variables are available when you define a runtime parameter of the Text and Timestamp data types. When you define a runtime parameter and select a DAC variable, the variable gets wrapped inside the parameter and returns the information specified by the variable.

DAC包含预定义的变量,其作为一种机制使得参数能够获取各种针对ETL或者任务的特定信息。这些变量可以在定义文本和时间戳数据类型的运行时变量时使用。当你定义一个运行时参数并且选择一个DAC变量,这个变量封装在参数中并返回变量指定的信息。

DAC Variables for the Text Data Type 文本数据类型的DAC变量

The following variables are available when you define a runtime parameter of the Text data type. 定义文本类型的运行时参数时可使用以下变量。

  • @DAC_CURRENT_PROCESS_ID. Returns the current process ID. 返回当前进程ID。

  • @DAC_DATASOURCE_NUM_ID. Returns the data source number ID. 返回数据源数字ID。

  • @DAC_DATATARGET_NUM_ID. Returns the target database number ID. 返回目标数据库数字ID。

  • @DAC_EXECUTION_PLAN_NAME. Returns the name of the current execution plan. 返回当前执行计划的名称。

  • @DAC_EXECUTION_PLAN_RUN_NAME. Returns the run name of the current execution plan. 返回当前执行计划的运行名称。

  • @DAC_READ_MODE. Returns the "read mode" while running the task. The possible values are FULL and INCREMENTAL. 返回运行任务时的“读取模式”。可能值为FULL和INCREMENTAL。

  • @DAC_SOURCE_DBTYPE. Returns the task's primary source database type. 返回任务的主要源数据库类型。

  • @DAC_SOURCE_TABLE_OWNER. Returns the table owner of the source database. 返回源数据库的表属主。

  • @DAC_SOURCE_PRUNE_DAYS. Returns the number of prune days for the primary source as defined in the execution plan connectivity parameters. 返回在执行计划连通性参数中定义的主要源删减天数数字。

  • @DAC_SOURCE_PRUNE_MINUTES. Returns the number of prune minutes for the primary source as defined in the execution plan connectivity parameters 返回在执行计划连通性参数中定义的主要源删减分钟数数字。

  • @DAC_TARGET_DBTYPE. Returns the task's primary target database type. 返回任务的主要目标数据库类型。

  • @DAC_TARGET_PRUNE_DAYS. Returns the number of prune days for the primary target as defined in the execution plan connectivity parameters. 返回在执行计划连通性参数中定义的主要目标剪枝天数数字。

  • @DAC_TARGET_PRUNE_MINUTES. Returns the number of prune minutes for the primary target as defined in the execution plan connectivity parameter. 返回在执行计划连通性参数中定义的主要目标剪枝分钟数数字。

  • @DAC_TARGET_TABLE_OWNER. Returns the table owner of the target database. 返回目标数据库的表属主。

  • @DAC_TASK_NAME. Returns the task name of the task that is currently running. 返回当前运行中的任务名称。

  • @DAC_TASK_NUMBER_OF_LOOPS. Returns the task's total number of loops as defined in the task's extended property. 返回在任务拓展属性中定义的循环任务总数数字。

  • @DAC_TASK_RUN_INSTANCE_NUMBER. Returns the instance number of the task currently running. 返回当前运行中的任务的实例数字。

  • @DAC_TASK_RUN_INSTANCE_NUMBER_DESC. Returns the instance number of the task currently running in descending order. 返回当前运行中的任务实例倒序数字。

  • @DAC_TASK_FULL_COMMAND. Returns the name of the Informatica workflow for a task's full load command. 返回用于任务全量加载命令的Informatica工作流名称。

  • @DAC_TASK_INCREMENTAL_COMMAND. Returns the name of the Informatica workflow for a task's incremental load command. 返回用于任务增量加载命令的Informatica工作流名称。

  • @DAC_WRITE_MODE. Returns the "write mode" while running the task. The possible values are FULL and INCREMENTAL 返回运行任务时的“写入模式”。可能值为FULL和INCREMENTAL。

DAC Variables for the Timestamp Data Type 时间戳类型的DAC变量

The following variables are available when you define a runtime parameter of the Timestamp data type. 定义时间戳类型的运行时参数时可使用以下变量。

  • @DAC_ETL_START_TIME. Returns the timestamp for the start time of the ETL process. 返回ETL进程开始时间的时间戳。

  • @DAC_ETL_START_TIME_FOR_SOURCE. Returns the timestamp for the source database. 返回用于源数据库的时间戳

  • @DAC_ETL_START_TIME_FOR_TARGET. This variable returns the timestamp for the target database. 返回用于目标数据库的时间戳。

  • @DAC_ETL_PRUNED_START_TIME. Returns the current execution plan's actual start time minus the prune minutes. 返回当前执行计划的实际开始实际减去剪枝分钟数。

  • @DAC_ETL_PRUNED_START_TIME_FOR_SOURCE. Returns the current execution plan's actual start time adjusted to the source database time zone, minus the prune minutes. 返回当前执行计划的实际开始时间,调整为源数据库时区,减去剪枝分钟数。

  • @DAC_ETL_PRUNED_START_TIME_FOR_TARGET. Returns the current execution plan's actual start time adjusted to the target database time zone, minus the prune minutes. 返回当前执行计划的实际开始时间,调整为目标数据库时区,减去剪枝分钟数。

  • @DAC_CURRENT_TIMESTAMP. Returns the current timestamp of the DAC Server. 返回当前DAC服务器的时间戳。

  • @DAC_SOURCE_REFRESH_TIMESTAMP. Returns the minimum of the task's primary or auxiliary source tables last refresh timestamp. 返回任务的主要或辅助源表上次刷新时间戳最小值。

  • @DAC_TARGET_REFRESH_TIMESTAMP. Returns the minimum of the task's primary or auxiliary target tables' last refresh timestamp. 返回任务的主要或辅助目标表上次刷新时间戳最小值。

  • @DAC_SOURCE_PRUNED_REFRESH_TIMESTAMP. Returns the minimum of the task's primary or auxiliary source tables last refresh timestamp, minus the prune minutes. 返回任务的主要或辅助源表上次刷新时间戳最小值,减去剪枝分钟数。

  • @DAC_TARGET_PRUNED_REFRESH_TIMESTAMP. Returns the minimum of the task's primary or auxiliary target tables last refresh timestamp, minus the prune minutes. 返回任务的主要或辅助目标表上次刷新时间戳最小值,减去剪枝分钟数。


翻译心得:原文中有prune一词,意思为删减。我的理解是,站在ETL角度看,抽取数据肯定涉及一个时间范围。通常情况,增量抽取操作的时间范围为从一个时间点到目前。那么范围外的数据无需处理,形象类比剪枝,prune minutes等同剪枝长度,故翻译为剪枝分钟数。

推荐 0
本文由 wffger 创作,采用 知识共享署名-相同方式共享 3.0 中国大陆许可协议 进行许可。
转载、引用前需联系作者,并署名作者且注明文章出处。
本站文章版权归原作者及原出处所有 。内容为作者个人观点, 并不代表本站赞同其观点和对其真实性负责。本站是一个个人学习交流的平台,并不用于任何商业目的,如果有任何问题,请及时联系我们,我们将根据著作权人的要求,立即更正或者删除有关内容。本站拥有对此声明的最终解释权。

0 个评论

要回复文章请先登录注册