Reputation: 11
I installed Oracle11g XE for windows32. First time when I try to connect via SQL developer it gets connected effortlessly. But once I close the SQL Developer and restart it, then again I am unable to connect to the DB. Then I tried to connect with SQL plus and guess what it gets connected! But through SQL devloper I receive an error message as follows:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor.
I have checked all the credentials thoroughly. Still am unable to find the error. Please Help.
Upvotes: 0
Views: 873
Reputation: 2119
When you are using sql plus
you use the tnsnames.ora
file to find your connection. You can do the same in sql developer
.
Just click the listbox connection type
and choose TNS
instead of basic
then for network alias you should be able to choose a connection from your tnsnames.ora
Upvotes: 1