Check if you can;

1) Ping the database server IP address or hostname
2) tnsping database

3) Make sure listener is up and running on Oracle server
4) Check how your TNSNAMES.ORA is set.