Doc #78074 [Asn->Csd]: PDO_OCI not working
| From: | cmb@php.net | Date: | Sat, 01 Jun 2019 08:42:20 +0000 |
| Subject: | Doc #78074 [Asn->Csd]: PDO_OCI not working | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16696@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
+Status: Closed
Type: Documentation Problem
Package: PDO OCI
Operating System: Windows 10
PHP Version: 7.3.6RC1
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2019-06-01 08:41:45] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=347520
Log: Fix #78074: PDO_OCI not working
------------------------------------------------------------------------
[2019-05-27 11:10:52] cmb@php.net
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>
------------------------------------------------------------------------
[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