如何为xampp安装oracle即时客户端

发布于 2024-10-05 00:31:10 字数 249 浏览 0 评论 0原文

我安装了适用于 Windows 1.7.3 的 XAMPP。

我正在使用 Zend Framework 并且需要使用 pdo_oci8 扩展。我已启用扩展 - 但现在收到错误,无法找到 oci.dll 文件。

我已经从 oracle 下载了 instantclient_11_2 zip 文件。解压它。它包含一堆dll文件。

我如何在 Windows 上安装这个?我是否需要运行 cmd 提示符或将其移动到 xampp 下的特定文件夹?

I have XAMPP for Windows 1.7.3 installed.

I'm using Zend Framework and need to use the pdo_oci8 extension. I've enabled the extension - but now getting the error that it can't find the oci.dll file.

I've downloaded the instantclient_11_2 zip file from oracle. Unzipped it. It contains a bunch of dll files.

How do I install this on windows? Do I need to run a cmd prompt or move it to a specific folder under xampp?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

爱*していゐ 2024-10-12 00:31:10

下面您将找到有关如何为 XAMPP v7、v5.5 和 v5.6 配置/安装和启用 Oracle Instant Client 的说明。

  1. 下载并安装XAMPP
  2. 修改“C:\xampp\php”中的php.ini
    • 取消注释以下行“;extension=php_oci8_12c.dll  ;与 Oracle Database 12c Instant Client 一起使用”
    • 重新启动 Apache
  3. 下载 32 位(PHP 是 32 位,因此不需要 64)Oracle Instant Client
    • 您需要即时客户端包 - 基本和即时客户端包 - SDK
    • 分别解压到“C:\php-sdk\oracle\x86\instantclient_12_1”和“c:\php-sdk\oracle\x86\instantclient_12_1\sdk”
  4. 目录“C:\php-sdk\oracle\x86\instantclient_12_1”添加到名副其实的windows路径中
    • 在系统属性下点击环境变量
    • 编辑路径变量
    • 您需要重新启动 Windows
  5. (可选)如果您想在 tnsnames.ora 文件中指定 oracle 连接:

就是这样:)

指令取自此处: http://www.gi-architects.co.uk/2016/11/how-to-install-oracle-instant-client-v12-for-xampp-v7-v5-5-v5 -6-窗口/

Below you will find the instructions on how to configure/install and enable the Oracle Instant Client for XAMPP v7, v5.5 and v5.6.

  1. Download and install XAMPP
  2. Modify the php.ini in "C:\xampp\php"
    • Uncomment the following line ";extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client"
    • Restart Apache
  3. Download the 32 bit (PHP is 32 bit so no need to 64) Oracle Instant Client
    • You need both Instant Client Package - Basic and Instant Client Package - SDK
    • Unzip both in "C:\php-sdk\oracle\x86\instantclient_12_1" and "c:\php-sdk\oracle\x86\instantclient_12_1\sdk" respectivly
  4. Add the directory "C:\php-sdk\oracle\x86\instantclient_12_1" to the windows path veritable
    • Under system Properties click Environment Variables
    • Edit the Path variable
    • You need to reboot windows
  5. (Optional) If you want to specify the oracle connections in the tnsnames.ora file:

Thats it :)

instruction where taken from here: http://www.gi-architects.co.uk/2016/11/how-to-install-oracle-instant-client-v12-for-xampp-v7-v5-5-v5-6-windows/

岁月如刀 2024-10-12 00:31:10

当我搜索问题时,谷歌给了我这个主题,但我在这里还没有找到解决方案。

但我在这里找到:http://www.oracle。 com/technetwork/articles/dsl/technote-php-instant-084410.html

我的问题是我下载了 64 版本的 Oracle 即时客户端,而 php 似乎只能在 32 位上运行。

Google gave me this topic when I searched the problem, but I have not found solution here.

But I found here: http://www.oracle.com/technetwork/articles/dsl/technote-php-instant-084410.html

My problem was that I downloaded the 64 version of Oracle instant client, and php seems to be working only with the 32-bit.

极度宠爱 2024-10-12 00:31:10

我将文件解压缩到一个目录中。

我将该目录放置在 c:\xampp 中,例如 c:\xampp\intanstclient_11_2

然后我将其添加到我的 Windows 路径变量中。

最后真的很简单。

I unzipped the file into a directory.

That directory I placed in c:\xampp, e.g. c:\xampp\intanstclient_11_2

Then I added that to my windows path variable.

Quite simple really in the end.

ι不睡觉的鱼゛ 2024-10-12 00:31:10

当我添加像 "c:\instantclient_12_2" 这样的路径变量时,我的问题得到了解决。

My issue was solved when I added path variable like "c:\instantclient_12_2" .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文