while installing forms, if the oracle home selected is not the same as that of oracle, this error may occur.

How about the connectivity thro' SQL PLUS?