As the connection parameter, you can specify the whole line TNS:
sqlplus "scott/tiger@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=MYSERVICE)))"
Alternatively, if your client supports syntax EasyConnect, you can only choose this:
sqlplus scott/tiger@//127.0.0.1/MYSERVICE
source
share