ORA-12154: TNS:could not resolve service name error in SQL Navigator

Question : ORA-12154: TNS:could not resolve service name error in SQL Navigator

I have installed Oracle 8i Database in to a Win2000 Server and installed SQL Navigator 4 to a WinXP Client. When I tried to connect to the database it gave following error (using SQL Navigator)

ORA-12154: TNS:could not resolve service name

I have already setup the TNSNAMES.ORA file.
What can be the problem?.


 

Solution: ORA-12154: TNS:could not resolve service name error in SQL Navigator

Do you have multiple Oracle installations on your machines like Oracle client and Developer ?

If so you’ll have to set up the tnsnames.ora on both HOMES.

Or else setup the registry.

Add string value TNS_ADMIN to HKEY_LOCAL_MACHINESOFTWAREORACLE

Set the values of TNS_ADMIN to the folder where the tnsnames.ora you set up resides.

Eg. C:oracleora92admin