Monday, 6 February 2017
Troubleshooting ORA-12505( SQL Developer), TNS: listener does not
currently know of SID given in connect descriptor
There are a few things that can cause this problem, but before we get started,you need to be sure that you can connect to the database using SQL*Plus. SQL*Plus, it's a command-line tool for connecting to Oracle databases that has been a standard part of Oracle for a long time and it is included with Oracle XE.
When connecting to an Oracle database using database connectivity API, we don't connect to the DB directly. Instead, we connect to a TNS listener, which then connects you to the database. The error means that the listener was up and you could connect to it, but it couldn't connect you to the database because it doesn't know that that database is up. There are two reasons for this:
ORA-12505 means that the listener knows about that database, but the listener hasn't received an acknowledgement from the DB that it is up.
|
1. Start oracle database.
![]() |
Start database |
2. Connect to system.
![]() |
Connect System |
3.
3. Try out command
“LSNRCTL STAT”;
![]() |
Ora-Listener |
44. Execute command
Alter system
set local_listener = '(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))'
scope = both;
![]() |
Alter System Listener |
5. Execute command
Alter system
register;
![]() |
Alter System Register |
6 6.Execute command
Exit;
![]() |
Exit |
7.
7.Execute command
lsnrctl stat
![]() |
lsnrctl stat |
Now you should probably be able to connect.
Subscribe to:
Post Comments (Atom)
Search
Popular Posts
-
Troubleshooting Cisco VPN client Before starting troubleshooting, Let us see what VPN is and what it requires to perform its intended f...
-
Evolution-Mobile Phones With the development of portable technology,wireless communication has so evolved that (According to the announce...
-
File Versioning C# File versioning, saving file with unique file name in c# File versioning allows a user to have several versions of ...
-
Text Box Hint in c# Windows Form Application Text Box Hint in c# Windows Form Application While developing a windows form applicat...
-
Unable to set the Freeze Panes property of Window Class C# It is generally easy to resolve the compile time errors because the reason fo...
0 comments:
Post a Comment