php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12502 oci8.dll can't be loaded
Submitted: 2001-07-31 23:44 UTC Modified: 2001-08-06 07:37 UTC
From: jmgonzal at netred dot cl Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.0.6 OS: WinNT and Windows 2000
Private report: No CVE-ID: None
 [2001-07-31 23:44 UTC] jmgonzal at netred dot cl
I try to configure 2 computers: 

1 with NT with SP 6 with IIS 4.0 
1 with Windows 2000 and IIS 5

all with PHP 4.0.6 for windows

Oracle 8.1.5 is in NT and the windows 2000 will connect to the NT via OCI (client version of Oracle installed in Windows 2000)

In Both computers I have the same problem:

Unable to load dynamic library 'c:\php\extensions/php_oci8.dll'

see the last slash in the path 
my php.ini:

extension_dir = c:\php\extensions

extension=php_oci8.dll

Why? 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-01 09:26 UTC] sniper@php.net
For some putting "' around the path has helped.. 
And terminate it with a \ 

 [2001-08-01 09:39 UTC] jmgonzal at netred dot cl
I put 

extension_dir = "c:\php\extensions\"

and now the error is:

Unable to load dynamic library 'c:\php\extensions\php_oci8.dll'

the file php_oci8.dll exist in c:\php\extensions\

 [2001-08-01 10:20 UTC] sniper@php.net
to look on which external dlls an exe or an dll is relying you can use the dependency walker - 
http://www.dependencywalker.com/

 [2001-08-01 15:58 UTC] jmgonzal at netred dot cl
I don't understand this program.
Please check this image :

http://www.netred.cl/php.jpg

(image of my screen).

 [2001-08-01 21:54 UTC] jmgonzal at netred dot cl
Sniper,

I change my php.ini 

I comment php_oci8.dll
and uncomment php_oracle.dll

This work.

But now I recieve the following problem:

TNS:could not resolve service name 

I try with 

$db= ora_logon("demo_user/demo_password@demo","");

This TNS exist and the user and the password too.

(this is the right place for this question?)

thank you again.
 [2001-08-02 11:56 UTC] jmgonzal at netred dot cl
I found in the faqs the following (exactly the same problem)

"This problem was also seen under the ODBC drivers for Windows.  The solution so far has
been to remove all Windows based carriage returns (\r\n) in your TNSNames.ora and
SQLNet.ora file, and replace them with unix style carriage returns (\n).

This should end your problem.  Why is this happening?  It's unknown at the time, but is
being investigated.  
"

I convert this 2 files to Unix format (only \n) but the problem still happend.

any help?
 [2001-08-02 11:57 UTC] jmgonzal at netred dot cl
sorry.... ORACLE VERSION 8.05
 [2001-08-06 07:37 UTC] sniper@php.net
Ask support questions on the appropriate mailing list:

http://www.php.net/support.php

( php-db / php-windows ) after you have searched the
archives, of course.

--Jani

 [2002-11-07 09:08 UTC] zikica dot jevtic at regulussoft dot com
I have same problem with Unable to load dynamic library 'c:\php\extensions/php_oci8.dll'

What is sollution ?
 [2002-11-14 05:23 UTC] lgarcia at ch-avignon dot fr
you need to have the oracle client installed on both machine
and your may not have uncommented php_oci8.dll and php_oracle.dll, only one a the same time if not you will have a problem...
and "extensions_dir:./extensions" 
nothing else

bye
 [2003-05-01 20:35 UTC] junjun_290 at emailaccount dot com
I have same problem with Unable to load dynamic library
'c:\php\extensions/php_oci8.dll'

   I've tried fixing this problem so many times but I haven't got any good result!
   How can I solve it!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 04:01:30 2024 UTC