Your tnsnames.or has an entry pointing to the location where database was not running. When you removed @ you picked up local database .