Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-12505, TNS:listener does not currently know of SID given

tong123123-JavaNetMay 7 2012 — edited May 3 2013
I follow the procedure in
[http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm]
but when press "Test" button in Oracle SQL Developer, the following error prompt:
failure-listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor. The Connection descriptor used by the client was localhost:1521:ORCL

the listener.ora content is
# tnsnames.ora Network Configuration File: C:\app\product\11.1.0\db_2\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

ORCL11G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = TeamC-Dell-2)(PORT = null))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl11g)
)
)

THRMIS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = lemon.vtc.edu.hk)(PORT = 1527))
)
(CONNECT_DATA =
(SERVICE_NAME = thrmis)
)
)

LISTENER_ORCL11G =
(ADDRESS = (PROTOCOL = TCP)(HOST = TeamC-Dell-2)(PORT = null))

#add by kei
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)

and the content of tnsnames.ora is
# tnsnames.ora Network Configuration File: C:\app\product\11.1.0\db_2\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

ORCL11G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = TeamC-Dell-2)(PORT = null))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl11g)
)
)

THRMIS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = lemon.vtc.edu.hk)(PORT = 1527))
)
(CONNECT_DATA =
(SERVICE_NAME = thrmis)
)
)

LISTENER_ORCL11G =
(ADDRESS = (PROTOCOL = TCP)(HOST = TeamC-Dell-2)(PORT = null))

the output of command LSNRCTL STATUS is

C:\Users\TeamC>LSNRCTL STATUS

LSNRCTL for 32-bit Windows: Version 11.1.0.6.0 - Production on 08-MAY-2012 11:46:35

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12535: TNS:operation timed out
TNS-12560: TNS:protocol adapter error
TNS-00505: Operation timed out
32-bit Windows Error: 60: Unknown error
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 31 2013
Added on May 7 2012
28 comments
10,667 views