Home » SQL & PL/SQL » Client Tools » connection Failure ORA-12154: TNS:could not resolve service name ? (Oracle 9i)
connection Failure ORA-12154: TNS:could not resolve service name ? [message #416061] Thu, 30 July 2009 05:31 Go to next message
mm_kanish05
Messages: 481
Registered: January 2007
Location: Chennai
Senior Member

Hi,

I can connect via isqlplus using user,password combination only.
But When i give the connection identified, i am getting the following error.


./fa/6632/0/

how to solve this issue.

kanish
  • Attachment: sample.PNG
    (Size: 20.41KB, Downloaded 1083 times)
Re: connection Failure ORA-12154: TNS:could not resolve service name ? [message #416070 is a reply to message #416061] Thu, 30 July 2009 06:03 Go to previous messageGo to next message
Michel Cadot
Messages: 58934
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
ORA-12154: TNS:could not resolve the connect identifier specified
 *Cause:  A connection to a database or other service was requested using
 a connect identifier, and the connect identifier specified could not
 be resolved into a connect descriptor using one of the naming methods
 configured. For example, if the type of connect identifier used was a
 net service name then the net service name could not be found in a
 naming method repository, or the repository could not be
 located or reached.
 *Action:
   - If you are using local naming (TNSNAMES.ORA file):
      - Make sure that "TNSNAMES" is listed as one of the values of the
        NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
        (SQLNET.ORA)
      - Verify that a TNSNAMES.ORA file exists and is in the proper
        directory and is accessible.
      - Check that the net service name used as the connect identifier
        exists in the TNSNAMES.ORA file.
      - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
        file.  Look for unmatched parentheses or stray characters. Errors
        in a TNSNAMES.ORA file may make it unusable.
   - If you are using directory naming:
      - Verify that "LDAP" is listed as one of the values of the
        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
        (SQLNET.ORA).
      - Verify that the LDAP directory server is up and that it is
        accessible.
      - Verify that the net service name or database name used as the
        connect identifier is configured in the directory.
      - Verify that the default context being used is correct by
        specifying a fully qualified net service name or a full LDAP DN
        as the connect identifier
   - If you are using easy connect naming:
      - Verify that "EZCONNECT" is listed as one of the values of the
        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
        (SQLNET.ORA).
      - Make sure the host, port and service name specified
        are correct.
      - Try enclosing the connect identifier in quote marks.

   See the Oracle Net Services Administrators Guide or the Oracle
   operating system specific guide for more information on naming.

Regards
Michel
Re: connection Failure ORA-12154: TNS:could not resolve service name ? [message #416079 is a reply to message #416070] Thu, 30 July 2009 06:56 Go to previous messageGo to next message
mm_kanish05
Messages: 481
Registered: January 2007
Location: Chennai
Senior Member

When i ping from my client machine

tnsping i am getting the following output

TNS Ping Utility for 32-bit Windows: Version 10.1.0.4.2 - Production on 30-JUL-2009 16:40:00
 
Copyright (c) 1997, 2003, Oracle.  All rights reserved.
 
Used parameter files:
D:\DevSuiteHome_1\network\admin\sqlnet.ora
 
Used EZCONNECT adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=192.9.200.1))(ADDRESS=(PROTOCOL=TCP)(HOST=192.9.200.1)(PORT=1521)))
OK (20 msec)


my client machine having the entry are

sqlnet.ora
----------

# sqlnet.ora Network Configuration File: D:\DevSuiteHome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.

SQLNET.AUTHENTICATION_SERVICES= (NTS)

NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, EZCONNECT, ONAMES, HOSTNAME)


tnsnames.ora
-------------

# tnsnames.ora Network Configuration File: D:\DevSuiteHome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.


ACCL = 
  (DESCRIPTION = 
    (ADDRESS_LIST = 
        (ADDRESS = 
          (COMMUNITY = tcp.world)
          (PROTOCOL = TCP)
          (Host = serveripaddress)
          (Port = 1521)
        )
    )
    (CONNECT_DATA = (SID = ACCL)
    )
  )


please help what should i want to do

kanish

Re: connection Failure ORA-12154: TNS:could not resolve service name ? [message #416082 is a reply to message #416079] Thu, 30 July 2009 07:12 Go to previous messageGo to next message
Michel Cadot
Messages: 58934
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
When you use iSQLPlus, it is NOT the client that connects, it is the server.

By the way, iSQLPlus is obsolete.

Regards
Michel
Re: connection Failure ORA-12154: TNS:could not resolve service name ? [message #416198 is a reply to message #416082] Fri, 31 July 2009 02:32 Go to previous messageGo to next message
easymatica
Messages: 5
Registered: July 2009
Junior Member
Michel Cadot wrote on Thu, 30 July 2009 15:12

By the way, iSQLPlus is obsolete


what is the "recommended" tool now?
Re: connection Failure ORA-12154: TNS:could not resolve service name ? [message #416205 is a reply to message #416198] Fri, 31 July 2009 03:11 Go to previous message
Michel Cadot
Messages: 58934
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Genuine SQL*Plus is mine.

Regards
Michel

[Updated on: Fri, 31 July 2009 03:11]

Report message to a moderator

Previous Topic: Funny Behavior with Stored Procedure
Next Topic: SPOOL
Goto Forum:
  


Current Time: Fri Aug 29 05:33:53 CDT 2014

Total time taken to generate the page: 0.11513 seconds