Did you create TNS for the database.