Solved

Call to undefined function oci_connect()

Posted on 2013-11-12
3
12,290 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This article discusses how to create an extensible mechanism for linked drop downs.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

708 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

15 Experts available now in Live!

Get 1:1 Help Now