473,402 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

PHP and Oracle 9.xi - Please Somebody HELP ME!!

Hi,

I'm desperate...

I've been installed Oracle Client. 9.1i in some computers and 9.2i in
others. The installation was sucefull, because, I can use SQL Plus,
without problems...

Now I'm trying to connect, PHP with Oracle, and I'm experimented to
diferents problems:

1) When I start PHP, I get the error message: 'Unable to load dynamic
library c:\php\extensions\php_oci8.dll'
.. I'm quite sure that this file exist!!. More than this, I already use
php_socket.dll, and this library is loaded ok.
.. I've been already check PATH, and "c:\oracle\ora9x\bin" is there.
.. I tried to copy "php_oci8.dll" and "oci8.dll" to "system32" folder but
doesn't work.

What I'm missing????

2) In just one machine working with Oracle 9.2i client, I can load
php_oci8.dll (i get this installing an uninstalling php, iis, and oracle
client too many times, so I don't know why it's working...). But, (there is
always a but...), when I try to connect, I get the following error:
"Warning: ocilogon(): _oci_open_server: ès":
.. Enviroment variables like "ORACLE_SID", "ORACLE_HOME" "TNS_ADMIN"
"LD_LIBRARY_PATH" are OK!
.. "tsnames.ora" is ok to (I know that because I can use SQLPlus, and tnsping
is fine)

Again: Wha't I'm missing???

I'm using PHP version 4.x (I already tried 4.0, 4.1, 4.2 and 4.3.4, and
always get the same problem), IIS 4.5, and Windows XP Pro.

Thanks a lot!!

Jul 17 '05 #1
1 4175
On Thu, 20 Nov 2003 12:27:44 -0300, "Gustavo Oliveira"
<lg****************@matrix.inf.br> wrote:
I've been installed Oracle Client. 9.1i in some computers and 9.2i in
others. The installation was sucefull, because, I can use SQL Plus,
without problems...

Now I'm trying to connect, PHP with Oracle, and I'm experimented to
diferents problems:

1) When I start PHP, I get the error message: 'Unable to load dynamic
library c:\php\extensions\php_oci8.dll'
. I'm quite sure that this file exist!!. More than this, I already use
php_socket.dll, and this library is loaded ok.
That error can mean a bit more than it says; e.g. one of the libraries that
library depends on can't be loaded.
. I've been already check PATH, and "c:\oracle\ora9x\bin" is there.
OK... but is it there in the environment the web server sees? This can be
different to your user's environment.
. I tried to copy "php_oci8.dll" and "oci8.dll" to "system32" folder but
doesn't work.
Don't do that. Remove them from system32 else you'll get into a worse mess.

Besides, it's oci.dll on Windows, not oci8.dll.
What I'm missing????
The usual things are:

(a) Environment for the webserver different from that of your user, so it works
for you, but not for your webserver.

(b) Oracle 9i installs the Oracle home with tighter permissions than it did in
8i, so make sure your webserver user has at least read and execute permissions
on the Oracle home directories and files.

As a test, you could alter the service for your webserver to log on as your
user, rather than the system user it's probably set to. If this works, then
it's one of the issues above.
2) In just one machine working with Oracle 9.2i client, I can load
php_oci8.dll (i get this installing an uninstalling php, iis, and oracle
client too many times, so I don't know why it's working...). But, (there is
always a but...), when I try to connect, I get the following error:
"Warning: ocilogon(): _oci_open_server: è s":

Is that what appears? Corrupted characters like that? Looks bad.

What sort of client install did you do? Did it install the OCI libraries? I
can't remember off the top of my head what gets installed in a client install
since I usually do a Custom install to pick and choose the bits I want.
. Enviroment variables like "ORACLE_SID", "ORACLE_HOME" "TNS_ADMIN"
"LD_LIBRARY_PATH" are OK!
LD_LIBRARY_PATH doesn't apply to Windows; it just uses PATH for both libraries
and executables.
. "tsnames.ora" is ok to (I know that because I can use SQLPlus, and tnsping
is fine)


--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #2

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

Similar topics

2
by: Patricia | last post by:
I am a new Oracle user. I am trying to install Oracle 9i Personal Edition on Windows ME; however, I am getting the following error during the installation: Oracle Database Configuration Assistant...
63
by: Nick Palmer | last post by:
Hi all, Is there a DB2 equivilant to Oracle's DB Link functionality ? I have two DB2 databases and I need to get access to the tables in one from the other. In Oracle I would just create a DB...
11
by: Mark A | last post by:
Here is Mark Townsend's (Oracle Product Manager) explanation and justification for posting in the DB2 newsgroup, as posted on the Oracle newsgroup, and my response: "Mark Townsend"...
3
by: Budd | last post by:
I don't know how to connect to oracle database by asp.net Anyone have any simple or step for me to connect?? i have no idea.... i have search from google and get the code But it seen i have miss...
16
by: Medhatithi | last post by:
Hi, I am facing a strange problem with decode function in oracle. My table name is status_hist. Below is the query I am hitting on this table: select...
7
by: arunbalait | last post by:
Hi all Somebody plz help me.. How to store/retrieve images from the oracle8i table. I tried using the article BLOB in this forum.. It works for SQLServer, But I want to know how to implement in...
1
by: ramorac | last post by:
Hi.. My requirement is to populate the fields in the front end screen(application screen) points weightage and rating when a particular answer is chosen from the combobox in front end. For...
1
by: yashwanth | last post by:
Hi, I am new to oracle and i wanted to use oracle as data base for my java project,i need to use files for saving data how can i use it...?
1
by: ravi | last post by:
hi friends, The below given query is work on oracle.Help me out write same query on sqlserve i want the same resule. select * from (select trunc(sysdate) + level from dual 2 connect by level...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.