Home » RDBMS Server » Server Administration » ORA-12154 : TNS : Could Not Resolve Sevice Name
ORA-12154 : TNS : Could Not Resolve Sevice Name [message #55045] Sun, 29 December 2002 20:23 Go to next message
Ravi
Messages: 251
Registered: June 1998
Senior Member
Hello

I installed Personnel Oracle 8.1.7 on Windows 98 machine and trying to login to SQL Plus and got "ORA-12154 : TNS : Could Not Resolve Sevice Name" error. I Successfully stared LISTENER and started DataBase and tried to login to SQL Plus.

######################
====== TNSNAMES.ORA=====
# TNSNAMES.ORA Network Configuration File: C:OracleOra81NETWORKADMINtnsnames.ora
# Generated by Oracle configuration tools.

TEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oemcomputer)(PORT = 1521))
)
(CONNECT_DATA =
(SID = NEEDB)
)
)
####################
########################
======LISTENER.ORA============
# LISTENER.ORA Network Configuration File: C:OracleOra81networkadminlistener.ora
# Generated by Oracle configuration tools.

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oemcomputer)(PORT = 1521))
)
)
(DESCRIPTION =
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
)
(ADDRESS = (PROTOCOL = TCP)(HOST = oemcomputer)(PORT = 2481))
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:OracleOra81)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = NEEDB)
(ORACLE_HOME = C:OracleOra81)
(SID_NAME = NEEDB)
)
)

########################

Any help for problem will be appreciated.

Thanks,
Ravi.
Re: ORA-12154 : TNS : Could Not Resolve Sevice Name [message #55047 is a reply to message #55045] Mon, 30 December 2002 05:58 Go to previous messageGo to next message
sai sreenivas jeedigunta
Messages: 370
Registered: November 2001
Senior Member
If u are working with a single machine u dont need a hoststring to connect to a database. All u have to di is simply say connect user/password thats all..
...Ensure u r listener is up and running..
by the way, u have installed 8.1.7 lite right ? Otherwise enterprise edition will not get installed on 8i...

sai
Re: ORA-12154 : TNS : Could Not Resolve Sevice Name [message #55050 is a reply to message #55045] Mon, 30 December 2002 06:23 Go to previous message
xxx
Messages: 8
Registered: April 2001
Junior Member
try to comment the following in sqlnet.ora and try connecting.

names.default_domain
Previous Topic: Oracle Installer does not start on P4
Next Topic: package for object desc
Goto Forum:
  


Current Time: Sat Dec 28 06:22:25 CST 2024