首页 > 解决方案 > Informatica 工作流(MS SQL SERVER 数据源和目标)失败,错误 RR_4036“未找到数据源名称且未指定默认驱动程序。”

问题描述

我安装了 64 位 Windows 和 32 位 Informatica 客户端,因此我使用 32 位 ODBC 管理员和驱动程序本机客户端“sql server”添加了一个 DSN 条目,以连接到另一台 PC 上的 Mssql 2008 R2 数据库。我在系统 DSN 选项卡中添加了一个条目,因为 informatica 服务正在使用系统帐户。当我必须使用 ODBC DSN 32 位“TARGET_DB_sciolto”(参见下面的 odbc.ini)条目在 informatica 中导入源和目标时没有问题。我建立了我的映射并在工作流会话属性中将连接从 mssql 服务器更改为 ODBC。工作流程失败并出现相同的 RR_4036 错误。我认为我唯一需要尝试的是修改我的 ODBC.ini 文件,因为我读到我必须添加“enablequotedidentifiers = 1”

[ODBC 32 bit Data Sources]
test_infa=SQL Server Native Client 10.0 (32 bit)
TARGET_DB_sciolto=SQL Server (32 bit)
Target_DB=SQL Server (32 bit)
[test_infa]
Driver32=C:\WINDOWS\SysWOW64\sqlncli10.dll
[TARGET_DB_sciolto]
Driver32=C:\WINDOWS\system32\SQLSRV32.dll
[Target_DB]
Driver32=C:\WINDOWS\system32\SQLSRV32.dll

标签: dnssql-server-2008-r2odbcinformatica-powercenter

解决方案


您需要使用大量参数进行设置。请确保以以下格式添加连接信息。请至少提及主机、端口、数据库。还要确保 informatica 机器可以访问数据库。

[TARGET_DB_sciolto]
Driver32=C:\WINDOWS\system32\SQLSRV32.dll
Description=DataDirect 7.1 SQL Server Wire Protocol
AlternateServers=
AlwaysReportTriggerResults=0
AnsiNPW=1
ApplicationName=
ApplicationUsingThreads=1
AuthenticationMethod=1
BulkBinaryThreshold=32
BulkCharacterThreshold=-1
BulkLoadBatchSize=1024
BulkLoadOptions=2
ConnectionReset=0
ConnectionRetryCount=0
ConnectionRetryDelay=3
Database=<database_name>
EnableBulkLoad=0
EnableQuotedIdentifiers=0
EncryptionMethod=0
FailoverGranularity=0
FailoverMode=0
FailoverPreconnect=0
FetchTSWTZasTimestamp=0
FetchTWFSasTime=1
GSSClient=native
HostName=<SQL_Server_host>
HostNameInCertificate=
InitializationString=
Language=
LoadBalanceTimeout=0
LoadBalancing=0
LoginTimeout=15
LogonID=
MaxPoolSize=100
MinPoolSize=0
PacketSize=-1
Password=
Pooling=0
PortNumber=<SQL_Server_server_port>
QueryTimeout=0
ReportCodePageConversionErrors=0
SnapshotSerializable=0
TrustStore=
TrustStorePassword=
ValidateServerCertificate=1
WorkStationID=
XML Describe Type=-10

推荐阅读