2015-09-25 09:28
浏览 317

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

Database-Server: ORACLE 12c

App-Server: 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

With this components I try to execute this small php script and get this warning:


    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

Translation so far: %1 is no allowable Win32-Application

Question: PHP 5.6.13 (Win32) cannot load the ext/php_pdo_oci.dll library because of "this ist no Win32-Application" ?

Don't know what's wrong.

图片转代码服务由CSDN问答提供 功能建议

数据库服务器: ORACLE 12c

App-Server: Windows NT SERVER1 6.3 build 9200(Windows Server 2012 R2标准版)i586

Apache: Apache / 2.4。 16(Win32)PHP / 5.6.13

PHP: php-5.6.13-Win32-VC11-x86


 foreach(PDO :: getAvailableDrivers()as $ driver  )
 echo $ driver。'&lt; br /&gt;'; 
警告:PHP启动:无法加载动态库'C:/ Program Files(x86)  )/php-5.6.13-Win32-VC11-x86/ext\php_pdo_oci.dll' - %1 istkeinezulässigeWin32-Anwendung。
 \  n 


问题: PHP 5.6.13(Win32 )无法加载ext / php_pdo_oci.dll库,因为“这不是Win32-A 应用“?


  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongqiao1964 2015-09-28 09:32

    Just for close this question the solution.

    32-bit PHP needs 32-bit Oracle client

    To check what Oracle-Client is installed use TNSPING with this small windows script (CMD). myoracledb based on TNSNAMES.ORA entry.

    tnsping myoracledb

    The result should something like this...

        TNS Ping Utility for 32-bit Windows: Version - Production on 28-SEP-2015 10:51:44
        Copyright (c) 1997, 2013, Oracle.  All rights reserved.

    ..for 32-bit Windows or ...for 64-bit Windows

    点赞 评论

相关推荐 更多相似问题