PHP 5.3.1 does not load php_oci8.dll on Windows

I am trying to download the oracle extension in php, but im has an error:

Warning : starting PHP: it is not possible to load the dynamic library "D: \ Program Files \ xampp \ php \ ext \ php_oci8.dll" - the specified procedure was not found. Unknown on line 0

I have done so far:

  • The full path of the oracle immediate client included in the Windows path
  • on php.ini, extension_dir points to the right place
  • on php.ini extension=php_oci8.dll is fine
  • restarted apache and nothing works.
+6
source share
6 answers

The problem was solved by copying the orannzsbb11.dll, oci.dll and oraociei11.dll files to c: \ windows \ system32

+7
source

I solved this problem by adding "C: \ Program Files (x86) \ PHP \ v5.3 \ ext" to the Windows PATH environment variable. You just need to remember how to change the path if you update PHP. I think this is better than copying DLLs, which may lead to problems in the future if you end up with multiple DLLs with different versions on the same machine.

+2
source

You will need to download the Oracle Instant client from this hyperlink http://www.oracle.com/technetwork/topics/winsoft-085727.html . Add the path to the instant client in user vriables and system variables.

+2
source

For me, this was not caused by installing Visual C ++ Redistributable for Visual Studio 2008 SP1 (for VC9). I should have received the x64 package since I am running Windows 7 64bit. Hope this helps someone with the same issue. After installing it, PHP no longer reported these errors.

+1
source

I found that the main cause of this problem is the oci8 version of the oracle version. Finally, I was able to connect to the oracle and the steps described here at http://angularcode.com/connecting-php-to-oracle-database-10g/

+1
source

Perhaps for some this is obvious, but not originally for me: if you still see this error The specified procedure could not be found. in Unknown on line 0 The specified procedure could not be found. in Unknown on line 0 , even after installing the instant client, SDK, etc., make sure you put the Oracle instant client in the system variable "PATH" and not the user variable, since the user is not used explicitly when Apache is running. You can verify that the path to the client client is set correctly by looking at the PATH value indicated on your phpinfo () output.

+1
source

Source: https://habr.com/ru/post/927355/


All Articles