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

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

报告相同问题?

悬赏问题

  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?