You need to locate your tnsnames.ora
file and check the entries.
Run tnsping
from the command line of the server you are running with the name of the connection you connect to with toad.
> tnsping haki
TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 16-JUN-2013 14:14:10
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
C:\oracle\product\10.2.0\db_3\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = *****)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = haki)))
OK (0 msec)
Look for a file called tnsadmin.ora
under the network parameter directory. as you can see, in my case it's C:\oracle\product\10.2.0\db_3\network\admin\
.
If this dosent work or you located the file but the entry wasn't there try running netca
and create an entry using the wizard.
sometimes people install more then one client software and there a whole mess with the PATH
.