包连接故障排除工具

适用于:SQL Server Azure 数据工厂中的 SSIS Integration Runtime

Integration Services 包括一些功能和工具,可用于排查包与其从中提取数据并向其加载数据的数据源之间的连接问题。

外部数据访问接口问题的故障排除

很多包在与外部数据访问接口交互时会失败。 但是,这些提供程序返回给 Integration Services 的消息通常无法提供足够的信息来开始对该交互过程进行故障排除。 为了满足此故障排除的需要, Integration Services 包含日志记录消息,这些消息可用来对包与外部数据源的交互进行故障排除。

  • 启用日志记录并选择包的“诊断”事件,以查看故障排查消息。 下列 Integration Services 组件能够在每次对外部数据访问接口的调用前后向日志写入消息:

    • OLE DB 连接管理器、OLE DB 源以及 OLE DB 目标

    • ADO.NET 连接管理器和 ADO NET 源

    • 执行 SQL 任务

    • 查找转换、OLE DB 命令转换和渐变维度转换

    日志记录消息包括正被调用的方法的名称。 例如,这些日志消息可能包括 OLE DB Open 对象的 Connection 方法或 ExecuteNonQuery 对象的 Command 方法。 这些消息采用以下格式,其中“%1!s!” 是用于表示方法信息的占位符:

    ExternalRequest_pre: The object is ready to make the following external request: '%1!s!'.  
    ExternalRequest_post: '%1!s!'. The external request has completed.  
    

    若要对与外部数据提供程序的交互进行故障排除,请检查日志,以查看每个“之前”消息 (ExternalRequest_pre) 是否都具有相对应的“之后”消息 (ExternalRequest_post)。 如果没有对应的“after”消息,则说明外部数据提供方没有按预期作出响应。

    下面的示例显示了包含这些日志记录消息的日志中的一些示例行:

    ExternalRequest_pre: The object is ready to make the following external request: 'ITransactionJoin::JoinTransaction'.  
    ExternalRequest_post: 'ITransactionJoin::JoinTransaction succeeded'. The external request has completed.  
    ExternalRequest_pre: The object is ready to make the following external request: 'IDbConnection.Open'.  
    ExternalRequest_post: 'IDbConnection.Open succeeded'. The external request has completed.  
    ExternalRequest_pre: The object is ready to make the following external request: 'IDbConnection.CreateCommand'.  
    ExternalRequest_post: 'IDbConnection.CreateCommand finished'. The external request has completed."  
    ExternalRequest_pre: The object is ready to make the following external request: 'IDbCommand.ExecuteReader'.  
    ExternalRequest_post: 'IDbCommand.ExecuteReader finished'. The external request has completed."  
    ExternalRequest_pre: The object is ready to make the following external request: 'IDataReader.GetSchemaTable'.  
    ExternalRequest_post: 'IDataReader.GetSchemaTable finished'. The external request has completed."  
    ExternalRequest_pre: The object is ready to make the following external request: 'IDataReader.Close'.  
    ExternalRequest_post: 'IDataReader.Close finished'. The external request has completed."  
    ExternalRequest_pre: The object is ready to make the following external request: 'IDbConnection.Close'.  
    ExternalRequest_post: 'IDbConnection.Close finished'. The external request has completed."