windows - tnsping ping fails, even though I can successfully connect to database -
in trying establish connectivity workstation (actually, seeing same behavior on both winxp32 , win764 workstations) oracle server, first thing try tnsping. when so, get:
> c:\>tnsping mydbname > > tns ping utility 32-bit windows: > version 10.2.0.1.0 - production on > 25-jan-2 011 15:03:35 > > copyright (c) 1997, 2005, oracle. > rights reserved. > > message 3511 not found; no message > file product=network, > facility=tnsmessage 3512 not found; > no message file product=network, > facility=tnsattempting contact > (description = (address_list = > (address = (protocol = tcp) (host = > thisismyservername.com)(port = 1577))) > (connect_data = (sid = mydbname))) > message 3509 not found; no message > file product=network, facility=tns
so, can see, detecting tnsnames file, , picks correct server address , port specified database, tnsping fails 3511 , 3509 errors.
the strange part is, using sqlplus or toad, same workstation, can connect same database successfully.
can explain happening here?
fwiw:
the oracle_home system environment variable (and other oracle environment variables) not set.
update
the oracle_home environment variable not have set, seems depend per machine somehow. particular issue was: oracle 10g has/had known defect in tnsping.exe didn't work. there patch
i believe can happen when oracle_home
environment variable not set properly. tnsping
still available path
, can't find message files. echo %oracle_home%
show, , oracle client installed?
this wouldn't have effect on access toad doesn't need access oracle_home
directly; may have given full connection string, or may able pick service name if tns_admin
set.
edit might have several oracle products interfering each other. if try going start->all programs->oracle installation products->home selector , picking 1 related tnsping
you're executing. (actually 9i client; think 10g might need use universal installer, changing via installed products->environment, can't check).
Comments
Post a Comment