473,387 Members | 1,504 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,387 software developers and data experts.

PHP 5.0.4 cannot use Oracle*Net on 10.2

My database is on Linux, FC3. I know it isn't supported, I am
not asking for support, I am just reporting a problem.

This is the error that I'm receiving:

Exception:oci8 error: [12154: Error while trying to retrieve text for
error ORA-12154 ] in CONNECT(local, 'SYSTEM', '****', )

Apache processes are failing like crazy:

[Thu Jul 07 22:25:15 2005] [notice] child pid 23090 exit signal
Segmentation fault (11) [Thu Jul 07 22:25:16 2005] [error] [client
127.0.0.1] File does not exist: /opt/apache/htdocs/favicon.ico [Thu Jul 07
22:25:23 2005] [error] [client 127.0.0.1] File does not exist:
/opt/apache/htdocs/favicon.ico [Thu Jul 07 22:25:25 2005] [error] [client
127.0.0.1] File does not exist: /opt/apache/htdocs/favicon.ico [Thu Jul 07
22:25:26 2005] [notice] child pid 23091 exit signal Segmentation fault
(11) [Thu Jul 07 22:25:39 2005] [notice] child pid 23087 exit signal
Segmentation fault (11) [Thu Jul 07 22:25:39 2005] [notice] child pid
23092 exit signal Segmentation fault (11) [Thu Jul 07 22:26:42 2005]
[error] [client 127.0.0.1] File does not exist:
/opt/apache/htdocs/favicon.ico [client 127.0.0.1] PHP Warning: ocilogon()
[<a href='function.ocilogon'>function.ocilogon</a>]: _oci_open_server:
Error while trying to retrieve text for error ORA-12154\n in
/usr/local/PHP/adodb/drivers/adodb-oci8.inc.php on line 228, referer:
http://localhost/dba/dba_helper.php [Thu Jul 07 22:26:51 2005] [error]
[client 127.0.0.1] File does not exist: /opt/apache/htdocs/favicon.ico

$ sqlplus scott/tiger

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jul 7 22:29:32 2005

Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning and Data Mining options

SQL>

Hopefully, 5.1 will resolve these problems when it gets out of beta.

Of course, it worked like a charm with 10.1.0.4

--
http://www.mgogala.com
Jul 17 '05 #1
3 2933
On Fri, 08 Jul 2005 02:31:32 +0000, Mladen Gogala interested us by
writing:
My database is on Linux, FC3. I know it isn't supported, I am
not asking for support, I am just reporting a problem.

This is the error that I'm receiving:

Exception:oci8 error: [12154: Error while trying to retrieve text for
error ORA-12154 ] in CONNECT(local, 'SYSTEM', '****', )


Sounds like possibly your $ORACLE_HOME/network.admin/tnsnames.ora is not
set up to talk to the database the way PHP expects it to work. Or you are
not getting to the right tnsnames.ora

For example - which service are you using in SQLPlus? You probably have
$ORACLE_SID set up in that environment ... but it doesn't match the SID
used in PHP. (Occasionally multiple tnsnames.ora are created, one per
ORACLE_HOME, and the user accidently points at the wrong one.)

With the 'retrieve text' issue, it almost points at the $ORACLE_HOME not
being recognized inside PHP at all (but of course, it's beta so that might
be misleading)

Some troubleshooting hints (yes, they are for 9i but still valid. Or you
could look up the equiv in the 10g docco)

http://download-west.oracle.com/docs...les.htm#440455

Let us know how it resolves
--
Hans Forbrich
Canada-wide Oracle training and consulting
mailto: Fuzzy.GreyBeard_at_gmail.com
*** I no longer assist with top-posted newsgroup queries ***

Jul 17 '05 #2
On Fri, 08 Jul 2005 02:43:47 +0000, HansF wrote:

Sounds like possibly your $ORACLE_HOME/network.admin/tnsnames.ora is not
set up to talk to the database the way PHP expects it to work. Or you are
not getting to the right tnsnames.ora


Everything was set the right way, except one minor detail: $ORACLE_HOME
was not world-readable, so user "nobody" couldn't read it. I thought that
I was going mad....

--
http://www.mgogala.com

Jul 17 '05 #3
On Fri, 08 Jul 2005 02:43:47 +0000, HansF wrote:

Let us know how it resolves


It still fails with core dump, though. It works like a charm when I link
it against the freshly installed 10.1 client.

--
http://www.mgogala.com

Jul 17 '05 #4

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

Similar topics

5
by: Axel Dachtler | last post by:
Hi, I have a listener problem. The listener cannot read SERVICE_NAME in TNS-Descriptor. The service-name I specified in Oracle Net Manager for this database is testdb as well. ...
1
by: Crowe | last post by:
Greetings Everyone: Oracle 9i installed on a sun solaris box. No protocol adapters available. I would greatly appreciate any help from the db gurus on this forum. after bringing up the...
5
by: Kona | last post by:
Hello, Is it right to tell that DB2 Connect has the same function that Oracle Net ? If I have an ODBC application is it also right to tell that I have 2 possibilities on my client workstation to...
3
by: Jonathan Woods | last post by:
I could not find Oracle .NET data provider for version 1.1. Do I have to use ODBC .NET data provider for instead? Which provider can offer best access to Oracle Database? I'm using Oracle 8i....
1
by: Robin | last post by:
Are the some sample VB.Net code for using the Oracle.Net data connector?
14
by: tristant | last post by:
Hi All, Our client has just decided to migrate from SQLServer2k to Oracle 9i on AIX. We are considering what development tool / language as the application/ front end platform. We almost...
3
by: christof | last post by:
I wish to make a backup, with host copy operation but got problems with double backslash \\ occuring in my OracleCommand, got always exception "Invalid SQL", here's my command (.txt only as...
14
by: jehugaleahsa | last post by:
Hello: I am working with Oracle .NET Stored Procedures. I would like to know how to return the results of a SELECT statement. I have tried returning a OracleRefCursor and a DataTable, but...
1
by: R04 | last post by:
Could any one provide me with an sample assignment( C# code...) for connecting Oracle10 with .Net
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.