But when trying to connect this service (for instance, using 'TORA' or testing with 'Oracle Net8 Easy Config') I get this error message:
******
ORA-12505: TNS:listener could not resolve SID given in connect descriptor
******
If I type in MSDOS, I get
> echo %ORACLE_SID%
MY_SID
And I'm able to connect via SQL*Plus... what am I doing wrong?
Any suggestion is apreciated. Regards and thank you very much.
Look for all the tnsnames.ora in your machine and add the entry for your db.
If you have only one tnsnames.ora, probably you have to check your NAMES.DEFAULT_DOMAIN = world parameter in the sqlnet.ora same as you put on your tnsnames.ora.
As per my understanding, If you have one more TNSNAME.ORA in C:\ root directory, Oracle will try to refer this TNANAME file everytime...Not in Oracle_home\Network directory.
So, Please check you have only one TNSNAMES.ORA in ORACLE_HOME\network Directory. If you have any more, please delete it and try out.
Bookmarks