我在
Windows XP计算机上安装了Oracle Client v.11.2.0.1并设置了TNS_ADMIN和ORACLE_HOME环境变量.
使用sqlplus通过TNS别名连接到远程数据库工作正常:
sqlplus username/password@ALIAS
但是对同一别名的调整会导致以下错误:
P:\>tnsping ALIAS
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 07-AUG-2
011 18:20:08
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Message 3511 not found; No message file for product=NETWORK, facility=TNSMessage
3512 not found; No message file for product=NETWORK, facility=TNSMessage 3513 n
ot found; No message file for product=NETWORK, facility=TNSMessage 3509 not foun
d; No message file for product=NETWORK, facility=TNS
对于类似的问题(即在Stack Overflow here上),tnsping至少能够从别名中解析连接字符串.在这种情况下不是这样.这让我相信某些环境变量缺失或指向错误的位置.任何建议,将不胜感激.