Modify TNSNAMES.ORA file to connect to an Oracle Database
You may start command prompt using windows commanline cmd and use below:

tnsping any_random_name




as you can see in the image, it uses parameter file where sqlnet.ora exists. This is the folder where your current oracle installation points to. You should make change in that folder's tnsnames.ora.