Cannot connect: ORA-12505 error (listener does not know SID..)
I have an Oracle 10g installation insde a VM with private IP (192.168.109.128) and I'm trying to access it from the host operating system with aqua data studio, but get ORA-12505 error (listener does not currently know of SID...). The identical error occurs if I try to cennect from within the VM itself.
"tnsping dbdemo" prints:
==================
Used parameter files:
C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = VMDSINW2K3S)(PORT = 1521)) (CONNECT_DATA =
(SERVER = DEDICATED) (SERVICE_NAME = dbdemo.datadsin)))
OK (10 msec)
and lsnrctl status:
=============
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 12-MAR-2007 15:22:55
Uptime 0 days 0 hr. 5 min. 14 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=VMDSINW2K3S)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
and the listener.log:
===============
12-MAR-2007 15:29:21 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1325)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
12-MAR-2007 15:29:21 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1327)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
12-MAR-2007 15:29:21 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1328)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
12-MAR-2007 15:29:45 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1331)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
12-MAR-2007 15:29:51 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1335)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
12-MAR-2007 15:29:51 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1336)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
12-MAR-2007 15:29:51 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1338)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
12-MAR-2007 15:29:51 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1339)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
my sqlnet.ora is:
============
# sqlnet.ora Network Configuration File: C:\oracle\product\10.2.0\db_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)
12514, 00000, "TNS:listener does not currently know of service requested in connect descriptor"
// *Cause: The listener received a request to establish a connection to a
// database or other service. The connect descriptor received by the listener
// specified a service name for a service (usually a database service)
// that either has not yet dynamically registered with the listener or has
// not been statically configured for the listener. This may be a temporary
// condition such as after the listener has started, but before the database
// instance has registered with the listener.
// *Action:
// - Wait a moment and try to connect a second time.
// - Check which services are currently known by the listener by executing:
// lsnrctl services <listener name>
// - Check that the SERVICE_NAME parameter in the connect descriptor of the
// net service name used specifies a service known by the listener.
// - If an easy connect naming connect identifier was used, check that
// the service name specified is a service known by the listener.
// - Check for an event in the listener.log file.
Similar Messages
-
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 -
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)) -
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 -
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
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/ -
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). -
Test failed: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptorThe error means it is connecting to a server with Oracle on it but it does not know of a database with the SID you have supplied.
You say "Test failed" - are you talking about the Create Database Connection dialog?
If so then check the values in the Host Name and SID boxes. If you have a DBA then verify these are the correct values (also check the listener port with him/her, normally 1521).
Is your SID just a single word or with dots e.g. of the form mydb.mycompany.world? If the latter then try using the Service Name rather than the SID.
Kevin -
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 -
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)
) -
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 -
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. -
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.
Maybe you are looking for
-
How can we change the existing package details of a report
I am having one repor. For that program I was saved in $tmp package. Now I need to change my packge from $tmp to $atb. How can I do this. Same problem I am facing for one database table also. I need change my package details for one of my customized
-
Hey guys, Two problems with Aperture 3 : 1) Impossible to sort "mobile me" gallery by name : it always comes back in weird orders... 2) Aperture 3 keeps freezing when I try to close it, forcing me to "force quit" it. Then, other problem emerged, like
-
Hi gurus, we are having a problem with the PCR .When the lower manager submits the request it is succesfully submitted but it is not appearing in the other level Manager worklist or in the PCR status.We are using the workflow 50000041 for all the PC
-
How to display XSL file to ASPX in dreamweaver
Hi, Just wondering how to display XSL file in ASPX page? I normally do it in ASP page by using server behaviour XSLT transformation and bind it to ASP page and this works very well. Now I am trying to use the same method and using ASPX page this time
-
Open role permission error after migration EP6 to EP7
Hi all, After migration from ep6(WAS 620) to EP7, there are some roles which can't edit permission by content administration. The error message appears when open edit role permission. ========================= Error Start Line========================