Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> TNS listener
I'm trying to logon to an Oracle db via PHP3 (don't worry, no-one else
has heard of it either, it's not important for this question) on Linux.
But I get thiserror message in my browser window:
"Warning: oci8_open_server: ORA-12154: TNS:could not resolve service name in /home/httpd/html/wws/java/oratest.php3 on line 6 Connection failed "
My listener.ora file looks like this:
# Installation Generated Net8 Configuration # Version Date: Jun-17-97 # Filename: Listener.ora
LISTENER =
(ADDRESS_LIST = (ADDRESS= (PROTOCOL= IPC)(KEY= ORCL)) (ADDRESS= (PROTOCOL= IPC)(KEY= PNPKEY)) (ADDRESS= (PROTOCOL= TCP)(Host= blackadder)(Port= 1521)))
Should there be '.' after the host name? Is anything else wrong with it?
From the error message, I'm assuming there is actually a listener running. What will the process name be, so I can look for it with a 'ps' command?
Thanks,