Bug #78074 [Asn]: PDO_OCI not working
| From: | cmb@php.net | Date: | Mon, 27 May 2019 11:10:52 +0000 |
| Subject: | Bug #78074 [Asn]: PDO_OCI not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-221008@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78074&edit=1
ID: 78074
Updated by: cmb@php.net
Reported by: berger at gmx dot de
Summary: PDO_OCI not working
Status: Assigned
Type: Bug
Package: PDO OCI
Operating System: Windows 10
PHP Version: 7.3.6RC1
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
For oci and pdo_oci, you need to install the Oracle instant
client[1]. The documentation needs to be improved in this regard.
[1] <https://www.oracle.com/technetwork/topics/winsoft-085727.html>
or <https://www.oracle.com/technetwork/topics/winx64soft-089540.html>
Previous Comments:
------------------------------------------------------------------------
[2019-05-27 10:55:31] berger at gmx dot de
I don't know what exactly you mean with that question?
There is a "php_pdo_oci.dll" in the "ext"-subdirectory. I have not installed
third party drivers. This was not necessary for the other DB-Systems (mysql & postgre) either.
For Microsoft SQL Server I had to download the driver manually from microsoft and after putting the
dll into the ext-path and registering it within the php.ini everything worked fine.
Just the (prepackaged) oracle driver doesn't want to work.
------------------------------------------------------------------------
[2019-05-27 10:29:34] cmb@php.net
Do you have the appropriate OCI.DLL in your path?
------------------------------------------------------------------------
[2019-05-27 10:05:35] berger at gmx dot de
Description:
------------
Cannot get the oracle driver working with php (7.1 & 7.3.7-dev).
DSN-String is: oci://hostname:port/dbname
Error message is: Uncaught PDOException: could not find driver in ...
Line "extension=php_pdo_oci.dll" is activated in php.ini
phpinfo() shows:
PDO drivers mysql, pgsql, sqlsrv
Test script:
---------------
Uncomment line "extension=php_pdo_oci.dll" in php.ini
Then run phpinfo() and go to "PDO"-Section.
Expected result:
----------------
PDO OCI (Oracle) Driver active and running
Actual result:
--------------
PDO OCI (Oracle) Driver not loaded and running
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78074&edit=1