Solved

Call to undefined function oci_connect()

Posted on 2013-11-12
3
12,690 Views
Last Modified: 2013-11-17
Hi experts,

I am getting the following error when trying to connect to my Oracle Database via PHP using OCI8:

 Call to undefined function oci_connect()

Here is what I have tried:
- uncommented "extension=php_oci8_11g.dll" and restarted XAMPP server.
- listed "C:\app\Administrator\product\11.2.0\client_1\bin" first in my environment variables and restarted server.
- made sure php_oci8_11g.dll existed in C:\xampp\php\ext.
- oci8 is not listed in my phpinfo().
- php log: PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8_11g.dll' - The specified procedure could not be found.

Here is my environment:
- Windows Server 2008 R2 x64
- Oracle Client 11g R2 (successfully connects to my Oracle db via SQL Plus)
- XAMPP 1.8.3 (PHP 5.5.3)

What could I be missing?

Thank you in advance.
0
Comment
Question by:rmartes
  • 2
3 Comments
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 39642049
Have you followed all of these instructions carefully?  And it may be necessary to restart everything after the installation and configuration.
http://php.net/manual/en/oci8.requirements.php
http://php.net/manual/en/oci8.installation.php
http://php.net/manual/en/oci8.test.php
http://php.net/manual/en/oci8.configuration.php
0
 

Accepted Solution

by:
rmartes earned 0 total points
ID: 39643517
I got it to work. I had to install Oracle Client 11g R2 32-Bit even though I have a 64-Bit machine then restart.

http://it4beginners.wordpress.com/2011/11/14/setting-up-php-on-windows-to-connect-to-oracle/

Thanks all for the effort.
0
 

Author Closing Comment

by:rmartes
ID: 39654344
I found the solution myself.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
The viewer will learn how to dynamically set the form action using jQuery.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now