du1068 2015-09-25 09:28
浏览 392
已采纳

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:

<?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

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.

  • 写回答

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
    pause
    

    The result should something like this...

        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-bit Windows or ...for 64-bit Windows

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题