Hello everybody,
I have an issue that I hope you can help me with.
I installed on an OpenSuse the following applications using the guides I found on this web site:
- Apache 2 HTTP Server
- PHP 5.2.9
- Instantclient 11.1
- Oracle 11g
After hours of hard work and web navigation looking for information about the problems I got, I'm stucked and I don't find a way to continue.
When PHP tries to connect to the Database, I get this message:
Warning: oci_connect() [function.oci-connect]: ORA-12154: TNS:could not resolve the connect identifier specified in [...]
ORA-12154: TNS:could not resolve the connect identifier specified
tnsping from a terminal resolves the name successfully, as you can see:
[...]
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.4.201)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = Blog.coremain.com)))
OK (0 msec)
The problem comes when PHP tries to connect, that's where Oracle doesn't resolve the SID.
Environment variables ($ORACLE_HOME, $ORACLE_SID, $LD_LIBRARY_PATH) are set as guides say.
By the way, maybe it's related: I can't either connect with JDeveloper to this database in other PC from the network. The data is correct (user, password, IP, port, SID/Service Name).
This happens with a Linux O.S. Installing the same stuff on a Windows, PHP and JDeveloper work fine.
Can you help me, please? I read all the info on the Internet I could get and can't find the solution.
Tell me if you need me to show you any log or configuration file.
Regards