TNS:listener was not given the SID in CONNECT_DATA
Hi Experts,
I would like share my current issues that might you have this.
Currently we have 1 external application that need to connect to oracle DB.
The input are 3 things, database type (oracle), servername, DB username and password.
I have created another SID on my DB. so 1 oracle running 2 SID.
My tnsname.ora would be:
NKD.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY = SAP.WORLD)(PROTOCOL = TCP)(HOST = vdhsnkd)(PORT = 1527))
(CONNECT_DATA =
(SID = NKD)
(GLOBAL_NAME = NKD.WORLD)
NKD_ORG.WORLD =
(DESCRIPTION =
(ADDRESS = (COMMUNITY = SAP.WORLD)(PROTOCOL = TCP)(HOST = vdhsnkd)(PORT = 1527))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = NKDORG)
(SERVICE_NAME = NKD_ORG)
(GLOBAL_NAME = NKD_ORG.WORLD)
LISTENER_NKDORG.WORLD =
(ADDRESS = (COMMUNITY = SAP.WORLD)(PROTOCOL = TCP)(HOST = vdhsnkd)(PORT = 1527))
and my listener.ora
ADR_BASE_LISTENER_NKDORG = /oracle
SID_LIST_LISTENER_NKD =
(SID_LIST =
(SID_DESC =
(SID_NAME = NKD)
(ORACLE_HOME = /oracle/NKD/112_64)
CONNECT_TIMEOUT_LISTENER_NKD = 10
LISTENER_NKDORG =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = vdhsnkd)(PORT = 1521))
STARTUP_WAIT_TIME_LISTENER_NKD = 0
ADMIN_RESTRICTIONS_LISTENER_NKD = on
LISTENER_NKD =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = NKD.WORLD))
(ADDRESS = (PROTOCOL = IPC)(KEY = NKD))
(ADDRESS = (COMMUNITY = SAP.WORLD)(PROTOCOL = TCP)(HOST = vdhsnkd)(PORT = 1527))
TNSping successfull, lsnrctl status have The listener supports no services.
I can connect to DB via sqlplus.
But everytime the apps try to connect always given me: TNS:listener was not given the SID in CONNECT_DATA
Hello;
I think the issue is here, using both a service_name and a SID.
NKD_ORG.WORLD =
(DESCRIPTION =
(ADDRESS = (COMMUNITY = SAP.WORLD)(PROTOCOL = TCP)(HOST = vdhsnkd)(PORT = 1527))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = NKDORG)
(SERVICE_NAME = NKD_ORG)
(GLOBAL_NAME = NKD_ORG.WORLD)
)SID missing from the CONNECT_DATA
NKD_ORG.WORLD =
(DESCRIPTION =
(ADDRESS = (COMMUNITY = SAP.WORLD)(PROTOCOL = TCP)(HOST = vdhsnkd)(PORT = 1527))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = NKDORG)
(SERVICE_NAME = NKD_ORG)
(GLOBAL_NAME = NKD_ORG.WORLD)
)should be
(CONNECT_DATA =
(SERVICE_NAME = NKD_ORG)
) You have (SERVER = DEDICATED) and (SID = NKDORG) between
In any event this is almost always an issue with the tsnames.ora file.
http://docs.oracle.com/cd/B19306_01/win.102/b14307/featConnecting.htm#sthref114
About Naming and Connect descriptors :
http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/concepts.htm#i1041378
http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/naming.htm#sthref683
Worth checking the parameter "local_listener" I'm thinking this should be set default.
Also check lsnrctl status and/or restart/start the listener
TROUBLESHOOTING GUIDE TNS-12518 TNS listener could not hand off client connection [ID 550859.1]
Best Regards
mseberg
Edited by: mseberg on Apr 5, 2012 5:39 AM
Edited by: mseberg on Apr 5, 2012 7:07 AM
Similar Messages
-
Hi Guys,
I got this already discussed error and I am sorry, to start a new topic, but I just have no idea what to do else.
I have oracle11g - 32 bit running on my Windows 7 64 bit machine.
The database-server is running fine according to the Database-Control Webinterface.
Connecting with SQLPlus also works
Now my application tries to connect to
Server: localhost
Database: orcl
User: System
PW: myPw
I get: ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
I was reading many threads here and so I tried to configure the standard-listener using the netmanager with an additional SID named "orcl" which results in this listener.ora:
Line: -----
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = E:\app\Andinger\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:E:\app\Andinger\product\11.2.0\dbhome_1\bin\oraclr11.dll")
(SID_DESC =
(GLOBAL_DBNAME = Oracle8)
(SID_NAME = ORCL)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Andband)(PORT = 1521))
ADR_BASE_LISTENER = E:\app\Andinger
Line: -----
This is my tnsnames.ora
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Andband)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
Line: -----
What else could I check? What else could be the reason, that it doesn't work.
I appreciate any help, suggestins, hints... :)
Thanks
Andy
Edited by: 943829 on 01.07.2012 04:56
Edited by: 943829 on 01.07.2012 04:57Thanks for your fast reply!
Attached all the stuff you asked for:
First the result of tnsping:
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 01-JUL-2
012 19:19:33
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Parameterdateien benutzt:
E:\app\Andinger\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Adapter EZCONNECT zur Aufl÷sung des Alias benutzt
Verbindungsversuch mit (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROT
OCOL=TCP)(HOST=fe80::341a:eb0:3f57:ff6d%13)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(H
OST=192.168.0.146)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=2001:0:5ef5:79fb:341a
:eb0:3f57:ff6d)(PORT=1521)))
OK (20 ms)
This is the content of sqlnet.ora
# sqlnet.ora Network Configuration File: E:\app\Andinger\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
The status of the Listener:
C:\Users\Andinger>lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 01-JUL-2012 19:23
:25
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Anmeldung bei (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=Andband)(PORT=1521)))
STATUS des LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Startdatum 01-JUL-2012 13:07:18
Uptime 0 Tage 6 Std. 16 Min. 7 Sek.
Trace-Ebene off
Sicherheit ON: Local OS Authentication
SNMP OFF
Parameterdatei des Listener E:\app\Andinger\product\11.2.0\dbhome_1\network\admi
n\listener.ora
Log-Datei des Listener e:\app\andinger\diag\tnslsnr\Andband\listener\alert\lo
g.xml
Zusammenfassung Listening-Endpunkte...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Andband)(PORT=1521)))
Services ▄bersicht...
Dienst "CLRExtProc" hat 1 Instanzen.
Instanz "CLRExtProc", Status UNKNOWN, hat 1 Handler f³r diesen Dienst...
Dienst "Oracle8" hat 1 Instanzen.
Instanz "ORCL", Status UNKNOWN, hat 1 Handler f³r diesen Dienst...
Dienst "orcl" hat 1 Instanzen.
Instanz "orcl", Status READY, hat 1 Handler f³r diesen Dienst...
Dienst "orclXDB" hat 1 Instanzen.
Instanz "orcl", Status READY, hat 1 Handler f³r diesen Dienst...
Der Befehl wurde erfolgreich ausgef³hrt.
And the Listener Service information:
C:\Users\Andinger>lsnrctl service
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 01-JUL-2012 19:24
:37
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Anmeldung bei (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=Andband)(PORT=1521)))
Services ▄bersicht...
Dienst "CLRExtProc" hat 1 Instanzen.
Instanz "CLRExtProc", Status UNKNOWN, hat 1 Handler f³r diesen Dienst...
Handler:
"DEDICATED" eingerichtet:0 abgewiesen:0
LOCAL SERVER
Dienst "Oracle8" hat 1 Instanzen.
Instanz "ORCL", Status UNKNOWN, hat 1 Handler f³r diesen Dienst...
Handler:
"DEDICATED" eingerichtet:12 abgewiesen:0
LOCAL SERVER
Dienst "orcl" hat 1 Instanzen.
Instanz "orcl", Status READY, hat 1 Handler f³r diesen Dienst...
Handler:
"DEDICATED" festgelegt:371 abgelehnt:0 Status:ready
LOCAL SERVER
Dienst "orclXDB" hat 1 Instanzen.
Instanz "orcl", Status READY, hat 1 Handler f³r diesen Dienst...
Handler:
"D000" eingerichtet:0 abgewiesen:0 aktuell:0 max:1022 Status:ready
DISPATCHER <machine: ANDBAND, pid: 3980>
(ADDRESS=(PROTOCOL=tcp)(HOST=Andband)(PORT=49189))
Der Befehl wurde erfolgreich ausgef³hrt.
I hope that you understand it. I installed a german version. If it is a problem, I can install the english version. -
ORA-12504 tns listener was not given the SERVICE_NAME in CONNECT-DATA
Hi
i installed a fresh oracle linux and installes 11.2.0 database server. the server works fine but i have a proplem to connect to the database from a windows 2008 r2
client. For the client connection i installed the oracle instantclient on the windows system. Now i want to configure the system dsn to connect to the oracle
server like this
data source description: vSphere 64
description: ----
TNS Service Name: VCDB
user id: system
then i go to TEST connection
Service Name: VCDB
user name: system
Password: mypassword
so i copied the tnsnames.ora from the server to the client
then i get
ora-12504 tns listener was not given the SERVICE_NAME in CONNECT-DATA
here´s my tnsnames.ora from the client
VCDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.31.98.173)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = vcdb.vmware)
i tested serveral config´s but nothing works. I can ping the server and also i cn telnet the server on port 1521. The listener on the server works fine
lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 20-SEP-2010 20:48:52
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=vc-db1.mydomain)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 20-SEP-2010 20:47:45
Uptime 0 days 0 hr. 1 min. 7 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/vc-db1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=vc-db1mydomain)(PORT=1521)))
Services Summary...
Service "vcdb.vmware" has 1 instance(s).
Instance "vcdb", status READY, has 1 handler(s) for this service...
Service "vcdbXDB.vmware" has 1 instance(s).
Instance "vcdb", status READY, has 1 handler(s) for this service...
The command completed successfully
but it´s not possible to create a connection to the server. My enviroment variables are this
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
ORACLE_HOSTNAME=vc-db1.mydomain
ORACLE_SID=vcdb
ORACLE_TERM=xterm
so i think on the server site everything is correct. How could i establish a connection from the windows client
to the linux database server. Or is ODBC the wrong method for this?
Kind regards
ACID25Hi,
Check the listener log and see if the connection information is logged (in this case with error)
If logged, then we are reaching the correct listener.
Then check tnsping VCDB works fine along with sqlplus connection through listener using VCDB as connect string.
If above both works, then issue can be isolated to ODBC configuration or setup issue.
In case even if the tnsping / sqlplus is failing to connect with VCDB, then worth taking a client sqlent trace at level 16 and listener trace at level 16 to analyse the issue further.
Thanks,
Sathya -
I was not given the option to purchase applecare + with iPhone 5.I tried calling Apple customer service, the automated process took my info but then came back and said too busy to help you now. How can I buy it now?
You should call Apple but you should get an email from Apple. I got one a few minutes ago and this is what they said about AppleCare+ :
Thank you for your recent iPhone 5 purchase at the Apple Store.
We would like to let you know that every iPhone comes with one year of hardware repair coverage through its limited warranty and up to 90 days of complimentary support. AppleCare+ for iPhone extends your coverage to two years from the original purchase date of your iPhone and adds up to two incidents of accidental damage coverage, each subject to a $49 service fee.
We noticed you weren't given the opportunity to add AppleCare+ to your iPhone. If you would like to extend your coverage for only $99, please reply to this email by September 21st.
After that date, if you would still like to purchase AppleCare+ within the first thirty days of receiving your iPhone, you can call AppleCare at 800-MY-IPHONE or visit an Apple Retail Store.
Thank you for shopping with Apple.
Sincerely,
Apple Online Store Team -
I need to update my preinstalled iPhoto in my MacBook Pro, how ever i was not issued with the password needed for updating.
AppStore software and the free iLife included on new Mac's is copy protected and can only be updated or reinstalled (free) by the original owner.
If you bought the machine used or a "open box", the original owner should have wiped the Macintosh HD partition and just reinstalled OS X, but many don't do that or what occurs is the store reinstalls OS X free and then free iLife using their AppleID.
So when it comes time to update it, you can't because you have a different AppleID and password.
It's terrible hassle with all this mega-copy protection shenanigans because it allows someone to sell you a used Mac with tons of software for more money you later can't update for security issues and compatibly with newer OS X versions.
So you can either to choose to use it as is, or wipe and reinstall OS X and then buy a copy of the software, then it will be in your name. -
HT5035 I was not given the full amount of credit when I redeemed my gift card now what ?
I just redeemed a $15 gift card and was credited with 6.45. What do I do?
iPhone 4 does not support turn by turn directions. Only 4S and 5. Sorry..
-
Hi,
I have just loaded Oracle 10g Rel 2 in Win 2003 Enterprise Edition.
But when I try to connect to sqlplus, I am getting ORA -12154 : TNS: Listener could not resolve the connect identified specified.
I have registered the database, the listener and tnsnames have been set correctly.
I have also set the Oracle Home environment variable.
Still getting the error.
Any help will be highly appreciated.
Thanks,I agree
ORA-12145: (does not exist in the standard manuals)
ORA-12154: TNS:could not resolve the connect identifier specified
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
ORA-12541: TNS:no listener
It is pretty easy to fat-finger these 4 message numbers. As a result, when a person has the actual and complete error message and an error number for a different message, it is usually not a bad idea to use the actual message. (Based on transposing only 3 digits compared to typing over 50 characters correctly.)
In this case the OP has really bollixed things: Subject implies a true 12154, text in the thread is an actual 12514 but mentions 12154.
As a result, there are several potentially correct answers, depending on the interpretation of the question.
- sb92075 gave the correct answer based on the number
- I gave the correct answer based on the message in the thread
- Anurag and Ed gave the correct answer based on 'the question is not formed correctly'
Edited by: Hans Forbrich on Jan 24, 2010 7:13 AM
(BTW - ORA-12415 and ORA-12451 are the other permutations ... described http://download.oracle.com/docs/cd/B19306_01/server.102/b14219/e12400.htm#sthref3357) -
When I close FF 3.6.22 I am not given the option to save multiple tabs.
I run FF both at home and at work. I am still running 3.6.2x in both places because I've not been happy with the later versions. At work this morning, FF restarted and updated to 3.6.22. When I went to close FF at the end of the day, with my usual 5 tabs open, I was not given the option to save my tabs. This is one of the main reasons that I uninstalled 4, and have not installed anything else. This is an extremely important feature for me and I would like to know how to recover this ability.
See item #31 [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#tabslost Restoring tabs from a lost session] (#tabslost)
in the following
You can make '''Firefox 6.0.2''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
* http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface
There is a lot more beyond those first 10 steps listed, if you want to make Firefox more functional.
<br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small> -
From sql developer I am trying to connect to database in my local machine. It shows the following below error. Any suggestions?
An error was encountered performing the requested operation:
Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Vendor code 12505lsnrctl results are as shown below
C:\Users\ndodd_000>lsnrctl status
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 18-AUG-2013 17:40
:25
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 18-AUG-2013 15:29:41
Uptime 0 days 2 hr. 10 min. 50 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\ndodd_000\product\11.2.0\dbhome_1\network\admin
\listener.ora
Listener Log File c:\app\ndodd_000\diag\tnslsnr\Vamsi\listener\alert\log
.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(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...
Service "sysdba" has 1 instance(s).
Instance "sysdba", status READY, has 1 handler(s) for this service...
Service "sysdbaXDB" has 1 instance(s).
Instance "sysdba", status READY, has 1 handler(s) for this service...
The command completed successfully
lsnrctl service results
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 18-AUG-2013 17:
:20
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
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
Service "sysdba" has 1 instance(s).
Instance "sysdba", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:186 refused:0 state:ready
LOCAL SERVER
Service "sysdbaXDB" has 1 instance(s).
Instance "sysdba", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: VAMSI, pid: 904>
(ADDRESS=(PROTOCOL=tcp)(HOST=Vamsi)(PORT=49237))
The command completed successfully -
Error ORA-12505, TNS:listener does not currently know of SID given in co
Hi ,
When I am running the jdeveoper for my adf application , I am getting the follwoing error:
starting weblogic with Java version:
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
weblogic.common.ResourceException: weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
=================================================
I am using scott as the dabase name i.e. SID is scott and jdev version is 11.1.1.2, I am able to connect to scott database using sqlplus. e.g. hr/hr@scott is working fine in sqlplus.
Any suggestions
Thanks in advanceThanks for the response Frank,
I got this issue resolved, I did find out that there were 2 db connections were there , One Connection I name was Scott and other as FOD. Scott had correct SID, and FOD had incorrect SID as XE. So I deleted the FOD Connection. and renamed the Scott Connection to FOD( SID is still Scott). -
Hi all,
My System:
ColdFusion MX
Version 7,0,2
Windows 2003
Oracle 10G
tnsnames.ora
ABC.WORLD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = fds1611.HHS.com)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = abc)
This is how I setup in the CF Administrator:
CF Data Source: myDataSource
JDBC URL: jdbc:oracle:thin:@fds1611.HHS.com:1521:ABC
Driver Class: oracle.jdbc.OracleDriver
It is used to run fine with Oracle9; we upgraded to Oracle10G. I wonder if that is the caused? What I need to do. Please help!
I am able to connect to the database using Toad/SQL+, so I think tnsnames/Listener is fine.
Error Msg:
Connection verification failed for data source: myDataSource
java.sql.SQLException: 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: fds1611.HHS.com:1521:ABC
The root cause was that: java.sql.SQLException: 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: fds1611.HHS.com:1521:ABC
Thanks!tnsname.ora......
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = host)(PORT = 1521))
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = host)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
listner.ora...........................
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\user\product\11.2.0\d_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\user\product\11.2.0\d_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = host)(PORT = 1521)) -
TNS:listener does not currently know of SID given in connect descriptor
Hi
I have installed 11g on Windows 7, the startup & shutdown of DB is normal.
But connecting to a particular DB is giving a problem:
ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
in the listener.ora following entry is made:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = sid_test)
(ORACLE_HOME =$ORACLE_HOME)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = sid_test)
(ORACLE_HOME = $ORACLE_HOME)
(SID_NAME = orcl_test)
LIST1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
Also tried using ALTER SYSTEM REGISTER;
still there is no connection being established.
following outputs i am getting while connecting:
SQL> connect test_db@tns_test
Enter password:
ERROR:
ORA-12505: TNS:listener does not currently know of SID given in connect
descriptor
Warning: You are no longer connected to ORACLE.
While running lsnrctl status command, following error is appearing:
C:\Windows\system32> lsnrctl status list1
LSNRCTL for 32-bit Windows: Version 11.1.0.6.0 - Production on 28-SEP-2012 10:35
:38
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
Alias list1
Version TNSLSNR for 32-bit Windows: Version 11.1.0.6.0 - Produ
ction
Start Date 28-SEP-2012 10:29:40
Uptime 0 days 0 hr. 5 min. 58 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File XXXXXXXXXXXXXXXXXXXXXXXXXXXX\listener.ora
Listener Log File XXXXXXXXXXXXXXXXXXXXX\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
The listener supports no services
The command completed successfully
Please help...!!!Hi Niket,
Thanks for the reply, i tried following as well in the listener file (still the error persistes):
list1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = sid_test)
(ORACLE_HOME =$ORACLE_HOME)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = sid_test)
(ORACLE_HOME = $Oracle_home)
(SID_NAME = sid_test)
The tnsnames.ora entry:
tns_test =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SID = sid_test)
) -
ORA-12505, TNS:listener does not currently know of SID given in connect des
Hello,
After installation of Oracle Database Express Edition 11g and Oracle SQL Developer 3.0, I tryed connect a database.
Informations entered :
Nom de connexion : xe_sys
Nom utilisateur : sys
Mdp : *********
Type de connexion : de base, role sysdba
Nom d'hote : POST1.compteUs.local
Port : 1521
SID : XE
when I tested the connection I have this famous message that appears:
Statut : échec -Echec du test : Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
this is listener.ora :
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = POST1.compteUs.local)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
this is sqlnet.ora :
SQLNET.AUTHENTICATION_SERVICES = (NTS)
this is tnsname.ora :
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = POST1.compteUs.local)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
Can you help me please ?
ThanksThanks of help.
here, commande 'lsnrctl stat' executed :
LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 10-OCT. -2012 08:
40:29
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Produ
ction
Start Date 10-OCT. -2012 03:30:05
Uptime 0 days 5 hr. 10 min. 24 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\listener.ora
Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\POST1\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=POST1.compteUs.local)(PORT=1521)
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
So, I tryed :
Informations entered :
Nom de connexion : test
Authentification OS
Type connection : de base, role sysdba
host name : POST1.compteUs.local
Port : 1521
Service name : XE
And this is message erreur :
Statut : échec -Echec du test : Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor -
Error ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
I have a java code that tries to connect to my oracle database.Below given the code snippet.
I am getting error when I ran this code.
Java code.
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class jdbc {
public static void main(String[] args) {
try {
Class.forName("oracle.jdbc.OracleDriver");
} catch (ClassNotFoundException e) {
e.printStackTrace();
return;
Connection connection = null;
try {
connection = DriverManager.getConnection(
"jdbc:oracle:thin:@localhost:1521:XE", "SCOTT",
"password");
} catch (SQLException e) {
e.printStackTrace();
return;
Error I am getting is
java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Can Someone explain me what is wrong here?Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ip
(DESCRIPTION=(ADDRESS=(PROTOCOL=tc
Services Summary...
Service "CLRExtProc" has 1 instance(
Instance "CLRExtProc", status UNKN
Service "PLSExtProc" has 1 instance(
Instance "PLSExtProc", status UNKN
The command completed successfully
Obviously there is no handler for XE service.
Maybe you changed hostname(this should be "Owner-PC") ?
Try to manually start/stop db and see if there are some errors:
sqlplus / as sysdba
startup
shutdown immediate
If after that you still can't find cause, try to ask on oracle db forum.
Dario -
ORA-12505: TNS:listener does not currently know of SID given in connect
hi Dears,
i had insatlled new 11g on my Linux centios 5 system for testing purpose. when i started oem i can see agent is down but when i checked the agent status its saying below messages. i'm new to oracle . please guide me.
oracle11@test bin]$ ./emctl status agent
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
Agent Version : 10.2.0.4.2
OMS Version : 10.2.0.4.2
Protocol Version : 10.2.0.4.2
Agent Home : /sd01/oracle11/app/product/11.2.0/dbhome_1/test_training11
Agent binaries : /sd01/oracle11/app/product/11.2.0/dbhome_1
Agent Process ID : 4206
Parent Process ID : 4181
Agent URL : https://test:1830/emd/main
Repository URL : https://test:5500/em/upload/
Started at : 2011-11-21 14:30:21
Started by user : oracle11
Last Reload : 2011-11-21 14:36:23
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 762
Size of XML files pending upload(MB) : 16.39
Available disk space on upload filesystem : 77.21%
Data channel upload directory : /sd01/oracle11/app/product/11.2.0/dbhome_1/test_training11/sysman/recv
Last attempted heartbeat to OMS : 2011-11-21 15:11:09
Last successful heartbeat to OMS : unknown
Agent is Running and Ready
from OEM
* Agent Connection to Instance
Status Failed
Details ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
i had restarted the listener
oracle11@test admin]$ lsnrctl start LISTENER_1
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-NOV-2011 15:05:16
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /sd01/oracle11/app/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /sd01/oracle11/app/product/11.2.0/dbhome_1/network/log/listener_1.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1523)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.25.151)(PORT=1523)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1523)))
STATUS of the LISTENER
Alias LISTENER_1
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 21-NOV-2011 15:05:16
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /sd01/oracle11/app/product/11.2.0/dbhome_1/network/log/listener_1.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1523)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.25.151)(PORT=1523)))
The listener supports no services
The command completed successfully
in this server i have 10g home but in the different filesystem : /home/oracle/oracle/product/10.2.0/db_2
11g home : /sd01/oracle11/app/product/11.2.0/dbhome_1
as per the agent messages i thought to add SID LIST in listner but got error message when i start the listener.ora below listener.ora details
# listener.ora Network Configuration File: /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER_1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1523))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.25.151)(PORT = 1523))
SID_LIST_LISTENER_1 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = training11)
(ORACLE_HOME = /sd01/oracle11/app/product/11.2.0/dbhome_1)
(SID_NAME = training11)
(SID_DESC =
(GLOBAL_DBNAME = orcl11)
(ORACLE_HOME = /sd01/oracle11/app/product/11.2.0/dbhome_1)
(SID_NAME = orcl11)
ADR_BASE_LISTENER_1 = /sd01/oracle11/app
when i ran lsnrctl start LISTENER_1 i got below messages could any one please help me to solve this problem. my aim is when i start oem everything should work rightnow agent is down
[oracle11@test bin]$ lsnrctl start LISTENER_1
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-NOV-2011 15:27:38
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /sd01/oracle11/app/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /sd01/oracle11/app/product/11.2.0/dbhome_1/network/log/listener_1.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1523)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.25.151)(PORT=1523)))
TNS-01155: Incorrectly specified SID_LIST_LISTENER_1 parameter in LISTENER.ORA
NL-00303: syntax error in NV string
NL-08014: Failed to initialize Diagnosability framework, falling back to old network tracing/logging
NL-08002: Diagnosability context creation failed
thanks ,
johnJohnvd wrote:
hi Dears,
i had insatlled new 11g on my Linux centios 5 system for testing purpose. when i started oem i can see agent is down but when i checked the agent status its saying below messages. i'm new to oracle . please guide me.
oracle11@test bin]$ ./emctl status agent
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
Agent Version : 10.2.0.4.2
OMS Version : 10.2.0.4.2
Protocol Version : 10.2.0.4.2
Agent Home : /sd01/oracle11/app/product/11.2.0/dbhome_1/test_training11
Agent binaries : /sd01/oracle11/app/product/11.2.0/dbhome_1
Agent Process ID : 4206
Parent Process ID : 4181
Agent URL : https://test:1830/emd/main
Repository URL : https://test:5500/em/upload/
Started at : 2011-11-21 14:30:21
Started by user : oracle11
Last Reload : 2011-11-21 14:36:23
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 762
Size of XML files pending upload(MB) : 16.39
Available disk space on upload filesystem : 77.21%
Data channel upload directory : /sd01/oracle11/app/product/11.2.0/dbhome_1/test_training11/sysman/recv
Last attempted heartbeat to OMS : 2011-11-21 15:11:09
Last successful heartbeat to OMS : unknown
Agent is Running and Ready
from OEM
* Agent Connection to Instance
Status Failed
Details ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
i had restarted the listener
oracle11@test admin]$ lsnrctl start LISTENER_1
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-NOV-2011 15:05:16
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /sd01/oracle11/app/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /sd01/oracle11/app/product/11.2.0/dbhome_1/network/log/listener_1.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1523)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.25.151)(PORT=1523)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1523)))
STATUS of the LISTENER
Alias LISTENER_1
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 21-NOV-2011 15:05:16
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /sd01/oracle11/app/product/11.2.0/dbhome_1/network/log/listener_1.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1523)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.25.151)(PORT=1523)))
The listener supports no services
The command completed successfully
in this server i have 10g home but in the different filesystem : /home/oracle/oracle/product/10.2.0/db_2
11g home : /sd01/oracle11/app/product/11.2.0/dbhome_1
as per the agent messages i thought to add SID LIST in listner but got error message when i start the listener.ora below listener.ora details
# listener.ora Network Configuration File: /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER_1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1523))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.25.151)(PORT = 1523))
SID_LIST_LISTENER_1 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = training11)
(ORACLE_HOME = /sd01/oracle11/app/product/11.2.0/dbhome_1)
(SID_NAME = training11)
(SID_DESC =
(GLOBAL_DBNAME = orcl11)
(ORACLE_HOME = /sd01/oracle11/app/product/11.2.0/dbhome_1)
(SID_NAME = orcl11)
ADR_BASE_LISTENER_1 = /sd01/oracle11/app
when i ran lsnrctl start LISTENER_1 i got below messages could any one please help me to solve this problem. my aim is when i start oem everything should work rightnow agent is down
[oracle11@test bin]$ lsnrctl start LISTENER_1
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-NOV-2011 15:27:38
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /sd01/oracle11/app/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /sd01/oracle11/app/product/11.2.0/dbhome_1/network/log/listener_1.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1523)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.25.151)(PORT=1523)))
TNS-01155: Incorrectly specified SID_LIST_LISTENER_1 parameter in LISTENER.ORA
NL-00303: syntax error in NV string
NL-08014: Failed to initialize Diagnosability framework, falling back to old network tracing/logging
NL-08002: Diagnosability context creation failed
thanks ,
johnhttp://edstevensdba.wordpress.com/2011/03/19/ora-12514/
Maybe you are looking for
-
We are using the ADF polling component to execute/monitor a long running job of generating 2,600 reports on the server. The component needs to do about 260 iterations at the interval of 20 secs, in each interval it generates 10 reports. It does about
-
Hi, my creative micro photo (8gb) isn't connecting to the desktop. Every time time I turn it on, it sends me straight to creative logo and gets frozen. When I make it go to the Recovery Mode, it gets frozen when I click on reboot. When I click on Cle
-
HT4972 Can i use my ipad in ireland
I live in las vegas. I'm going to Ireland for the summer. Will my ipad work? I bought new last xmas 2011
-
Setting Application level Transaction Timeout
Hi, I have seen option in weblogic to set jta transaction time out. Is there a way I specify application level timeout. Thanks, Bhargav.
-
I have a problem with activation my iPhone 4.
Hello. Case 71290. I have a problem with activation my iPhone 4. I have bought the iPhone in a internet-shop one week ago and update iOS 7.1.1 yesterday. After update iPhone has an activation screen and asks previous owner's Apple ID and Password. I