: PHP pdo+oracle installed on Windows is unsuccessful!

Source: Internet
Author: User
SOS: PHP pdo+oracle installed in Windows is not successful!?
PHP was recently used to connect to Oracle, but there was a problem with the installation, we help
Oracle Client
PHP Version 5.2.9
These are all installed, PHP is installed with XAMPP.
php.ini file conditions
Extension=php_pdo.dll
; Extension=php_pdo_firebird.dll
Extension=php_pdo_mssql.dll
Extension=php_pdo_mysql.dll
Extension=php_pdo_oci.dll
; Extension=php_pdo_oci8.dll
; Extension=php_pdo_odbc.dll


Use Phpinfo () to view installation findings:

PDO Support Enabled
PDO drivers mssql, MySQL, Sqlite2

There's no OCI in there!


------Solution--------------------
What is the Oracle version?
Extension=php_pdo_oci8.dll in front of the semicolon to try to remove
------Solution--------------------
Php_pdo_oci.dll module is not where to put Ah, I use the Windows system so put in systime32 inside

------Solution--------------------
Php_pdo_oci.dll module is not where to put Ah, I use the Windows system so put in systime32 inside

Let's go to windows and try again.
------Solution--------------------
Lead the Oracle client to the environment variable (note that Oracle's client, not this pdo.dll)
------Solution--------------------

It should be a simple path problem.

Find out where Php_pdo_mysql.dll is,
Php_pdo_oci8.dll with him in the same directory.

Don't forget to restart the server
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.