Check the file name tnsnames.ora and make sure that it had been configured properly...

Sam