ora-12505 [message #517878] |
Fri, 29 July 2011 02:30 |
|
reco2
Messages: 4 Registered: July 2011 Location: sudan
|
Junior Member |
|
|
hello i am elementary using oracle
use oracle 11g and JDeveloper Studio 11.1.1.1.0 but cant connection between database and jdeveloper becouse these message error
Test failed: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Picture after the annex to the author of this code"isnrctl service"
But under the error appears sometimes
[Updated on: Fri, 29 July 2011 02:32] Report message to a moderator
|
|
|
|
Re: ora-12505 [message #517882 is a reply to message #517878] |
Fri, 29 July 2011 02:59 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Probably your database instance isn't started, which is why the service isn't registered with the listener. Do you know how to check whether the database is running?
|
|
|
|
|
|
|
Re: ora-12505 [message #517904 is a reply to message #517896] |
Fri, 29 July 2011 07:07 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
How do you check whether a database is open on WIndows? I've been meaining to write this for a while. If anyone wants to add more or make corrections, let me know, and I'll put it on the blog.
Do all this from a DOS prompt:
First, set your Oracle Home, your search path, and your Oracle SID. The exact path and the SID will depend on your installation, but for 11g it will probably be something like this:
set ORACLE_HOME=c:\app\john\product\11.2.0\dbhome_1
set PATH=%ORACLE_HOME%\bin;%PATH%
set ORACLE_SID=orcl
Second, confirm that the above is indeed correct with these commands (note that the first (or only) SQL*Plus must be in the same Oracle Home as that off which the database is running):
echo %ORACLE_HOME%
echo %PATH%
echo %ORACLE_SID%
where sqlplus.exe
Third, check that the Windows service for the orcl instance is running. Start it if it isn't:
net start oracleserviceorcl
Fourth, check that the database instance is running and that the database is open READ-WRITE. Start and open if it isn't:
sqlplus / as sysdba
startup
select open_mode from v$database;
Fifth, check that your listener is running and start it if it isn't:
Sixth, check that your database instance is registered with the listener:
If the database is not registered with listener, you can force registration from withoin SQL*Plus:
and check again.
I think that's about it.
|
|
|
|