在网上看到要重新编译php加载oci模块,但是都是几年前的文章了,目前版本的php加上pdo能不能直接在linux下访问oracle数据库?

解决方案 »

  1.   


    虽然我没有弄过oracle 但这必须要能
      

  2.   

    手册写得很明白哦 http://php.net/manual/en/ref.pdo-oci.phpInstallationUse --with-pdo-oci[=DIR] to install the PDO Oracle OCI extension, where the optional [=DIR] is the Oracle Home directory. [=DIR] defaults to the $ORACLE_HOME environment variable.Use --with-pdo-oci=instantclient,prefix,version for an Oracle Instant Client SDK, where prefix and version are configured.// Using $ORACLE_HOME
    $ ./configure --with-pdo-oci// Using OIC for Linux with 10.2.0.3 RPMs with a /usr prefix
    $ ./configure --with-pdo-oci=instantclient,/usr,10.2.0.3