TNS:listener was not given the SERVICE_NAME IN connect_data
485900Feb 24 2006 — edited Apr 8 2012I did a search on this error but it doesn't seem any of the talk helps solve me issue or maybe I just don't understand.
I am trying to connect to a Oracle 10g Standard Edition server from another machine through Visual Studio .NET (not that it matters where I connect from).
I get the following error "TNS:listener was not given the SERVICE_NAME" IN connect_data. What is the problem here? Here is the listener.ora file:
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = MYSERVER)(PORT = 1521))
)
)
One thing to note here is that I cannot connect to the server via Name I can only connect using the IP address from my machine. Not sure if that matters.