+ Reply to Thread + Post New Thread
Results 1 to 8 of 8
  1. #1
    StryderKC's Avatar
    StryderKC is offline Junior Member
    Join Date
    10 Feb 2009
    Posts
    10
    Say Thanks
    2
    Thanked 0 Times in 0 Posts
    Documents
    0
    Uploads
    0

    Default ORA-12154: TNS: could not resolve the connect identifier specified

    Hi guys, I am not an absolute newbie, and have been using the oracle database for a long time. All of a sudden today I am getting the error.

    ORA-12154: TNS: could not resolve the connect identifier specified

    This error is obviously related to tnsnames.ora file and not correct Service and SID identifiers. However what's baffling me is that both my tnsnames.ora and listener.ora have the correct entries and even the listener service is running.

    Here's my tnsnames.ora
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )
    )

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    )
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )
    )
    and here's the listener.ora

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.1.0\Db_1)
    (PROGRAM = extproc)
    )
    (SID_DESC =
    (GLOBAL_DBNAME = Oracle10g)
    (ORACLE_HOME = C:\oracle\product\10.1.0\Db_1)
    (SID_NAME = orcl)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    )
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    )
    )
    I am using the service ORCL to connect to the database using SQL Plus. I connected yesterday and it was fine. So i am completely baffled! HAs anyone faced anything like this before?

  2.    Club-Oracle Complementary E-Books and Magazines
    Get your free Complementary Copy of Oracle Magazine

    You can also browse the Free Magazines and E-Books section to see the complete list of free magazines, e-books and Whitepapers.

  3. #2
    simply_dba's Avatar
    simply_dba is offline Forum Advisor
    Join Date
    13 Oct 2008
    Location
    Kolkata, India
    Posts
    95
    Say Thanks
    1
    Thanked 5 Times in 5 Posts
    Documents
    0
    Uploads
    0

    Default Re: ORA-12154: TNS: could not resolve the connect identifier specified

    and what does listener status show ? Is the database registered ?
    Some of the world's greatest feats were accomplished by people not smart enough to know they were impossible.

  4. #3
    StryderKC's Avatar
    StryderKC is offline Junior Member
    Join Date
    10 Feb 2009
    Posts
    10
    Say Thanks
    2
    Thanked 0 Times in 0 Posts
    Documents
    0
    Uploads
    0

    Default Re: ORA-12154: TNS: could not resolve the connect identifier specified

    lsnrctl stat returns the following

    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 20-FEB-2009 15:52
    :39

    Copyright (c) 1991, 2004, Oracle. All rights reserved.

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)) )
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
    Start Date 20-FEB-2009 15:52:11
    Uptime 0 days 0 hr. 0 min. 28 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\10.1.0\Db_1\network\admin\listen er.ora
    Listener Log File C:\oracle\product\10.1.0\Db_1\network\log\listener .log

    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\ pipe\EXTPROCipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0. 1)(PORT=1521)))
    Services Summary...
    Service "OracleTest" has 1 instance(s).
    Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully

  5. #4
    simply_dba's Avatar
    simply_dba is offline Forum Advisor
    Join Date
    13 Oct 2008
    Location
    Kolkata, India
    Posts
    95
    Say Thanks
    1
    Thanked 5 Times in 5 Posts
    Documents
    0
    Uploads
    0

    Default Re: ORA-12154: TNS: could not resolve the connect identifier specified

    So the problem zeroes down to tnsnames. Can you reconfigure it using netmgr and see whether the problem resolves or not ?
    Some of the world's greatest feats were accomplished by people not smart enough to know they were impossible.

  6. #5
    simply_dba's Avatar
    simply_dba is offline Forum Advisor
    Join Date
    13 Oct 2008
    Location
    Kolkata, India
    Posts
    95
    Say Thanks
    1
    Thanked 5 Times in 5 Posts
    Documents
    0
    Uploads
    0

    Default Re: ORA-12154: TNS: could not resolve the connect identifier specified

    Also, you can try to connect with sid.db domain, if you have one.
    Some of the world's greatest feats were accomplished by people not smart enough to know they were impossible.

  7. #6
    alhanani's Avatar
    alhanani is offline Junior Member
    Join Date
    29 Mar 2009
    Posts
    5
    Say Thanks
    0
    Thanked 0 Times in 0 Posts
    Documents
    0
    Uploads
    0

    Default Re: ORA-12154: TNS: could not resolve the connect identifier specified

    here you have to type the IP of your client at your server TNS as well copy the ip of your server TNS name on you Client
    that set

  8. #7
    StryderKC's Avatar
    StryderKC is offline Junior Member
    Join Date
    10 Feb 2009
    Posts
    10
    Say Thanks
    2
    Thanked 0 Times in 0 Posts
    Documents
    0
    Uploads
    0

    Default Re: ORA-12154: TNS: could not resolve the connect identifier specified

    hi guys yes I had resolved that error. Actually like alhanani said i used the IP of my database server in my tnsnames file and it was fine.

  9. #8
    alhanani's Avatar
    alhanani is offline Junior Member
    Join Date
    29 Mar 2009
    Posts
    5
    Say Thanks
    0
    Thanked 0 Times in 0 Posts
    Documents
    0
    Uploads
    0

    Default Re: ORA-12154: TNS: could not resolve the connect identifier specified

    did you configure your sqlnet.ora if not
    ad your ip of the client or commit all the restriction

Similar Threads

  1. Replies: 3
    Last Post: 03-03-2010, 09:27 AM
  2. The Server is unavailable. Unable to connect to address.
    By harmaildhiman in forum Oracle Fusion Middleware
    Replies: 1
    Last Post: 03-06-2009, 05:20 AM

Tags for this Thread