if you have set the ORACLE_SID ok, and your tnsnames is ok, then maybe there was a previous installation of ORACLE in your server and that you may need to edit some registry entry like oracle home, or oracle SID i'm not so sure.