首页 > 解决方案 > 需要帮助安装 ODAC 122011x64,以便我可以将 ADW 连接到 Power BI

问题描述

所以我已经成功安装了 Oracle DB 19c 并将其连接到 Oracle SQL Developer。我能够创建表并运行查询。此外,我可以使用 python 和 SQL Developer 连接到 ADW,并且我提交的任何更改都可以在所有位置看到。我正在尝试将 ADW 数据库连接到 Power BI。我在具有大量 SSD 和 RAM 的个人 Windows 10 Pro 笔记本电脑上运行所有这些。

在 Power BI 的新窗口中,单击获取数据,然后单击 Oracle 数据库,然后单击连接。当我这样做时,我得到一个弹出窗口,上面写着:

The recommended provider ('Oracle.DataAccess.Client') is not installed. You can continue with your current provider, however it has been deprecated and may not work correctly.

我时钟确定。输入我的服务器作为我用于 python 和 SQL Developer 实例的 TNS 名称。在我的 ADW 数据库中,我有一个名为 TEST 的表。这是一个简单的表格,其中包含 2015 年到 2020 年的 1 列。一直在使用它来测试是否一切正常。因此,我单击 DirectQuery 并在高级选项菜单下运行 SQL 语句 SELECT * FROM TEST 并选择确定。弹出一个登录窗口,我选择数据库表并输入正确的 ADW 用户名和密码。我可以使用它从 SQL Developer 访问此表,然后选择 Connect。当我这样做时,我收到此错误:

Details: "The provider being used is deprecated: 'System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.'. Please visit https://go.microsoft.com/fwlink/p/?LinkID=272376 to install the official provider."

所以我去网站从Oracle下载了ODAC122011_x64文件并解压。当我双击目录中的 setup.exe 文件时,我得到一个是/否用户控制帐户菜单并选择是,然后命令提示符窗口快速闪烁,然后什么也没有发生。我从手机上运行了一个超级慢动作捕捉来捕捉命令窗口显示的内容,下面是我看到的内容:

Starting Oracle Universal Starter...
Checking monitor: must be configured to display at least 256 color Higher than 256 . Actual 4294967290   Passed
Preparing to launch Oracle Universal Installer from C:\Users\<my username>\AppData\Local\Temp\OraInstall2020 09:20_09-04 {???}
Please wait .._

在此之后它什么也不做我尝试在 install 子目录下运行 oui.exe 文件,但什么也没得到,我尝试在安装 Oracle DB 19c 时获得的 Oracle Universal Installer 中运行 install.exe 文件,当我收到以下错误时我以 install.exe 文件为目标进行安装:

OUI-10118:C/Users/{my username}/Downloads/ODAC122011_x64/Setup.exe is either a directory or a corrupt file. Specify a valid filename.

这是我刚刚从Oracle的网站直接下载并解压缩到目录位置没有空格的目录中的一个文件。我安装了最新版本的 Java (JDK 15)。

我不确定这里的正确工作。为什么我无法使用本文中描述的方法让我的 Power BI 连接到我的 Oracle ADW 表。这些是我使用的说明。看来我需要这个 ODAC 应用程序,但我不明白为什么它不会安装。

谁能帮我解决这个问题?谢谢!

编辑:我在每个应用程序上使用 64 位。

更新:仍然有问题。我检查了日志,这就是我所看到的:

使用参数文件:

C:\Oracle\Oracle_PowerBI_ODAC\ODAC122011_x64\install\oraparam.ini


Checking monitor: must be configured to display at least 256 colors.    Actual 4294967296    Passed


The number of files bootstrapped for the jre is 0.

The number of files bootstrapped for the oui is 0.

标签: oracleinstallationpowerbi

解决方案


在查看了这篇文章后,我想出了解决方案。显然,硬盘驱动器上有超过 2TB 的可用空间会导致此问题。您必须进入命令提示符并创建一个临时文件,以便使用以下内容获得 2TB 以下的可用空间:

fsutil file createnew temp_1TB_file 1200000000000

再次运行 setup.exe,然后删除临时文件。

更新:完成所有这些之后,我仍然在 Power BI 中遇到同样的问题。然后我更仔细地阅读了此页面的故障排除说明,并意识到当它说时我可能已经发现了问题:

If you downloaded Power BI Desktop from the Microsoft Store, you might be unable to connect to Oracle databases because of an Oracle driver issue. 

我卸载了我从 Microsoft Store 安装的 PowerBI Desktop,并从其网站下载安装它,并尝试通过 PowerBI 再次连接到 Oracle ADW,它成功了!!!这么多的故障排除,但它终于奏效了!


推荐阅读