I would appriciate some help with an issue that I'm facing.
I have two Oracle DB servers with same schemas. I want to run sqlplus from one server to another. I've added the tns_names entries in tnsnames.ora under both DB and Client folders under c:\oracle. When I do tnsping to the remote DB, it resolves properly and successfully pings remote DB. But, when I try sqlplus, it allways connects to the specified schema on the local server.
For example: I have serverA and serverB that both of them have shema named 'some_schema' with tns entries as follows in tnsnames on serverA:
some_shcema =(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=mst1))(CONNECT_DATA=(sid=mst1))(ADDRESS=(PROTOCOL=TCP)(HOST=10.111.22.3)(PORT=1521)))
some_shcemaB =(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=mst1))(CONNECT_DATA=(sid=mst1))(ADDRESS=(PROTOCOL=TCP)(HOST=11.222.33.4)(PORT=1521)))
from ServerA: tnsping some_shcemaB - resolves and pings some_shcema on serverB sqlplus some_schema/password@some_schemaB - connects to some_shcema on serverA
Hope someone could help me with that