Home » RDBMS Server » Networking and Gateways » ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor [message #442657] Tue, 09 February 2010 15:15 Go to next message
kia_s_ce
Messages: 5
Registered: November 2009
Junior Member
Hi,
I have oracle 11g on windows xp. I can connect to oracle by SQL Plus without any problem, but when i want to connect to oracle by Toad or SQuirrel i see this error:

PTM Coding: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

my listner.ora and tnsnames.ora come below:

listner.ora:
# listener.ora Network Configuration File: C:\app\Kiarash\product\11.1.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\Kiarash\product\11.1.0\db_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\Kiarash\product\11.1.0\db_1\bin\oraclr11.dll")
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
)

tnsnames.ora :
# tnsnames.ora Network Configuration File: C:\app\Kiarash\product\11.1.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)

ORCL4 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl4)
)
)

ORCL3 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl3)
)
)

ORCL2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = kia)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl2)
)
)

ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = kia)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)

Please help me ASAP,i have not enough time...!
Kia
Regards
Re: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor [message #442658 is a reply to message #442657] Tue, 09 February 2010 15:20 Go to previous messageGo to next message
BlackSwan
Messages: 22473
Registered: January 2009
Senior Member
Post Operating System (OS) name & version for DB server system.
Post results of
SELECT * from v$version

It would be helpful if you followed Posting Guidelines - http://www.orafaq.com/forum/t/88153/0/

post results from following commands

lsnrctl status
lsnrctl service

Is TOAD & Squirrel installed on DB server system or different client system?
Re: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor [message #442666 is a reply to message #442658] Tue, 09 February 2010 16:54 Go to previous messageGo to next message
kia_s_ce
Messages: 5
Registered: November 2009
Junior Member
Thanks BlackSwan for your attention !
My OS is Windows XP SP 2 .
TOAD & Squirrel are instaled on DB server system(All of them instaled on my system).
SQL> select * from v$version;

BANNER
------------------------------------------------------------------------------

Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
*****************************************************************
lsnrctl status :

LSNRCTL for 32-bit Windows: Version 11.1.0.6.0 - Production on 10-FEB-2010 02:12
:50

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.1.0.6.0 - Produ
ction
Start Date 09-FEB-2010 23:47:05
Uptime 0 days 2 hr. 25 min. 45 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\Kiarash\product\11.1.0\db_1\network\admin\liste
ner.ora
Listener Log File c:\app\kiarash\diag\tnslsnr\kia\listener\alert\log.xml

Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
*****************************************************************
lsnrctl service :

LSNRCTL for 32-bit Windows: Version 11.1.0.6.0 - Production on 10-FEB-2010 02:14
:36

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
The command completed successfully
Re: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor [message #442668 is a reply to message #442657] Tue, 09 February 2010 19:34 Go to previous messageGo to next message
BlackSwan
Messages: 22473
Registered: January 2009
Senior Member
The listener does not know about any instance on this system.

>I can connect to oracle by SQL Plus without any problem

please use CUT & PASTE providing proof above is true.

post results from following command

SET

post content of "hosts" file
Re: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor [message #442738 is a reply to message #442668] Wed, 10 February 2010 05:45 Go to previous message
kia_s_ce
Messages: 5
Registered: November 2009
Junior Member
I can connect to oracle by SQL Plus :

SQL*Plus: Release 11.1.0.6.0 - Production on Wed Feb 10 15:11:27 2010

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

Enter user-name: system
Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options

SQL>

************************
hosts file:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost
192.168.1.1 kia kia
Previous Topic: ORA-12535: TNS:operation timed out
Next Topic: ORA-12154: TNS:could not resolve service name
Goto Forum:
  


Current Time: Tue Jul 22 16:23:22 CDT 2014

Total time taken to generate the page: 0.14503 seconds