How to activate oci8/oracle to read data on another server

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

How to activate oci8/oracle to read data on another server

Postby tuchming » 26. May 2014 11:35

Hello,

How can I do activate oci8 library for use pdo extension for oracle in PHP script ?
For example;
Code: Select all
$db = new PDO('oci:dbname=myserver/dbname;charset=WE8MSWIN1252', 'user','password');

gives me an error :
could not find driver

I have Xampp 1.7.3 on Mac OSX 10.7.5 (lion)

I have already uncomment extension :
extension=php_oci8.dll
extension=php_oracle.dll
in /Applications/XAMPP/etc/php.ini

Thanks for your response.
tuchming
 
Posts: 1
Joined: 26. May 2014 10:58
Operating System: Mac OS X 10.7.5

Re: How to activate oci8/oracle to read data on another serv

Postby Nobbie » 28. May 2014 11:13

Xampp does not support PDO Oci Driver. Run a phpinfo() and watch out for "PDO Drivers". Usually it is preconfigured to "mysql, pgsql, sqlite". For Oracle you need "oci" as well in the PDO Drivers.

As you have to recompile the whole PHP installation for adding a new PDO Driver, you cannot adapt oci to Xampp (this must be done by Bitnami). You may sent a request to Bitname, if they will add Oracle Driver to PDO, but currently you cannot use Xampp.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 74 guests