"ORA-12545 connect failed because target host or object does not exist"
I am trying to connect to a remote database via a database link from sqlplus . I have done the following steps.
1. from my local oracle db connected to sqlplus as SYSTEM
2.create public database link link_name connect to userid identified by password using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=host_name)(PORT=1521) ))(CONNECT_DATA=(SERVICE_NAME=service_name)))'
3. database link created.
4.try to run the qury "select * from sys.dual@link_name" , then am getting the error message "ORA-12545 connect failed because target host or object does not exist".
I have configured the tnsnames.ora