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
Similar Messages
-
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 -
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)) -
Server OS: Win2k3
DB version: 10.2.0.5
Client OS: Win7
Client version: 11.2.0.1
Server has 3 databases - DEV, TEST, TRAIN.
Getting the error "ORA-12505: TNS:listener does not currently know of SID given in connect descriptor." on both client and server's sqlplus connection when try to connect to TEST. TNSPING TEST on both client and server returns OK. However, LSNRCTL STATUS / SERVICE do not have TEST entry on it.
Following are what's in my LISTENER.ORA on server
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = DEV)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = TEST)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = TRAIN)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = REGISTER))
(ADDRESS = (PROTOCOL = TCP)(HOST = ORCLSVR)(PORT = 1521))
SECURE_REGISTER_LISTENER = (IPC)
Following are what's in my TNSNAMES.ORA on server
TEST.ORCLSVR.XYZ.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
(CONNECT_DATA =
(SID = TEST)
(SERVER = DEDICATED)
DEV.ORCLSVR.XYZ.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
(CONNECT_DATA =
(SID = DEV)
(SERVER = DEDICATED)
TRAIN.ORCLSVR.XYZ.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
(CONNECT_DATA =
(SID = TRAIN)
(SERVER = DEDICATED)
ABCD_PROD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1522))
(LOAD_BALANCE = OFF)
(FAILOVER = OFF)
(CONNECT_DATA =
(SERVICE_NAME = ABCD_PROD)
DEVX.ORCLSVR.XYZ.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1522))
(CONNECT_DATA =
(SID = DEVX)
(SERVER = DEDICATED)
LISTENER_DEVX =
(ADDRESS = (PROTOCOL = TCP)(HOST = ORCLSVR.XYZ.COM)(PORT = 1522))
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
SQLPLUS connection from server
sqlplus [email protected] as sysdba
From client machine, TNSNAMES.ORA entries are:
TESTORCLSVR =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
(CONNECT_DATA =
(SID = TEST)
(SERVER = DEDICATED)
DEVORCLSVR =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
(CONNECT_DATA =
(SID = DEV)
(SERVER = DEDICATED)
TRAINORCLSVR =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
(CONNECT_DATA =
(SID = TRAIN)
(SERVER = DEDICATED)
SQLPLUS from client
sqlplus sys@TESTORCLSVR as sysdba
What am I doing wrong? Why can't I connect?
Thanks!Here are the results
C:\>
C:\>lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.2.0.5.0 - Production on 08-JUL-2013 16:25
:25
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 10.2.0.5.0 - Production
Log messages written to c:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ORCLSVR.XYZ.COM)(PO
RT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.5.0 - Produ
ction
Start Date 08-JUL-2013 16:25:27
Uptime 0 days 0 hr. 0 min. 3 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File c:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ORCLSVR.XYZ.COM)(PORT=1521)))
Services Summary...
Service "TRAIN.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "train", status READY, has 1 handler(s) for this service...
Service "TRAINXDB.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "train", status READY, has 1 handler(s) for this service...
Service "TRAIN_XPT.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "train", status READY, has 1 handler(s) for this service...
The command completed successfully
C:\>LSNRCTL STATUS
LSNRCTL for 32-bit Windows: Version 10.2.0.5.0 - Production on 08-JUL-2013 16:30
:50
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.5.0 - Produ
ction
Start Date 08-JUL-2013 16:25:27
Uptime 0 days 0 hr. 5 min. 23 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File c:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ORCLSVR.XYZ.COM)(PORT=1521)))
Services Summary...
Service "TEST.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Service "TESTXDB.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Service "TEST_XPT.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Service "TRAIN.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "train", status READY, has 1 handler(s) for this service...
Service "TRAINXDB.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "train", status READY, has 1 handler(s) for this service...
Service "TRAIN_XPT.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "train", status READY, has 1 handler(s) for this service...
The command completed successfully
C:\>LSNRCTL SERVICE
LSNRCTL for 32-bit Windows: Version 10.2.0.5.0 - Production on 08-JUL-2013 16:31
:00
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
Services Summary...
Service "TEST.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "TESTXDB.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1002 state:ready
DISPATCHER <machine: ORCLSVR, pid: 1660>
(ADDRESS=(PROTOCOL=tcp)(HOST=ORCLSVR.XYZ.COM)(PORT=1052))
Service "TEST_XPT.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "TRAIN.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "train", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "TRAINXDB.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "train", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1002 state:ready
DISPATCHER <machine: ORCLSVR, pid: 1664>
(ADDRESS=(PROTOCOL=tcp)(HOST=ORCLSVR.XYZ.COM)(PORT=1053))
Service "TRAIN_XPT.ORCLSVR.XYZ.COM" has 1 instance(s).
Instance "train", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
As you can see, 2 / 3 are started and in service - this time missing DEV. And rightly, when I try to connect to DEV, I got the same error. Besides registering static, do you have any suggestions?
Btw, thank you very much for your help. -
when i try to connect oem(oracle enterprise manager)..
on oem console it returns followed error
agent connection to instance
ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
DATABASE INSTANCE DOWN
SID
orcl
Oracle Home
C:\app\user\product\11.2.0\dbhome
in services.msc
oracleagent,client ,oracleservice all are in started..
please let me know how to solve issue..
fyi-oracel 11g,on windows7 ostnsname.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)) -
Hi All,
I am using oracle 11g client library on Linux 64bit machine and trying to connect to oracle database using jdbc thin driver.
The url format what I am trying to use is:
jdbc:oracle:thin:@IP address:port:service_name
When service_name = orcl : I am able to connect with the above syntax.
But when the service_name is having . e.g service_name = orcl.177.39.45, with the above format I get the above error.
If I change the URL syntax to following, it works
jdbc:oracle:thin:@IP address:port/service_name
But both seems to be valid syntax.
So I would like to undestand the reason behind the same.
When service_name is having ".", why ":" does not work and "/" works and when the service_name is without " ." , 1st format works.
Is there any specific reason behind same?
Please let me know,
Thanks,
AaratiHello,
as per the suggetion, I replaced the URL in the format
URL=jdbc:oracle:thin:@15.154.47.235:1521/ORCL
original URL :
URL=jdbc:oracle:thin:@15.154.47.235:1521:ORCL
With this I was able to access the main page and was not getting database access.
But when I tried to perform some operations say list the submitted jobs, our application internally contacts Oracle database and gets the information stored in the database.
its not able to get and it throws exception.
So is there any reason behind this?
Pasting our application logs for your referance
Thu Aug 08 17:03:33 http-0.0.0.0-9000-1: [ERROR] Exception occurred
com.hp.om.hpos.model.OperationException: Error listing jobs
at com.hp.om.hpos.model.DPAUtils.DPAlistJobsInDB(DPAUtils.java:98)
at com.hp.om.hpos.model.DomainGroup.listSubJobsInDB(DomainGroup.java:96)
at com.hp.om.hpos.model.DomainGroup.listSubJobs(DomainGroup.java:91)
at com.hp.om.wc.model.jobmanager.pagingmanager.PagingManager.ListJobs(PagingManager.java:381)
at com.hp.om.wc.webapp.jobmanager.actions.AbstractJobSearchAction.loadSortedJobListing(AbstractJobSearchAction.java:49)
at com.hp.om.wc.webapp.jobmanager.actions.AbstractJobSearchAction.loadJobListing(AbstractJobSearchAction.java:30)
at com.hp.om.wc.webapp.jobmanager.actions.BasicSearchAction.doExecute(BasicSearchAction.java:358)
at com.hp.om.wc.webapp.jobmanager.actions.WCBaseAction.execute(WCBaseAction.java:81)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
~
~
Thanks,
aarati -
I have versions 11.1.1.7.0 and 12c installed and am using Oracle 11g Express on a Windows 7 laptop. Both versions worked fine and then suddenly stopped. I have looked thru all the threads and still cannot figure this out. I have not changed anything recently.
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR fo
ction
Start Date 10-AUG-201
Uptime 0 days 1 h
Trace Level off
Security ON: Local
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclex
dmin\listener.ora
Listener Log File C:\oraclex
alert\log.xml
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
Listener properties
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 = Owner-PC)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
tnsnames properties
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Owner-PC)(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)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 -
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). -
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 -
ORA-12505:TNS listener does not currently know of SID given in Connect desc
Agent Connection to Instance:
Hi All
I got an error :
ORA-12505:TNS listener does not currently know of SID given in Connect descriptor(DBD:Error OCIServerAttach)
Database Instance:
Database instance also not working I am unable to connect to my database.
so please give solution to recovery my database.Hey,
When you are getting this error & where you are getting?
Explain in detail....
Cheers,
Moorthy.GS -
Error-ORA-12505: TNS:listener does not currently know of SID given in conne
Dears,
On our AIX 6.1 server we were having one PI dev(PD1) instance,Now we have installed one PI QAS(PQ1) instance on it.
Now issue is that PD1 is working fine but while starting PQ1 instance it is giving error:
I have also changed port in listner,tnsnames.ora and in configtool to 1526 for PQ1 instance.
Checking PQ1 Database
Database is not available via R3trans
Running /usr/sap/PQ1/SYS/exe/run/startdb
Trying to start PQ1 database ...
Log file: /home/pq1adm/startdb.log
/usr/sap/PQ1/SYS/exe/run/startdb: Terminating with error code 12
DB startup failed
While by SQLPLUS I checked that oracle is up but issue is SAP is not able to connect to oracle.
R3trans -x
This is R3trans version 6.18 (release 710 - 08.10.07 - 13:37:00).
unicode enabled version
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'PQ1'"
R3trans finished (0012).
trans.log says:
ORA-12505: TNS:listener does not currently know of SID given in connect descriptor'
Please suggest.
ShivamDears,
Content of the files are:
tnsnames.ora
PQ1.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = pidev)
(PORT = 1526)
(CONNECT_DATA =
(SID = PQ1)
(GLOBAL_NAME = PQ1.WORLD)
listner.ora
ADMIN_RESTRICTIONS_LISTENER = on
LISTENER =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = PQ1.WORLD)
(ADDRESS=
(PROTOCOL = IPC)
(KEY = PQ1)
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = pidev)
(PORT = 1526)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PQ1)
(ORACLE_HOME = /oracle/PQ1/102_64)
Output of R3trans -x
pidev:pq1adm> R3trans -x
This is R3trans version 6.18 (release 710 - 08.10.07 - 13:37:00).
unicode enabled version
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'PQ1'"
R3trans finished (0012).
Service file entries are:
#pdap-np 1526/tcp # Prospero Data Access Prot non-priv
#pdap-np 1526/udp # Prospero Data Access Prot non-priv
tlisrv 1527/tcp # oracle
tlisrv 1527/udp # oracle
tlisrv 1526/tcp
tlisrv 1526/udp
trans.log contains:
4 ETW000 [dboci.c ,00000] *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12505
4 ETW000 55 0.017769
4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '12505'
4 ETW000 52 0.017821
4 ETW000 [dev trc ,00000] set_ocica() -> OCI or SQL return code 12505 31 0.017852
4 ETW000 [dev trc ,00000] OCIErrorGet -> SQL error code: 0 70 0.017922
4 ETW000 [dev trc ,00000] error text: 'ORA-12505: TNS:listener does not currently know of SID given in connect descriptor'
4 ETW000 48 0.017970
4 ETW000 [dblink ,00000] ***LOG BY2=>sql error 12505 performing CON 71 0.018041
4 ETW000 [dblink ,00000] ***LOG BY0=>ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
4 ETW000 61 0.018102
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'PQ1'"
Please suggest.
Shivam -
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/ -
ORA-12505:TNS:listener does not currently know of SID given in connect scri
Hi
I have installed Oracle 10g on Windows XP SP2 and i m new to Oracle 10g.
In Oracle Enterprise manager I have
1. database instance Down
2. Listener is UP
3. Agent Connection to Instance is Down and giving an error
ORA-12505: TNS:listener does not currently know of SID given in connect scriptor (DBD ERROR: OCIServerAttach)
I m unable to connect through sql*plus command window it gives protocol adapter error
But I am able to connect through windows command prompt
but each time when i connect through it i have to set sid by command
set ORACLE_SID=orcl10g
I m also not able to use isqlplus
what should i do
pleease help meCheck to make sure that the SID specified is correct. The SIDs that are currently registered with the listener can be obtained by typing "LSNRCTL SERVICES ". These SIDs correspond to SID_NAMEs in TNSNAMES.ORA, or db_names in INIT.ORA.
*Comment: This error will be returned if the database instance has not registered with the listener; the instance may need to be started. -
Hi Folks
Application cloning is failing with "ORA-12505: TNS:listener does not currently know of SID given in connect"
Database cloning is completed successfuly . database cloned in two nodes node1 and node2
Now cloning applicatino tier with above cloned database nodes but faicing above issue .
ThanksThere are many reasons why an ORA-12505 might be raised at applications cloning. For anyone on this board to assist, you will have to post the log file detail or list the clone execution file which raises this exception.
Thanks,
Arif. -
EM arise this error ORA-12505: TNS:listener does not currently know of SID
I have installation of Oracle 10g server on win 2k3 OS. This installation was done from the other. Now it in EM Agent Connection to Instance doesn't work and i received this error:
ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
I have tried to understand: listener.ora, sqlnet.ora and tnsnames.ora but it's unclear, I'm a beginner in Oracle field.
here i'll paste listener.ora content:
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = LNZ-PEOPLESOFT)(PORT = 1521))
content tnsnames.ora
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
PS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = LNZ-PEOPLESOFT)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PS)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = LNZ-PEOPLESOFT)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
i'll give and reslult after execute lsnrctl status:
C:\>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 18-JUL-2012 15:07
:44
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=LNZ-PEOPLESOFT)(PORT=152
1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 18-JUL-2012 14:32:44
Uptime 0 days 0 hr. 35 min. 2 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=LNZ-PEOPLESOFT.microfocus.com)(PORT=
1521)))
Services Summary...
Service "PS_XPT" has 1 instance(s).
Instance "ps", status READY, has 1 handler(s) for this service...
Service "ps" has 1 instance(s).
Instance "ps", status READY, has 1 handler(s) for this service...
The command completed successfully
C:\>lsnrctl service
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 18-JUL-2012 15:08
:34
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=LNZ-PEOPLESOFT)(PORT=152
1)))
Services Summary...
Service "PS_XPT" has 1 instance(s).
Instance "ps", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "ps" has 1 instance(s).
Instance "ps", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
I can login in sqlplus with as sysdba and with system/manager
Thank you in advanceI have compare listener.ora and tnsnames.ora but there using host name of the machine. On the machines Firewall is disabled
listener.ora
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = LNZ-PEOPLESOFT)(PORT = 1521))
tnsnames.ora
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
PS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = LNZ-PEOPLESOFT)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PS)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = LNZ-PEOPLESOFT)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
Maybe you are looking for
-
Download trial version for mac
22 Hours and still no reply, seriously???? Hi, I am i can't seem to reply to the initial message. I tried the instructions below, but the download has been hanging for almost an hour and not progressing at all - so it seems to not be working...any o
-
LR3 to LR4 upgrade from PC to mac
i have LR3 installed in my windows based PC, i just got an imac and want to install LR4, can i just purchase an "upgrade" instead of buying the "full" version?
-
Problem in calling Bounded Taskflow
Hi All, I have two bounded task flows, I am calling second task flow from first The code for calling the second task flow is-- <task-flow-call id="CreateOrder"> <task-flow-reference> <document>/WEB-INF/dms/ui/transaction/flow/CreateUpdateOrderFlow.xm
-
Shared_pool_size in 9i
Oracle: 9.2 Does the value specified by SHARED_POOL_SIZE init parameter indicate the maximum memory to be allocated by Oracle for shared pool or the initial? When I do "show parameter shared_pool_size" I see the size as 50MB but when I do "select sum
-
Syncing photo stream with all iOS
Hello, Not sure if I am doing something worong or misunderstand what photo streaming's abilities are. I have turned on Photo Streaming with my iMac, iPhone and iPad. When looking at the Photo Stream folder on the iPhone, how do I get that same fold