Home » RDBMS Server » Server Administration » tns-12514 & TNS-03505: Failed to resolve name
tns-12514 & TNS-03505: Failed to resolve name [message #63741] Wed, 03 November 2004 22:29 Go to next message
ramya
Messages: 87
Registered: August 2002
Member
Hi all When i am trying to connect to a databaase in the server it

self(2 databases,OS win2kserver, oracle 9.2.0.3).I am getting following

error.Both databases are up.I am giving the error code using connect tosqlplus and tnsping also.I am giving the entries of tnsnames and sqlnet.In tnsnames i changed  service_name to sid but no change.How to correct it
with regards
Ramya

 

SQL> conn system/oracle@test
ERROR:
ORA-12154: TNS:could not resolve service name

Warning: You are no longer connected to ORACLE.
SQL> conn system/oracle@test.oracle.aks.com
ERROR:
ORA-12154: TNS:could not resolve service name

 

tnsping test

Used parameter files:
C:oracleora92networkadminsqlnet.ora
C:oracleora92networkadmintnsnames.ora

TNS-03505: Failed to resolve name

 

1) TNsnames.ora

TEST =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = oracle.aks.com)(PORT = 1521))
    )
    (CONNECT_DATA =
      (Service_name = test.oracle.aks.com)
      (SERVER = DEDICATED)
    )
  )

2) sqlnet.ora

SQLNET.AUTHENTICATION_SERVICES= (nts)

NAMES.DIRECTORY_PATH= (TNSNAMES,hostname)

NAMES.DEFAULT_DOMAIN = oracle.aks.com

 
Re: tns-12514 & TNS-03505: Failed to resolve name [message #63742 is a reply to message #63741] Wed, 03 November 2004 23:13 Go to previous messageGo to next message
dilip kumar
Messages: 111
Registered: December 2003
Senior Member
Hi,

In your TNSNAME file your host name is appearing as
'oracle.aks.com'

but when your specifying that connect string your saying 'test.oracle.aks.com'

specify the connect string name as you specified in TNSNAME file i.e

SQLPLUS>conn system/oracle@oracle.aks.com

Regards

D.Dilip
Re: tns-12514 & TNS-03505: Failed to resolve name [message #63749 is a reply to message #63741] Thu, 04 November 2004 10:53 Go to previous messageGo to next message
croK
Messages: 170
Registered: April 2002
Senior Member
what if you change tnsnames.ora as:

TEST.oracle.aks.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle.aks.com)(PORT = 1521))
)
(CONNECT_DATA =
(Service_name = test.oracle.aks.com)
(SERVER = DEDICATED)
)
)
Re: tns-12514 & TNS-03505: Failed to resolve name [message #64399 is a reply to message #63749] Fri, 21 January 2005 21:12 Go to previous message
Rahul Chaudhari
Messages: 1
Registered: January 2005
Junior Member
check ur network by tnsping TEST.oracle.aks.com
if connecting then it will connect to database
Previous Topic: Space not reducing
Next Topic: How can I find out why a job did not execute ?
Goto Forum:
  


Current Time: Fri Jan 10 04:06:08 CST 2025