Listener [message #497748] |
Mon, 07 March 2011 01:09 |
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 #497766 is a reply to message #497751] |
Mon, 07 March 2011 01:46 |
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 |
John Watson
Messages: 8961 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 #498239 is a reply to message #497793] |
Wed, 09 March 2011 05:27 |
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.
|
|
|