Try to see that you don’t have two tnsname.ora file in two different oracle home.