PHP Warning: ocilogon() ORA-12154

Alles, was PHP betrifft, kann hier besprochen werden.

PHP Warning: ocilogon() ORA-12154

Postby esilrom » 03. April 2009 18:45

Dear all,

I am running a Slackware 12.2 machine over x86 32 bits with Apache+PHP+Oracle Instant Client and I am experiencing problems with this specific OCI8 module.

According to phpinfo() and php --ri oci8 it is loaded, but unfortunately I do not know anything else to check, once I think I explored everything.

May anyone can help me on this stuff?

Cheers

The printable error from error_log is something like this below

[Fri Apr 03 14:36:59 2009] [error] [client 10.128.72.51] PHP Warning: ocilogon() [<a href='function.ocilogon'>function.ocilogon</a>]: ORA-12154: TNS:could not resolve the connect identifier specified in

Below you can find a specific part of my phpinfo() where is shown the loaded OCI8 module.

PHP Version 5.2.8

System Linux spomor1s2068 2.6.27.7-smp #2 SMP Thu Nov 20 22:32:43 CST 2008 i686
Build Date Apr 2 2009 20:14:29
Configure Command './configure' '--with-oci8=shared,instantclient,/usr/src/oracle/instantclient' '...

oci8
OCI8 Support enabled
Version 1.3.5
Revision $Revision: 1.269.2.16.2.38.2.32 $
Active Persistent Connections 0
Active Connections 0
Temporary Lob support enabled
Collections support enabled

Directive Local Value Master Value
oci8.connection_class no value no value
oci8.default_prefetch 10 10
oci8.events Off Off
oci8.max_persistent -1 -1
oci8.old_oci_close_semantics Off Off
oci8.persistent_timeout -1 -1
oci8.ping_interval 60 60
oci8.privileged_connect Off Off
oci8.statement_cache_size 20 20
esilrom
 
Posts: 1
Joined: 03. April 2009 18:39

Re: PHP Warning: ocilogon() ORA-12154

Postby Harry_X » 24. April 2009 21:18

maybe the tnsnames.ora is missing?
Harry_X
 
Posts: 14
Joined: 24. April 2009 10:42


Return to PHP

Who is online

Users browsing this forum: No registered users and 50 guests