ORA-12505: TNS:listener does not currently know of SID
Hi,
i have a problem connecting to the database
when i try to connect to xe Oracle returns the error:
ORA-12505: TNS:listener does not currently know of SID given in connect descriptor.
listener.ora
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = mysqldb)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = hsodbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = descordel01)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
tnsnames.ora
# tnsnames.ora Network Configuration File:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = descordel01)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
mysqldb =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = descordel01)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = mysqldb)
(HS = OK)
)
812419 wrote:
Hi,
i have a problem connecting to the database
when i try to connect to xe Oracle returns the error:
ORA-12505: TNS:listener does not currently know of SID given in connect descriptor.
listener.ora
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = mysqldb)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = hsodbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = descordel01)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
tnsnames.ora
# tnsnames.ora Network Configuration File:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = descordel01)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
mysqldb =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = descordel01)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = mysqldb)
(HS = OK)
)ok, so we know what your config files look like, but we don't know what you DID to generate the error - we don't know what your exact connect command was.
We also don't know if you tried to connect from the server or a remote client
We also don't know if the tnsnames you show is from the same machine as you were using as the client when you got the error
We also don't know if there were more than one tnsnames on the machine as you were using as the client when you got the error
From a command prompt on the db server, issue 'lsnrctl status'.
From a command prompt on the client machine, perform a tnsping and also an actual connect attempt.
Copy both entire sessions - commands and response - and past into your next post.
Similar Messages
-
ORA-12505, TNS:listener does not currently know of SID given in connect des
Hello,
After installation of Oracle Database Express Edition 11g and Oracle SQL Developer 3.0, I tryed connect a database.
Informations entered :
Nom de connexion : xe_sys
Nom utilisateur : sys
Mdp : *********
Type de connexion : de base, role sysdba
Nom d'hote : POST1.compteUs.local
Port : 1521
SID : XE
when I tested the connection I have this famous message that appears:
Statut : échec -Echec du test : Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
this is listener.ora :
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = POST1.compteUs.local)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
this is sqlnet.ora :
SQLNET.AUTHENTICATION_SERVICES = (NTS)
this is tnsname.ora :
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = POST1.compteUs.local)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
Can you help me please ?
ThanksThanks of help.
here, commande 'lsnrctl stat' executed :
LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 10-OCT. -2012 08:
40:29
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Produ
ction
Start Date 10-OCT. -2012 03:30:05
Uptime 0 days 5 hr. 10 min. 24 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\listener.ora
Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\POST1\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=POST1.compteUs.local)(PORT=1521)
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
So, I tryed :
Informations entered :
Nom de connexion : test
Authentification OS
Type connection : de base, role sysdba
host name : POST1.compteUs.local
Port : 1521
Service name : XE
And this is message erreur :
Statut : échec -Echec du test : Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor -
Error ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
I have a java code that tries to connect to my oracle database.Below given the code snippet.
I am getting error when I ran this code.
Java code.
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class jdbc {
public static void main(String[] args) {
try {
Class.forName("oracle.jdbc.OracleDriver");
} catch (ClassNotFoundException e) {
e.printStackTrace();
return;
Connection connection = null;
try {
connection = DriverManager.getConnection(
"jdbc:oracle:thin:@localhost:1521:XE", "SCOTT",
"password");
} catch (SQLException e) {
e.printStackTrace();
return;
Error I am getting is
java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Can Someone explain me what is wrong here?Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ip
(DESCRIPTION=(ADDRESS=(PROTOCOL=tc
Services Summary...
Service "CLRExtProc" has 1 instance(
Instance "CLRExtProc", status UNKN
Service "PLSExtProc" has 1 instance(
Instance "PLSExtProc", status UNKN
The command completed successfully
Obviously there is no handler for XE service.
Maybe you changed hostname(this should be "Owner-PC") ?
Try to manually start/stop db and see if there are some errors:
sqlplus / as sysdba
startup
shutdown immediate
If after that you still can't find cause, try to ask on oracle db forum.
Dario -
ORA-12505: TNS:listener does not currently know of SID given in connect
hi Dears,
i had insatlled new 11g on my Linux centios 5 system for testing purpose. when i started oem i can see agent is down but when i checked the agent status its saying below messages. i'm new to oracle . please guide me.
oracle11@test bin]$ ./emctl status agent
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
Agent Version : 10.2.0.4.2
OMS Version : 10.2.0.4.2
Protocol Version : 10.2.0.4.2
Agent Home : /sd01/oracle11/app/product/11.2.0/dbhome_1/test_training11
Agent binaries : /sd01/oracle11/app/product/11.2.0/dbhome_1
Agent Process ID : 4206
Parent Process ID : 4181
Agent URL : https://test:1830/emd/main
Repository URL : https://test:5500/em/upload/
Started at : 2011-11-21 14:30:21
Started by user : oracle11
Last Reload : 2011-11-21 14:36:23
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 762
Size of XML files pending upload(MB) : 16.39
Available disk space on upload filesystem : 77.21%
Data channel upload directory : /sd01/oracle11/app/product/11.2.0/dbhome_1/test_training11/sysman/recv
Last attempted heartbeat to OMS : 2011-11-21 15:11:09
Last successful heartbeat to OMS : unknown
Agent is Running and Ready
from OEM
* Agent Connection to Instance
Status Failed
Details ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
i had restarted the listener
oracle11@test admin]$ lsnrctl start LISTENER_1
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-NOV-2011 15:05:16
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /sd01/oracle11/app/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /sd01/oracle11/app/product/11.2.0/dbhome_1/network/log/listener_1.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1523)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.25.151)(PORT=1523)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1523)))
STATUS of the LISTENER
Alias LISTENER_1
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 21-NOV-2011 15:05:16
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /sd01/oracle11/app/product/11.2.0/dbhome_1/network/log/listener_1.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1523)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.25.151)(PORT=1523)))
The listener supports no services
The command completed successfully
in this server i have 10g home but in the different filesystem : /home/oracle/oracle/product/10.2.0/db_2
11g home : /sd01/oracle11/app/product/11.2.0/dbhome_1
as per the agent messages i thought to add SID LIST in listner but got error message when i start the listener.ora below listener.ora details
# listener.ora Network Configuration File: /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER_1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1523))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.25.151)(PORT = 1523))
SID_LIST_LISTENER_1 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = training11)
(ORACLE_HOME = /sd01/oracle11/app/product/11.2.0/dbhome_1)
(SID_NAME = training11)
(SID_DESC =
(GLOBAL_DBNAME = orcl11)
(ORACLE_HOME = /sd01/oracle11/app/product/11.2.0/dbhome_1)
(SID_NAME = orcl11)
ADR_BASE_LISTENER_1 = /sd01/oracle11/app
when i ran lsnrctl start LISTENER_1 i got below messages could any one please help me to solve this problem. my aim is when i start oem everything should work rightnow agent is down
[oracle11@test bin]$ lsnrctl start LISTENER_1
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-NOV-2011 15:27:38
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /sd01/oracle11/app/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /sd01/oracle11/app/product/11.2.0/dbhome_1/network/log/listener_1.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1523)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.25.151)(PORT=1523)))
TNS-01155: Incorrectly specified SID_LIST_LISTENER_1 parameter in LISTENER.ORA
NL-00303: syntax error in NV string
NL-08014: Failed to initialize Diagnosability framework, falling back to old network tracing/logging
NL-08002: Diagnosability context creation failed
thanks ,
johnJohnvd wrote:
hi Dears,
i had insatlled new 11g on my Linux centios 5 system for testing purpose. when i started oem i can see agent is down but when i checked the agent status its saying below messages. i'm new to oracle . please guide me.
oracle11@test bin]$ ./emctl status agent
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
Agent Version : 10.2.0.4.2
OMS Version : 10.2.0.4.2
Protocol Version : 10.2.0.4.2
Agent Home : /sd01/oracle11/app/product/11.2.0/dbhome_1/test_training11
Agent binaries : /sd01/oracle11/app/product/11.2.0/dbhome_1
Agent Process ID : 4206
Parent Process ID : 4181
Agent URL : https://test:1830/emd/main
Repository URL : https://test:5500/em/upload/
Started at : 2011-11-21 14:30:21
Started by user : oracle11
Last Reload : 2011-11-21 14:36:23
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 762
Size of XML files pending upload(MB) : 16.39
Available disk space on upload filesystem : 77.21%
Data channel upload directory : /sd01/oracle11/app/product/11.2.0/dbhome_1/test_training11/sysman/recv
Last attempted heartbeat to OMS : 2011-11-21 15:11:09
Last successful heartbeat to OMS : unknown
Agent is Running and Ready
from OEM
* Agent Connection to Instance
Status Failed
Details ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
i had restarted the listener
oracle11@test admin]$ lsnrctl start LISTENER_1
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-NOV-2011 15:05:16
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /sd01/oracle11/app/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /sd01/oracle11/app/product/11.2.0/dbhome_1/network/log/listener_1.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1523)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.25.151)(PORT=1523)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1523)))
STATUS of the LISTENER
Alias LISTENER_1
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 21-NOV-2011 15:05:16
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /sd01/oracle11/app/product/11.2.0/dbhome_1/network/log/listener_1.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1523)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.25.151)(PORT=1523)))
The listener supports no services
The command completed successfully
in this server i have 10g home but in the different filesystem : /home/oracle/oracle/product/10.2.0/db_2
11g home : /sd01/oracle11/app/product/11.2.0/dbhome_1
as per the agent messages i thought to add SID LIST in listner but got error message when i start the listener.ora below listener.ora details
# listener.ora Network Configuration File: /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER_1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1523))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.25.151)(PORT = 1523))
SID_LIST_LISTENER_1 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = training11)
(ORACLE_HOME = /sd01/oracle11/app/product/11.2.0/dbhome_1)
(SID_NAME = training11)
(SID_DESC =
(GLOBAL_DBNAME = orcl11)
(ORACLE_HOME = /sd01/oracle11/app/product/11.2.0/dbhome_1)
(SID_NAME = orcl11)
ADR_BASE_LISTENER_1 = /sd01/oracle11/app
when i ran lsnrctl start LISTENER_1 i got below messages could any one please help me to solve this problem. my aim is when i start oem everything should work rightnow agent is down
[oracle11@test bin]$ lsnrctl start LISTENER_1
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-NOV-2011 15:27:38
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /sd01/oracle11/app/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /sd01/oracle11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /sd01/oracle11/app/product/11.2.0/dbhome_1/network/log/listener_1.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1523)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.25.151)(PORT=1523)))
TNS-01155: Incorrectly specified SID_LIST_LISTENER_1 parameter in LISTENER.ORA
NL-00303: syntax error in NV string
NL-08014: Failed to initialize Diagnosability framework, falling back to old network tracing/logging
NL-08002: Diagnosability context creation failed
thanks ,
johnhttp://edstevensdba.wordpress.com/2011/03/19/ora-12514/ -
OEM 10g - ORA-12505: TNS:listener does not currently know of SID...
Hello,
In OEM (version 10.1.0.5 on Red Hat linux 4), on the page Database Instance: dbexemple.domain.be
It says:
- Database Instance > up
- Listener > up
- Agent connection to database > Status: Failed
Details: Failed to connect to database instance: ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach).
And my OEM database is always in Blackout state.
I can connect on the database and if I select from global_name it gives me the good name.
If I do lsnrctl status
Service "dbexemple.domain.be" has 1 instance(s).
Instance "emrep", status READY, has 1 handler(s) for this service...
If I do lsnrctl services
Service "dbexemple.domain.be" has 1 instance(s).
Instance "dbexemple", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:44 refused:0 state:ready
LOCAL SERVER
So all looks normal. But my DB is still in blackout state.
I did stop and start the agent > no change
I did shutdown and start the database > no change
I did stop the agent delete the $oracle_home/sysmen/emd/... files and start the agent and emctl upload... > no change
In the targets.xml file from the agent I have:
<Target TYPE="oracle_database" NAME="dbexemple.domain.be">
<Property NAME="OracleHome" VALUE="/oracle/product/db10g"/>
<Property NAME="UserName" VALUE="###" ENCRYPTED="TRUE"/>
<Property NAME="MachineName" VALUE="machine.domain.be"/>
<Property NAME="Port" VALUE="1521"/>
<Property NAME="SID" VALUE="dbexemple"/>
<Property NAME="ServiceName" VALUE="dbexemple.domain.be"/>
<Property NAME="password" VALUE="###" ENCRYPTED="TRUE"/>
</Target>
Seems good also
My tnsnames.ora
DBEXEMPLE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = machine.domain.be)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = dbexemple.domain.be)
tnsping dbexemple is also good:
Used LDAP adapter to resolve the alias
Attempting to contact (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=machine)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=dbexemple.domain.be)))
OK (10 msec)
The DB is not in the listener.ora but anyway at the startup of the database the database register in the listener (can take some seconds).
In OEM if I look at blackout, it says no blackout exists
So after all these verifications my OEM database is still in blackout status and remain in blackout.
I would like to find the reason why it stays like this and the agent finally stop giving me an error.
thank you for your help,
LoïcThe fact is that I did not set any blackout for the emrep database. (no blackout are set at the moment in fact)
So, we did change the HDD of the computer were was OEM to another HDD.
The update to 10.1.0.5 was made before all this (2 weeks) and no problem appears after that.
There's no blackout in OEM Blackouts:
No Blackouts found.
and no blackout with emctl:
[oracle@computeroem bin]$ ./emctl status blackout
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
No Blackout registered.
[oracle@computeroem bin]$ ./emctl status blackout emrep
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
No Blackout registered.
At the link:
http://computeroem.domain.be:4889/em/console/health/healthSystemError
I get these:
Loader
https://computeroem.domain.be:3872/emd/main/
14-Jan-2007 10:32:32 PM
Error
Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ java.sql.SQLException: ORA-20615: Severity received during blackout for : Target up received during blackout for : (target_guid = E9A00D9D6447DF4BE1CF43F7A94BF402) (policy_guid=3BF84446B273FE1F5743FD6293C7E192) (key_value= ) (collection_ts = 2007-01-14 22:32:27) (violation_level =CLEAR) ORA-06512: at "SYSMAN.EM_VIOLATION_CHECKS", line 959 ORA-04088: error during execution of trigger 'SYSMAN.EM_VIOLATION_CHECKS' Error occured at line : 277, File name:Severity
Loader
https://computeroem.domain.be:3872/emd/main/
14-Jan-2007 10:32:32 PM
Error
Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ Loaded B0000000003.xml with errors; moving to errors directory, File name:/oracle2/product/oms10g/sysman/recv/B0000000003.xml
Blackouts
n/a
14-Jan-2007 6:19:26 PM
Error
Duplicate start blackout record for 39EDA0C7E44C422698958F9463393C52 for target E9A00D9D6447DF4BE1CF43F7A94BF402
Loader
https://computeroem.domain.be:3872/emd/main/
12-Jan-2007 3:07:22 PM
Error
Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ java.sql.SQLException: ORA-20615: Severity received during blackout for : Target up received during blackout for : (target_guid = E9A00D9D6447DF4BE1CF43F7A94BF402) (policy_guid=3BF84446B273FE1F5743FD6293C7E192) (key_value= ) (collection_ts = 2007-01-12 15:07:05) (violation_level =CLEAR) ORA-06512: at "SYSMAN.EM_VIOLATION_CHECKS", line 959 ORA-04088: error during execution of trigger 'SYSMAN.EM_VIOLATION_CHECKS' Error occured at line : 14, File name:Severity
Loader
https://computeroem.domain.be:3872/emd/main/
12-Jan-2007 3:07:22 PM
Error
Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ Loaded B0000000002.xml with errors; moving to errors directory, File name:/oracle2/product/oms10g/sysman/recv/B0000000002.xml
Loader
https://computeroem.domain.be:3872/emd/main/
12-Jan-2007 3:04:44 PM
Error
Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ java.sql.SQLException: ORA-20615: Severity received during blackout for : Target down received during blackout for : (target_guid = E9A00D9D6447DF4BE1CF43F7A94BF402) (policy_guid=3BF84446B273FE1F5743FD6293C7E192) (key_value= ) (collection_ts= 2007-01-12 14:56:52) (violation_level =CRITICAL) ORA-06512: at "SYSMAN.EM_VIOLATION_CHECKS", line 818 ORA-04088: error during execution of trigger 'SYSMAN.EM_VIOLATION_CHECKS' Error occured at line : 14, File name:Severity
Loader
https://computeroem.domain.be:3872/emd/main/
12-Jan-2007 3:04:44 PM
Error
Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ Loaded B0000000001.xml with errors; moving to errors directory, File name:/oracle2/product/oms10g/sysman/recv/B0000000001.xml
Blackouts
n/a
12-Jan-2007 10:10:23 AM
Error
end_blackout: unexpected current state 10
Blackouts
n/a
12-Jan-2007
10:05:28 AM
Error
Duplicate start blackout record for FD1380AAEB69BAE53339F58EA0C83ADC for target E9A00D9D6447DF4BE1CF43F7A94BF402
Loader
https://computeroem.domain.be:3872/emd/main/
12-Jan-2007 9:57:16 AM
Error
Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ Loaded B0000000001.xml with errors; moving to errors directory, File name:/oracle2/product/oms10g/sysman/recv/B0000000001.xml
Loader https://computeroem.domain.be:3872/emd/main/
12-Jan-2007 9:57:15 AM
Error
Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ java.sql.SQLException: ORA-20615: Severity received during blackout for : Target up received during blackout for : (target_guid = E9A00D9D6447DF4BE1CF43F7A94BF402) (policy_guid=3BF84446B273FE1F5743FD6293C7E192) (key_value= ) (collection_ts = 2007-01-12 09:56:53) (violation_level =CLEAR) ORA-06512: at "SYSMAN.EM_VIOLATION_CHECKS", line 959 ORA-04088: error during execution of trigger 'SYSMAN.EM_VIOLATION_CHECKS' Error occured at line : 270, File name:Severity
Loader
https://computeroem.domain.be:3872/emd/main/
8-Jan-2007 9:07:17 AM
Error
Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ java.sql.SQLException: ORA-20615: Severity received during blackout for : Target up received during blackout for : (target_guid = E9A00D9D6447DF4BE1CF43F7A94BF402) (policy_guid=3BF84446B273FE1F5743FD6293C7E192) (key_value= ) (collection_ts = 2007-01-08 09:07:02) (violation_level =CLEAR) ORA-06512: at "SYSMAN.EM_VIOLATION_CHECKS", line 959 ORA-04088: error during execution of trigger 'SYSMAN.EM_VIOLATION_CHECKS' Error occured at line : 25, File name:Severity
Loader
https://computeroem.domain.be:3872/emd/main/
8-Jan-2007 9:07:17 AM
Error
Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ Loaded B0000000003.xml with errors; moving to errors directory, File name:/oracle2/product/oms10g/sysman/recv/B0000000003.xml
Loader
https://computeroem.domain.be:3872/emd/main/
8-Jan-2007 9:04:10 AM
Error
Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ Loaded B0000000002.xml with errors; moving to errors directory, File name:/oracle2/product/oms10g/sysman/recv/B0000000002.xml
Loader
https://computeroem.domain.be:3872/emd/main/
8-Jan-2007 9:04:09 AM
Error
Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ java.sql.SQLException: ORA-20615: Severity received during blackout for : Target up received during blackout for : (target_guid = E9A00D9D6447DF4BE1CF43F7A94BF402) (policy_guid=3BF84446B273FE1F5743FD6293C7E192) (key_value= ) (collection_ts = 2007-01-08 09:01:54) (violation_level =CLEAR) ORA-06512: at "SYSMAN.EM_VIOLATION_CHECKS", line 959 ORA-04088: error during execution of trigger 'SYSMAN.EM_VIOLATION_CHECKS' Error occured at line : 151, File name:Severity
Blackouts
n/a
8-Jan-2007 8:57:47 AM
Error
Duplicate start blackout record for 39EDA0C7E44C422698958F9463393C52 for target E9A00D9D6447DF4BE1CF43F7A94BF402
Loader
https://computeroem.domain.be:3872/emd/main/
8-Jan-2007 8:56:00 AM
Error
Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ Loaded B0000000001.xml with errors; moving to errors directory, File name:/oracle2/product/oms10g/sysman/recv/B0000000001.xml
Loader
https://computeroem.domain.be:3872/emd/main/
8-Jan-2007 8:56:00 AM
Error
Thread: SeverityLoad https://computeroem.domain.be:3872/emd/main/ java.sql.SQLException: ORA-20615: Severity received during blackout for : Target down received during blackout for : (target_guid = E9A00D9D6447DF4BE1CF43F7A94BF402) (policy_guid=3BF84446B273FE1F5743FD6293C7E192) (key_value= ) (collection_ts= 2007-01-06 01:25:35) (violation_level =CRITICAL) ORA-06512: at "SYSMAN.EM_VIOLATION_CHECKS", line 818 ORA-04088: error during execution of trigger 'SYSMAN.EM_VIOLATION_CHECKS' Error occured at line : 14, File name:Severity
For the note, mostly I cannot do anything because I have no blackout name for the script. Still reading the note to see if some sql can help.
Message was edited by:
Loic -
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 -
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 -
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. -
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
-
Hi Guys In previous versions - changing from RGB to CMYK or vice versa would change the colours slightly but ever since CC when I change one to the other my white goes brown and there is a yellow tone to the image. Has anyone else experienced this -
-
I cannot update apps from the mac app store: it says I must sign into the account I used to purchase they app, and I am, and I have no other account. What's wrong?
-
Displaying MAC Laptop on sony tv can i use Apple TV
Going to get Mac book pro and apple tv. Thought this would be a good way to display whatever is on the mac on to the Sony LCD tv rather than plugging in a cable to the tv. Is this possible?
-
Does any body help me to know Why ECC6.0 does not support Recurring posting (F.14) for account type "A" Any clue ....If any body managed to post F.14 with Asset in ECC6.0 Regards,
-
Is Oracle E-Business Suite 12.1.3 certified with Oracle Application Server
Is Oracle E-Business Suite 12.1.3 certified with Oracle Application Server Single Signon 10.1.4.3.0 on Linux x86-64 SLES 11 (not SLES 10) ? I do see Oracle Application Server Single Signon 10.1.4.3.0 listed on the certification matrix for R12.1.3 , h