How do I convert a TNS entry that has a SID to instantclient format?
I'm able to connect with a TNS string but not with the equivalent (I thought!) instantclient string.
$ ./sqlplus 'myname/mypass@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myhost.example.com)(PORT=1521))(CONNECT_DATA=(SID=mysid)))'
Connected to: ...
$ ./sqlplus myname/mypass@//myhost.example.com:1521/mysid
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
lsnrctl services
on the DB server should tell you, which serivces are available for your database.show parameter service_name
or try aselect value from v$parameter where name like '%service_name%';
with another sql client.