繁体   English   中英

ORACLE 12c + PHP 5.6.13(Win32)-无法加载php_pdo_oci.dll

[英]ORACLE 12c + PHP 5.6.13 (Win32) - cannot load php_pdo_oci.dll

数据库服务器: ORACLE 12c

应用服务器: Windows NT SERVER1 6.3 Build 9200(Windows Server 2012 R2 Standard Edition)i586

Apache: Apache / 2.4.16(Win32)PHP / 5.6.13

的PHP: php-5.6.13-Win32-VC11-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-Application

问题:由于“ this ist no Win32-Application”,PHP 5.6.13(Win32)无法加载ext / php_pdo_oci.dll库?

不知道怎么了

只是为了结束这个问题的解决方案。

32位PHP需要32位Oracle客户端

要检查安装了什么Oracle-Client,请在此小Windows脚本(CMD)中使用TNSPING。 基于TNSNAMES.ORA条目的myoracledb

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.
[...]

..对于32位Windows或...对于64位Windows

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM