473,770 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OCI8 install

I just installed Apache 1.3/PHP 5 on my Windows XP compy. It works
fine. Now I want to get the interface to Oracle 9 installed.

My computer has instant client 10 installed, I regularly use sqlplus
and can connect to the Oracle DB with python without problem.

I uncommented the 'extension=php_ oci8.dll' line in php.ini. Now I
recieve a "Fatal error: Call to undefined function oci_connect()" when
I try to use php to connect to the oracle database.

What is going on here? I don't understand what I did wrong.

Jan 28 '06 #1
4 12847
On 28 Jan 2006 09:15:01 -0800, "rtconner" <rt******@gmail .com> wrote:
I just installed Apache 1.3/PHP 5 on my Windows XP compy. It works
fine. Now I want to get the interface to Oracle 9 installed.

My computer has instant client 10 installed, I regularly use sqlplus
and can connect to the Oracle DB with python without problem.

I uncommented the 'extension=php_ oci8.dll' line in php.ini. Now I
recieve a "Fatal error: Call to undefined function oci_connect()" when
I try to use php to connect to the oracle database.

What is going on here? I don't understand what I did wrong.


If you did a straightforward installation then the usual thing to watch for is
that the Oracle software won't be accessible by the local service user that
Apache (and hence PHP runs as). Check the permissions on your Oracle directory
- your interactive user will be able to use it, as you're already using
sqlplus, but probably not the user Apache runs as. An alternative is to get
Apache to run under your user account by modifying the service, but make sure
you realise the possible security implications before doing that.

Also make sure that the Oracle home is on the PATH environment variable _as
seen by the Apache process_ - i.e. set as a global environment variable, not
just a user environment variable.

Were there any errors (either message boxes, or in the Windows Event Log) when
you started Apache that indicates that it couldn't load php_oci8.dll? Usually
these then leads to information about a problem with PHP loading the Oracle
client DLL due to the issues above.

--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 28 '06 #2
Andy Hassall wrote:
On 28 Jan 2006 09:15:01 -0800, "rtconner" <rt******@gmail .com> wrote:
I just installed Apache 1.3/PHP 5 on my Windows XP compy. It works
fine. Now I want to get the interface to Oracle 9 installed.

My computer has instant client 10 installed, I regularly use sqlplus
and can connect to the Oracle DB with python without problem.

I uncommented the 'extension=php_ oci8.dll' line in php.ini. Now I
recieve a "Fatal error: Call to undefined function oci_connect()" when
I try to use php to connect to the oracle database.

What is going on here? I don't understand what I did wrong.


If you did a straightforward installation then the usual thing to watch for is
that the Oracle software won't be accessible by the local service user that
Apache (and hence PHP runs as). Check the permissions on your Oracle directory
- your interactive user will be able to use it, as you're already using
sqlplus, but probably not the user Apache runs as. An alternative is to get
Apache to run under your user account by modifying the service, but make sure
you realise the possible security implications before doing that.

Also make sure that the Oracle home is on the PATH environment variable _as
seen by the Apache process_ - i.e. set as a global environment variable, not
just a user environment variable.

Were there any errors (either message boxes, or in the Windows Event Log) when
you started Apache that indicates that it couldn't load php_oci8.dll? Usually
these then leads to information about a problem with PHP loading the Oracle
client DLL due to the issues above.


well that was a stroke of genius. I checked the log find the
php_oci8.dll file. I apparently needed to set the extension_dir
directive. and, well everything seems to be working at least a little
better now.

i now get and unkown windows apache.exe exception when I run queries.
but that seems unrelated to this problem.

thanks for the help. I'll play with exception and see what I can do to
remedy it.

-rob

Jan 28 '06 #3
Well, I guess I have not gotten this fixed. Now when I run queries is
get and Apache.exe error: An unhandled win32 exception occurred in
Apache.exe [pid]. I've searched high and low for error logs and the
best I could find is 'The Apache service terminated unexpectedly. It
has done this N time(s).'
Kind of aggrevating, has anyone else seen this error before? Does
anyone have any guesses on how to fix it?

Jan 28 '06 #4
On 28 Jan 2006 09:35:48 -0800, "rtconner" <rt******@gmail .com> wrote:
i now get and unkown windows apache.exe exception when I run queries.
but that seems unrelated to this problem.


Which version of PHP? 5.1.2 comes with a new and improved version of the OCI8
extension, which amongst other things seems considerably more stable under
multithreaded Apache2 on Windows, at least from some initial testing.

Also you mentioned you're running Apache 1.3 on XP - one of the main changes
in Apache 2.0 is better Windows support
(http://httpd.apache.org/docs/2.0/new_features_2_0.html)

--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 28 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3020
by: lok | last post by:
hi all, i have installed oracle9i client tools on RedHat7.3 (x86 machine) and i compiled php4.1.2 & apache1.3 successfully but when i execute php script in browser, error occured: "Fatal error: Call to undefined function: ocilogon()" i found no oci8.so in the whole system. i think this is the reason why the error occured
3
12685
by: Chad The Man | last post by:
I have been developing some applications on suse 9 / apache 1.37 / php 4.3.4 / Oracle 9i / OCI8. We recently moved servers, apache works fine, php works fine, oracle works fine... however, trying to connect to oracle from php it dies with the following error : Warning: ocilogon(): _oci_open_session: OCIHandleAlloc OCI_HTYPE_SVCCTX: OCI_INVALID_HANDLE Using SQL plus I can connect just fine. The variables are all set in apache and the...
8
19550
by: PIII450 | last post by:
Hi all, We had to switch to windows 2003 server with IIS and now i've got a problem with the OCI8 :(( Big time! I know php works. I have tested this. I know the oracle\bin is in the path. I checked. At first I just made the extension active and then PHP stopped. Pages wouldn't load and the IIS had to be restarted.
1
3383
by: watayoune | last post by:
Hi, My apache (on win) crash when i start it, after i had oci8 extensions in php.ini ! 1. i had extension phph_oci8.dll in php.ini 2. i've got a php_oci8.dll in my php extensions dir 3. my exetnsion dirs are c:\php\extensions\ in php.ini 4. i've installed oci8 client 5. i've put my oci.dll (from oracle_home) in my windows dir (tips found
0
2125
by: RDahlstedt | last post by:
I am relatively new to PHP, but with over a decade of experience in C and other programming languages I can usually pick up a new programming language relatively quickly (to be reasonably productive not to know it inside out). My issues I believe may be either solely concentrated on the platform I am running PHP 5.0.0 on (MS Windows 2000) or just the Oracle OCI8 module (running against an Oracle 8.1.7.4 installation). In either case I am...
6
6335
by: DravenStone | last post by:
Hi, I had just a horrible day at work, spent pretty much the entire day trying to get php_oci.dll and php_oracle.dll to load. It still never did. Super Quick Background. Jack of all trades IT guy, have written many tools using perl and JSP in the past. Had a chance to do a big project, and figured I would use it to learn PHP.
5
2879
by: Mladen Gogala | last post by:
The latest version of OCI8 1.2.1 doesn't work with LOB fields. There was an open bug, but Tony2001 was his usual helpful self, so he removed the bug and flatly denied its existence. I had to download 1.2.0 and reading CLOB fields started working again. Unfortunately, DBMS_METADATA.GET_DDL returns CLOB, so I was forced to discover this non-existing bug. PECL bug system is useless and maintainers are more suited for inquisitors then for...
5
8170
by: danish | last post by:
I download the oci-1.2.2.tgz file and generated the oci8.so file. After adding the extension=oci8.so in php.ini I get the error unable to load dynamic library /usr/lib/php4/oci8.so
0
4791
by: Yannick | last post by:
Hi, I'm Julien from France, We have recently install a new Web Server for my company The server is composed : - Linux RedHat RHEL4 U4 - Httpd-2.0.52-27.ent - Oracle Database 10.2.0.1
7
22079
by: eholz1 | last post by:
Hello All, I have reviewed various posts in regard to Oracle and PHP. I am running Apache 2.0.59, on Windows XP, with PHP 5.2. I would like to connect using PHP to a remote oracle db (ver. 7) I have uncommented out the php_oci8.dll and the older php_oracle.dll in the php.ini file the ini file resides in c:\php\php.ini
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.