SQL*Plus: Release 126.96.36.199.0 - Production on Sun Aug 19 13:18:56 2007
Copyright (c) 1982, 2007, Oracle. All rights reserved.
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.