oracle PHP 启动:无法加载动态库 'C:\xampp\php\ext\php_oci8_12c.dll' - 找不到指定的程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/47575207/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8_12c.dll' - The specified procedure could not be found
提问by Md Hasibur Rahaman
we face a big problem to connect oracle server in php What i done
我们在 php 中连接 oracle 服务器时面临一个大问题 我做了什么
Setp 1:
Install Windows 7 32bit
Step 2 :
install XAMPP 32 ( Includes: Apache 2.4.29, PHP 7.1.11, phpMyAdmin 4.7.4, OpenSSL 1.0.2, XAMPP Control Panel 3.2.2)
Step :
Instant Client Package - Basic: All files required to run OCI, OCCI, and JDBC-OCI applications Download instantclient-basic-nt-12.2.0.1.0.zip and extract it into c drive with instantclient_12_2name
Step 5:
Set environment in path "c:\instantclient_12_2"
Step 6:
Edit php.ini file and enable extension=php_oci8_12c.dll(By removing semicolon ) from front
Step 7 :
Restart my apache server , after that when i check phpinfo()it not showing any oci8 module
第 1 步:
安装 Windows 7 32 位
第2步 :
安装 XAMPP 32(包括:Apache 2.4.29、PHP 7.1.11、phpMyAdmin 4.7.4、OpenSSL 1.0.2、XAMPP 控制面板 3.2.2)
步 :
Instant Client Package - Basic:运行OCI、OCCI和JDBC-OCI应用程序所需的所有文件下载instantclient-basic-nt-12.2.0.1.0.zip并解压到名为instantclient_12_2的c盘
第 5 步:
在路径“c:\instantclient_12_2”中设置环境
第 6 步:
编辑 php.ini 文件并从前面启用extension=php_oci8_12c.dll(通过删除分号)
第 7 步:
重新启动我的 apache 服务器,之后当我检查phpinfo() 时它没有显示任何 oci8 模块
Then i check my error log i see this
然后我检查我的错误日志我看到了这个
[30-Nov-2017 13:42:43 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8_12c.dll' - The specified procedure could not be found.
Can any one help me how to resolve this issue ,
任何人都可以帮助我如何解决这个问题,
Thanks in advance , and sorry for my English.
提前致谢,对不起我的英语。
回答by timclutton
On the Instant Client download page, the next line after the download link for instantclient-basic-nt-12.2.0.1.0.zip
states:
在Instant Client 下载页面上,下载链接后的下一行instantclient-basic-nt-12.2.0.1.0.zip
表示:
The 12.2 Basic package requires the Microsoft Visual Studio 2013 Redistributable.
12.2 Basic 软件包需要Microsoft Visual Studio 2013 Redistributable。
As you haven't listed that in what you've tried, installing it should be your next step.
由于您没有在您尝试过的内容中列出它,安装它应该是您的下一步。
You should also reboot to ensure that your changes to the environment PATH are applied system wide (e.g. to the Apache service).
您还应该重新启动以确保您对环境 PATH 的更改在系统范围内应用(例如应用到 Apache 服务)。
回答by Ravikumar
I've come with a solution.
我带来了一个解决方案。
copy oci.dll
, oraociei12.dll
, and oraons.dll
to apache/bin
folder and replace the existing one.
将oci.dll
、oraociei12.dll
和复制oraons.dll
到apache/bin
文件夹并替换现有文件夹。