Home » RDBMS Server » Networking and Gateways » Listener (Oracle, 10g, Windows Server 2003)
Listener [message #497748] Mon, 07 March 2011 01:09 Go to next message
getritesh
Messages: 235
Registered: July 2006
Location: INDIA
Senior Member

Hi,

While connecting to oracle database, i'm getting

SQL> conn red_user/red@orcl
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified 


Warning: You are no longer connected to ORACLE.


Please guide me and this is happening today and i'm working on this schema since past 7-8 months and no configuration changes have been made

Please help me solve this issue

Regards,
Ritesh
Re: Listener [message #497751 is a reply to message #497748] Mon, 07 March 2011 01:11 Go to previous messageGo to next message
Littlefoot
Messages: 21806
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Quite a few things to check:Oracle

TNS-12154: 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.
Re: Listener [message #497766 is a reply to message #497751] Mon, 07 March 2011 01:46 Go to previous messageGo to next message
getritesh
Messages: 235
Registered: July 2006
Location: INDIA
Senior Member

Hi,
Still i'm getting the same error

I'm using tnsnames.ora to connect to database.

In sqlnet.ora there is a entry

SQLNET.AUTHENTICATION_SERVICES= NTS

NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

and in listener.ora there is entry

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = mlbp-0608.JPMCODC.com)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)


Where mlbp-0608.JPMODC.com is my hostname and i'v confirmed it.

TNS entry is

ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = mlbp-0608.JPMCODC.com)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
)
)

[Updated on: Mon, 07 March 2011 02:38]

Report message to a moderator

Re: Listener [message #497782 is a reply to message #497766] Mon, 07 March 2011 02:44 Go to previous messageGo to next message
John Watson
Messages: 8922
Registered: January 2010
Location: Global Village
Senior Member
May I suggest that you make two tests.
First, check that the listener and database are working together, and that the connection details are correct, by connecting with EZCONNECT; then, check that the tnsnames resolution is working:

sqlplus red_user/red@mlbp-0608.JPMCODC.com:1521/orcl

tnsping orcl



Re: Listener [message #497787 is a reply to message #497782] Mon, 07 March 2011 03:07 Go to previous messageGo to next message
getritesh
Messages: 235
Registered: July 2006
Location: INDIA
Senior Member

Hi,
In windows Run i typed

sqlplus red_user/red@mlbp-0608.JPMCODC.com:1521/orcl

But it is giving same error

I did tnsping orcl on cmd

It recognized the tns entry


Regards,
Ritesh
Re: Listener [message #497793 is a reply to message #497787] Mon, 07 March 2011 03:50 Go to previous messageGo to next message
John Watson
Messages: 8922
Registered: January 2010
Location: Global Village
Senior Member
Your problem is with the host name resolution, not with Oracle.
Re: Listener [message #498239 is a reply to message #497793] Wed, 09 March 2011 05:27 Go to previous message
ridhi_sundar
Messages: 184
Registered: November 2007
Location: Bangalore
Senior Member
1. Are you trying to connect from client or server?
2. tnsping orcl
3. ping mlbp-0608.JPMCODC.com

Please post the outputs.
Previous Topic: Connection problem
Next Topic: Database Link Failing with ORA-28500
Goto Forum:
  


Current Time: Thu Mar 28 14:50:02 CDT 2024