SSISDB1:使用SSISDB管理SSIS Projects
使用Project Deployment Model,将SSIS Project部署到Integration Services Catalog之后,SSISDB负责管理SSIS Project。在SSISDB中,有两个schema:internal和catalog。Internal 框架下的object是内部使用的,catalog框架下的object是供user使用的。在SSISDB中,能够使用TSQL和package交互,比如,使用视图查看package的执行信息,调用stored procedure执行package,根据package的history message对package进行troubleshoot,管理package执行的参数或环境变量。
一,Catalog objects
1,Catalog的object 有Folder,Project,Package ,Executable 和 Parameter
- 使用 [catalog].[folders] 查看Folder
- 使用 [catalog].[projects] 查看Project
- 使用 [catalog].[packages] 查看Package
- 使用 [catalog].[executables] 和 [catalog].[executable_statistics] 查看Executable
- 使用 [catalog].[object_parameters] 和 [catalog].[execution_parameter_values] 查看 Parameter
Executable 是package的可执行组件,位于Control flow tab中,是一个Task 或者 Container。
An executable is a task or container that you add to the control flow of a package.
2,参数
[catalog].[object_parameters] :Displays the parameters for all packages and projects in the Integration Services catalog.
关键的字段:
|
Column name |
Data type |
Description |
|---|---|---|
|
parameter_id |
bigint |
The unique identifier (ID) of the parameter. |
|
project_id |
bigint |
The unique ID of the project. |
|
object_type |
smallint |
The type of parameter. The value is 20 for a project parameter and the value is 30 for a package parameter. |
|
object_name |
sysname |
The name of the corresponding project or package. |
|
parameter_name |
sysname |
The name of the parameter. |
|
data_type |
nvarchar(128) |
The data type of the parameter. |
|
required |
bit |
When the value is 1, the parameter value is required in order to start the execution. When the value is 0, the parameter value is not required to start the execution. |
|
sensitive |
bit |
When the value is 1, the parameter value is sensitive. When the value is 0, the parameter value is not sensitive. |
|
description |
nvarchar(1024) |
An optional description of the package. |
|
design_default_value |
sql_variant |
The default value for the parameter that was assigned during the design of the project or package. |
|
default_value |
sql_variant |
The default value that is currently used on the server. |
|
value_type |
char(1) |
Indicates the type of parameter value. This field displays V when parameter_value is a literal value and R when the value is assigned by referencing an environment variable. |
|
value_set |
bit |
When the value is 1, the parameter value has been assigned. When the value is 0, the parameter value has not been assigned. |
|
referenced_variable_name |
nvarchar(128) |
The name of the environment variable that is assigned to the value of the parameter. The default value is NULL. |
2.1, object_type:The value is 20 for a project parameter and the value is 30 for a package parameter.
2.2,一个parameter 有三种value: design_default_value,default_value, 和 execution_value,
Design Default Value 是指在BIDT中Design package时指定的默认值
Default Value 是指Parameter 部署到IS中的默认值,如果没有修改Parameter的value,那么Default value 就是Design Default Value;当然,可以在SSMS中修改成一个和Data Type 兼容的值,可以和Design Default Value 不同。
Execution Value是指Parameter 是指 package 运行时Parameter 的值,由于在execute package,可以选择设置Parameter的Value 或 选择使用Default Value,所以 Execution Value 就是Package 的一次execution所使用的parameter value。
2.3, value_type
This field displays V when parameter_value is a literal value and R when the value is assigned by referencing an environment variable.
catalog.execution_parameter_values :Displays the actual parameter values that are used by Integration Services packages during an instance of execution.
|
Column name |
Data type |
Description |
|---|---|---|
|
execution_parameter_id |
bigint |
Unique identifier (ID) of the execution parameter. |
|
execution_id |
bigint |
Unique ID for the instance of execution. |
|
object_type |
smallint |
When the value is 20, the parameter is a project parameter. When the value is 30, the parameter is a package parameter. When the value is 50, the parameter is one of the following.
|
|
parameter_data_type |
nvarchar(128) |
The data type of the parameter. |
|
parameter_name |
sysname |
The name of the parameter. |
|
parameter_value |
sql_variant |
The value of the parameter. When sensitive is 0, the plaintext value is shown. When sensitive is 1, the NULL value is displayed. |
|
sensitive |
bit |
When the value is 1, the parameter value is sensitive. When the value is 0, the parameter value is not sensitive. |
|
required |
bit |
When the value is 1, the parameter value is required in order to start the execution. When the value is 0, the parameter value is not required to start the execution. |
|
value_set |
bit |
When the value is 1, the parameter value has been assigned. When the value is 0, the parameter value has not been assigned. |
|
runtime_override |
bit |
When the value is 1, the parameter value was changed from the original value before the execution was started. When the value is 0, the parameter value is the original value that was set. |
二,Catalog Configuration
2.1, 使用 [catalog].[catalog_properties] 查看Catalog的配置信息
The following table lists the property names shown in the Catalog Properties dialog box and the corresponding properties in the database view.
|
Property Name (Catalog Properties dialog box) |
Property Name (database view) |
|---|---|
|
Encryption Algorithm Name |
ENCRYPTION_ALGORITHM |
|
Clean Logs Periodically |
OPERATION_CLEANUP_ENABLED |
|
Retention Period (days) |
RETENTION_WINDOW |
|
Periodically Remove Old Versions |
VERSION_CLEANUP_ENABLED |
|
Maximum Number of Versions per Project |
MAX_PROJECT_VERSIONS |
|
Server-wide Default Logging Level |
SERVER_LOGGING_LEVEL |
Clean Logs Periodically
The job step for operations cleanup runs when this property is set to True.
Retention Period (days)
Defines the maximum age of allowable operations data (in days). Older data are removed.
The minimum value is one day. The maximum value is limited only by the maximum value of the SQL Server int data.
Periodically Remove Old Versions
The job step for project version cleanup runs when this property is set to True.
Maximum Number of Versions per Project
Defines how many versions of a project are stored in the catalog. Older versions of projects are removed.
2.2, Operations and Project Version Cleanup
Status data for many of the operations in the catalog is stored in internal database tables. For example, the catalog tracks the status of package executions and project deployments. To maintain the size of the operations data, the SSIS Server Maintenance Job in SQL Server Management Studio is used to remove old data. This SQL Server Agent job is created when Integration Services is installed.
You can update or redeploy an Integration Services project by deploying it with the same name to the same folder in the catalog. By default, each time you redeploy a project, the SSISDB catalog retains the previous version of the project. To maintain the size of the operations data, the SSIS Server Maintenance Job is used to remove old versions of projects.
参考文档:
Views (Integration Services Catalog)
SSISDB1:使用SSISDB管理SSIS Projects的更多相关文章
- SSISDB1:使用SSISDB管理Package
SSISDB 系列随笔汇总: SSISDB1:使用SSISDB管理Package SSISDB2:SSIS工程的操作实例 SSISDB3:Package的执行实例 SSISDB4:当前正在运行的Pac ...
- 管理SSIS 日志
转自:http://www.cnblogs.com/biwork/p/biworklog.html 一直准备写这么一篇有关 SSIS 日志系统的文章,但是发现很难一次写的很完整.因为这篇文章的内容可扩 ...
- SSISDB8:使用SSISDB记录的消息Troubleshoot packages
在执行Package时,SSISDB都会创建唯一的OperationID 和 ExecutionID,标识对package执行的操作和执行实例(Execution Instance),并记录opera ...
- SSISDB2:SSIS工程的操作实例
SSISDB 系列随笔汇总: SSISDB1:使用SSISDB管理Package SSISDB2:SSIS工程的操作实例 SSISDB3:Package的执行实例 SSISDB4:当前正在运行的Pac ...
- 部署SSIS包完成远程数据更新
** 温馨提示:如需转载本文,请注明内容出处.** 本文连接:http://www.cnblogs.com/grom/p/9018978.html 笔者需要定期从服务器更新N家客户的远程服务器数据,上 ...
- Sql Server 部署SSIS包完成远程数据传输
本篇介绍如何使用SSIS和作业完成自动更新目标数据任务. ** 温馨提示:如需转载本文,请注明内容出处.** 本文链接:https://www.cnblogs.com/grom/p/9018978.h ...
- [译]Stairway to Integration Services Level 6 - SSIS 工作流管理基础
简介 在之前的章节中,我们学习了增量载入数据. 本文中.我们通过优先约束(Precedence Constraints)来管理SSIS的工作流. 添加一个SSIS包 图 1 将新建的Package1. ...
- SSISDB5:Parameter
Parameter 是Package 提供给外界的接口,通过传递不同的Parameter value,能够动态控制 Package 执行不同的Task或container,产生不同的结果. 一,Par ...
- SSISDB6:参数和环境变量
SSISDB 系列随笔汇总: SSISDB1:使用SSISDB管理Package SSISDB2:SSIS工程的操作实例 SSISDB3:Package的执行实例 SSISDB4:当前正在运行的Pac ...
随机推荐
- 关于php-fpm子进程达到上限并且浏览器访问显示504错误
今天上班遇到一个非常奇怪的事情,公司监控服务器之前都是在正常运行,使用nginx+php-fpm,并且监控服务器上部署这其他部门在使用的几个站点,从早上上班开始发现监控显示页面打不开,各种查找原因,最 ...
- Axure的学习
这两天开始学习Axure,首先做的是下载Axure的7.0版本,然后汉化,可以百度找.不过我在开始学习时也遇到一些问题.在开始添加元件库时还是很顺利的,不过在我发布的时候,我发现了一些问题.发布一开始 ...
- spring3.0使用annotation完全代替XML(续)
从回帖的反应来看,大多数人还是不赞成完全代替XML的,这点倒是在意料之中.我个人还是倾向于用代码来取代XML的Bean定义,当然这更多的是关乎个人偏好,不代表与我观点不同的人就是错的. 先来说说代码相 ...
- JQuery学习笔记
注:以下资料来源W3School.COM.CN jQuery 语法 jQuery 语法是为 HTML 元素的选取编制的,可以对元素执行某些操作. 基础语法是:$(selector).action() ...
- angular 中父元素ng-repeat后子元素ng-click失效
在angular中使用ng-repeat后ng-click失效,今天在这个上面踩坑了.特此记录一下. 因为ng-repeat创造了新的SCOPE.如果要使用这个scope的话就必须使用$parent来 ...
- Angularjs ng-if和ng-show的区别
ng-if:判断条件,为true时向html中插入节点,否则从html中移除节点: ng-show: 简单的显示和隐藏(display) 坑点:ng-if会创建一个新的作用域(scope),如果内部元 ...
- 深入理解css BFC 模型
如果要深入理解css布局的各种原理,要在重构页面做得心应手的话,那么你就必须先理解这玩意 "BFC" , BlockFormatting Context(块级格式化上下文): 这里 ...
- javascript 原型及原型链的初步理解
最近折腾了好久,终于是把js里面的原型和原型链做了个初步的理解: 在这里,我打个比喻: 我(child),我妈constructor(构造函数)生了我:别人问我老妈跟谁生的我,于是此时我妈会指向我爸爸 ...
- js ---- 时间格式
Js获取当前日期时间及其它操作 var myDate = new Date(); myDate.getYear(); //获取当前年份(2位) myDate.getFullYear(); ...
- SVN冲突
svn冲突,导致工程打不开,报错:xxx..xcodeproj cannot be opened because the project file cannot be parsed. 解决方法: ...