If you suspect login file, you can test by using svrmgr to login. if OK, not this problem. most likely, listener.ora or tnsnames.ora didn't set right.