sqlplus system@orcl
SQL*Plus: Release 11.1.0.6.0 - Production on Sun Aug 19 13:18:56 2007
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12532: TNS:invalid argument
In this case we can ping to remote host but not able to connect database which we have created on remote host.
Cause : Listener port is closed.May be a firewall policy make the issue.
Action : We need to open Listener port for communication .By default Listener port is 1521.