简体   繁体   English

如何在 Azure 集成运行时机器上安装 ODBC 驱动程序?

[英]How to Install a ODBC driver on the Azure Integration Runtime machine?

The following link states that a prerequisite for copying data sources using Azure Data Factory is to install an ODBC driver in the Azure Runtime Environment.以下链接指出,使用 Azure 数据工厂复制数据源的先决条件是在 Azure 运行时环境中安装 ODBC 驱动程序。

https://docs.microsoft.com/en-us/azure/data-factory/connector-odbc https://docs.microsoft.com/en-us/azure/data-factory/connector-odbc

However, I can't find anything that documents how to do this.但是,我找不到任何记录如何执行此操作的内容。 I would expect that many, many people have either done this or need this information.我预计会有很多人这样做或需要这些信息。 It's a simple exercise on a Windows Server.这是 Windows 服务器上的简单练习。 I have the installer file which I ran on my Windows server and now the driver is present there.我有我在 Windows 服务器上运行的安装程序文件,现在驱动程序在那里。

Thanks in advance for your help.在此先感谢您的帮助。

Prerequisites先决条件
To use this ODBC connector, we need to:要使用这个 ODBC 连接器,我们需要:

  • Set up a Self-hosted Integration Runtime(not Azure Integration Runtime).See Self-hosted Integration Runtime article for details.设置自托管集成运行时(不是 Azure 集成运行时)。有关详细信息,请参阅自托管集成运行时文章。
  • Install the 64-bit ODBC driver for the data store on the Integration Runtime machine.为 Integration Runtime 机器上的数据存储安装 64 位 ODBC 驱动程序。

At Intergration runtime setup,we can see Azure Integration Runtime is not supproted.在集成运行时设置中,我们可以看到不支持 Azure 集成运行时。
在此处输入图像描述

  1. After we installed Self-hosted Integration Runtime on the machine and registered with the Authentication key.在我们在机器上安装自托管集成运行时并使用身份验证密钥注册之后。 Then we can new a linked service (ODBC).然后我们可以新建一个链接服务(ODBC)。 在此处输入图像描述

  2. Enter the Linked service properties:输入链接服务属性: 在此处输入图像描述

After that we can connect to the DB Server via ODBC connector.之后,我们可以通过 ODBC 连接器连接到数据库服务器。

Yea I had the same problem.是的,我有同样的问题。 So you can't install anything on the default Azure IR.所以你不能在默认的 Azure IR 上安装任何东西。 If you want to install something custom on your IR, you can do that on the other two types of IR, self hosted and SSIS.如果你想在你的 IR 上安装一些自定义的东西,你可以在另外两种类型的 IR 上进行,自托管和 SSIS。

For self hosted you need to have a VM somewhere, ours are on-prem but if you just need it to use some custom drivers you can just make a VM in azure.对于自托管,您需要在某个地方拥有一个虚拟机,我们的虚拟机是本地的,但如果您只需要它来使用一些自定义驱动程序,您可以在 azure 中创建一个虚拟机。 There is a self hosted exe app you download and install on that VM.您可以在该 VM 上下载并安装一个自托管的 exe 应用程序。 Than you use a token generated via self hosted IR, paste it into self hosted agent app installed on VM, and they are connected.比您使用通过自托管 IR 生成的令牌,将其粘贴到安装在 VM 上的自托管代理应用程序中,它们已连接。 Install whatever driver you want on that VM and should work as far as I know, I haven't had any issues.在该VM上安装您想要的任何驱动程序,据我所知应该可以工作,我没有任何问题。

For SSIS-IR you need to that driver inside of a SSIS package.对于 SSIS-IR,您需要 SSIS package 内的驱动程序。 To install the driver you connect the SSIS-IR to a container via a token or whatever, and inside that container there is a main.cmd file where you can script to install whatever you want.要安装驱动程序,您可以通过令牌或其他方式将 SSIS-IR 连接到容器,并且在该容器内有一个 main.cmd 文件,您可以在其中编写脚本来安装您想要的任何东西。 This can be a pain to get working, here is some code I used to install some drivers.开始工作可能会很痛苦,这是我用来安装一些驱动程序的一些代码。

echo Installing ODBC Driver 17 for SQL Server...
msiexec /i msodbcsql.msi /quiet /passive /qn /lv %CUSTOM_SETUP_SCRIPT_LOG_DIR%\msodbcsql.log IACCEPTMSODBCSQLLICENSETERMS=YES ADDLOCAL=ALL
echo Installation completed

echo Installing OLE DB Driver for SQL Server...
msiexec /i msoledbsql.msi /quiet /passive /qn /lv %CUSTOM_SETUP_SCRIPT_LOG_DIR%\msoledbsql.log IACCEPTMSODBCSQLLICENSETERMS=YES
echo Installation completed

%~dp0\ServiceNowODBC64\setup.exe /s

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用python在Azure机器学习服务上安装pyodbc驱动程序? - How to install pyodbc driver on Azure machine learning services using python? 我可以在 Azure 虚拟机中安装集成运行时并将本地服务器添加为链接服务吗? - Can i install Integration Runtime in Azure Virtual Machine and add on-prem server as linked services? 如何在 Azure 应用服务上访问 ODBC 驱动程序 - How to access ODBC Driver on Azure App service 在应用服务计划中的 Azure Function App 上安装 Hive ODBC 驱动程序 - Install Hive ODBC driver on Azure Function App in App service Plan 在 azure 批处理节点上安装 Microsoft ODBC Driver 13 for SQL Server - Install Microsoft ODBC Driver 13 for SQL Server on azure batch node 独立计算机上的 Azure 自承载集成运行时 - Azure self-hosted integration runtime on a standalone machine Azure WebApp 未找到 ODBC 驱动程序 - Azure WebApp not finding ODBC Driver 在Azure中迁移集成运行时 - Migrating Integration Runtime in Azure 如何在 Azure VM 上安装 NVIDIA 显卡驱动程序 - How to install NVIDIA graphics driver on Azure VM 您能否在远程计算机上使用 Azure Integration Runtime 通过 Azure 链接服务使用 JDBC 源? - Can you use JDBC sources via Azure Linked Services using the Azure Integration Runtime on a remote machine?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM