The error you're getting might simply be pointing to the fact that the database is not accessible from your machine, as in the hostname cannot be reached.
To verify the same, try connecting to the database using any IDe of your choice - SQLDeveloper/Toad or simply SQL*plus.