Solved

Unable to load dynamic library  php_oci8.dll

Posted on 2006-11-22
19
10,594 Views
Last Modified: 2013-12-13
helloo ALL,
               i am using php5.1.4, IIS and Oracle 9i full client installed on my local machine
i have uncomment php_oci8.dll and set the ext folder path in php.ini but i am still getting warning in my php pages

PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_oci8.dll' - The specified procedure could not be found. in Unknown on line 0

c:\php\ext\php_oci8.dll i am sure this file is located on this folder.

Any HELP
0
Comment
Question by:zahidrahim
  • 7
  • 6
  • 2
  • +1
19 Comments
 
LVL 48

Expert Comment

by:hernst42
ID: 18001425
The problem might be that the webserver user can not load the oracle-libs (missing rights to enter oracle-directory and reading files) Make sure the
IUSER_<machinename> hat therights to access and read the oracle-directories
0
 
LVL 1

Author Comment

by:zahidrahim
ID: 18001620
could not understand,
                              By the way i am on my local machine with windows2000 and administrator login. now what and where should i see this rights thing???
0
 
LVL 48

Expert Comment

by:hernst42
ID: 18001675
IIS executes php not as Administrator it runs php as IUSER_machinname and thus all needed componets must be accessable via the IUSER_machinname - User. If you right-click on a fold an select properities there is AFAIk a tab where you can set the Security settings, but I'm no windows expert

0
 
LVL 1

Author Comment

by:zahidrahim
ID: 18001776
can you little further exaplain how to add user and how to give all rights. i have windows2000 IIS and Oracle 9i Client
0
 
LVL 1

Author Comment

by:zahidrahim
ID: 18006882
well now i am not using iis and trying to setup with apache2.0.59 with php5.1.4 on my same win2000 machine
but restarting apache

The procedure entrypoint OCILobRead2 could not be located in dynamic link library OCI.dll
and
PHP STartup: unableto load dynamic link library c:\php5\php_oci8.dll The specified procedure could not be found.

can you help me with these settings or tell me any way i can setup here or if u can help me in Red Hat Linux i can switch there as well........

But please help me out this issue :(
0
 
LVL 48

Expert Comment

by:hernst42
ID: 18007071
If you don't need the oracle Database on your local PC, you can try to go with ZendCore for Oracle. I use the ZendCore for Oracle on linux which works very well.

Install the basesystem of the linux distribution (without apache, php), download and install ZendCore and you have a running system with php and oracle (database on another host)

There is also a version for windows:
http://www.zend.com/products/zend_core/windows_preview
you might try this version before you plan to switch to linux. In this case all permission and dll-problems should have gone. You are also able to get full support from Zend for this products.
0
 
LVL 1

Author Comment

by:zahidrahim
ID: 18010491
should i install zend core for oracle on windows or zend core for windows on windows

using  Zend Core for Oracle v.1 Windows x86 after the intall bar complete the installation disappears and dont give me a message of restart your computer........

will i be able to start using php_oci8 just after installing zend Core For Oracle

can i have your msn/yahoo or gmail account to quickly solve this issue
0
 
LVL 1

Author Comment

by:zahidrahim
ID: 18010636
Hey, i have installed Zend Core for Oracle on my Red Hat Linux with Apache 2.0.52, PHP4.3.9  and i dont have any oracle client etc installed on my this Linux machine so how should i can connect to oracle and where can i create service to configure as i am testing this code which is outputting nothing except

connection:

The Code is:
        $user="bill";
      $password ="bill";
      $host="cis";      
      $conn=OCIPLogon($user,$password,$host);
      print "Connection:".$conn."<br>";

What are the next steps please guide as now i am very close to success i think.........
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 48

Expert Comment

by:hernst42
ID: 18017851
Zend Core for oracle comes with an oracle client. But it seems that your not using the Zend Core (as told do not install apache and php from the redhat distribution). The Zend core comes at least with php 5.1.4

So what does your script output ?
Add at the biginning of you script
ini_set('display_error', true);
error_reporting(E_ALL);

Also I found the problem why your oracle is not working on your windows side. From http://de3.php.net/oci8
You will need the Oracle client libraries to use this extension. Windows users will need libraries with version at least 10 to use the php_oci8.dll.


0
 
LVL 1

Author Comment

by:zahidrahim
ID: 18018454
i dont want to reinstall apache through Zend Core bz my already running apache has oracle financial applications which are very much sensititve for the whole organization. but i dont care about the php upgradation.

so will the zend core distrub my already running apache? can i use my existing apache with Zend Core safely?
0
 
LVL 48

Accepted Solution

by:
hernst42 earned 250 total points
ID: 18018560
yes zend core is also able to run with an existing apache, but i reccommedn deinstalling any other php on the server
0
 
LVL 11

Expert Comment

by:ch2
ID: 18026980
A Quote:

Windows users will need libraries with version at least 10 to use the php_oci8.dll.
0
 
LVL 11

Expert Comment

by:ch2
ID: 18026991
sorry herns42, didn't see your reply till now.
0
 
LVL 48

Expert Comment

by:hernst42
ID: 18241757
Guess my last post http:#18018560 was the final solution
0
 
LVL 14

Expert Comment

by:huji
ID: 18471573
I will leave the following recommendation for this question in the Cleanup topic area:
   Accept: hernst42 {http:#18018560}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Huji
EE Cleanup Volunteer
0
 
LVL 1

Author Comment

by:zahidrahim
ID: 18483971
hello again,
               Everything is working fine on win2K, IIS, Zend Core for Oracle. i have few ASP based applications which stop working after zend core for oracle installation. can you please tell me what i can do to run my asp application on the same server where i am running my php applications communicating with oracle.

When i try to execute asp page in browser that save or open dialogue get appeared.

Any help plzzzzzzzzzz
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

705 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

19 Experts available now in Live!

Get 1:1 Help Now