Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

TNS:listener was not given the SERVICE_NAME IN connect_data

485900Feb 24 2006 — edited Apr 8 2012
I 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.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 6 2012
Added on Feb 24 2006
8 comments
61,437 views