Click to See Complete Forum and Search --> : OCILOBRead2 not located in oci.dll


andrelom
January 14th, 2009, 09:49 AM
Can someone please assit me here. I have the following:

(1) WAMP server on windows XP
(2) Apache 2.2.8
(3) PHP 5.2.6
(4) MySQL 5.0.51b
(5) Oracle 9i

I keep on getting the following error when starting up the WAMP server: "OCILOBRead2 could not be located in the oci.dll file". I tried different versions of PHP, nothing worked. I need to enable the php_oci8 to connect to an oracle database.

Any help will be greatly appreciated.

PeejAvery
January 15th, 2009, 08:16 AM
This problem really is tied into your other thread OCIEnvNlsCreate() failed (http://www.codeguru.com/forum/showthread.php?t=468841). Once you solve that one, this should fix itself as well.

roydude
February 2nd, 2009, 02:07 AM
I don't know the situation for Oracle 9i, but for Oracle 8i I finally discovered (after MANY hours of searching online!!), that the oci.dll and "OCI" extension's are incompatible with with Oracle 8i (I think they may only work from Oracle 10 onwards)!!

At last, I now have PHP connecting to the database on the following spec:

Windows XP
IIS 5.1
Oracle 8i (hosted on a Unix server)

... with:

PHP 5.1.5
PECL 5.1.5 (using only the "oracle.dll" at the moment)

... connecting to the Oracle 8i database using the "ORA" extensions instead of "OCI" - I had the same error you're getting here untile I removed the "oci.dll" file from the extensions directory.