the script should run to excute sql query on remote machine..
solution
sqlplus -s user/password@${ORACLE_SID} 'select query;'
not working ,.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
i added the tns name for the remote machine after $remote_server but not working
Do you have an Oracle client installed on a LOCAL machine?
If so, is tns_names configured correctly? Can you tnsping remote DB by its SID from LOCAL machine?