Database-Server:甲骨文12c
应用服务器: Windows SERVER1 6.3 build 9200 (Windows 2012 R2标准版) i586
Apache: Apache/2.4.16 (Win32) PHP5.6.13
PHP: php-5.6.13-Win32-VC 11-x86
使用这些组件,我尝试执行这个小的php脚本并得到以下警告:
<?php
foreach(PDO::getAvailableDrivers() as $driver)
{
echo $driver.'<br />';
}
?>
Warning: PHP Startup: Unable to load dynamic library 'C:/Program Files (x86)/php-5.6.13-Win32-VC11-x86/ext\php_pdo_oci.dll' - %1 ist keine zulässige Win32-Anwendung.
in Unknown on line 0到目前为止:%1不允许Win32 32-应用程序
问题:PHP5.6.13 (Win32)不能加载ext/ PHP _pdo_oci.dll库,因为“没有Win32 32-应用程序?”
不知道怎么回事。
发布于 2015-09-28 09:32:48
只是为了解决这个问题。
32位需要32位Oracle客户端
要检查安装了什么Oracle-Client,请使用TNSPING和这个小窗口脚本(CMD)。myoracledb基于TNSNAMES.ORA条目。
tnsping myoracledb
pause结果应该是这样的。
TNS Ping Utility for 32-bit Windows: Version 12.1.0.1.0 - Production on 28-SEP-2015 10:51:44
Copyright (c) 1997, 2013, Oracle. All rights reserved.
[...]..for 32位Windows或...for 64位Windows
https://stackoverflow.com/questions/32779022
复制相似问题