4

Oracle 11g TNSPING 实用程序存在以下问题:全新的 11g 客户端安装,ORACLE_HOME 设置正确,TNS_ADMIN 也设置,msb 文件在所需位置可用,调用 TNSPING 的用户可以读取。连接数据库工作正常,可以使用sqlplus进行连接。然而,TNSPING 失败了。见附件日志:

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\USERNAME>set ORACLE_HOME=C:\Work\Software\Oracle\product\11.2.0\client_1

C:\Users\USERNAME>set TNS_ADMIN=%ORACLE_HOME%\network\admin

C:\Users\USERNAME>set NLS_LANG=ENGLISH_POLAND.EE8MSWIN1250

C:\Users\USERNAME>dir %TNS_ADMIN%\tnsnames.ora
 Volume in drive C is XXX
 Volume Serial Number is YYY

 Directory of C:\Work\Software\Oracle\product\11.2.0\client_1\network\admin

2013-03-19  12:26               358 tnsnames.ora
               1 File(s)            358 bytes
               0 Dir(s)  59 082 616 832 bytes free

C:\Users\USERNAME>dir %ORACLE_HOME%\network\mesg\tns*.msb
 Volume in drive C is XXX
 Volume Serial Number is YYY

 Directory of C:\Work\Software\Oracle\product\11.2.0\client_1\network\mesg

2010-03-31  07:01            53 248 tnspl.msb
2010-03-31  07:01            47 104 tnsus.msb
               2 File(s)        100 352 bytes
               0 Dir(s)  59 082 616 832 bytes free

C:\Users\USERNAME>sqlplus <USER>/<PASSWORD>@<DATABASE>

SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 19 14:36:34 2013

Copyright (c) 1982, 2010, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Release 11.2.0.2.0 - 64bit Production

SQL> exit
Disconnected from Oracle Database 11g Release 11.2.0.2.0 - 64bit Production

C:\Users\USERNAME>tnsping <DATABASE>

TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 19-MAR-2013 14:37:52

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 not found; No message file for product=NETWORK, facility=TNSMessage 3509 not found; No message file for product=NETWORK, facility=TNS

请注意:出于安全考虑,我不得不替换所有用户凭据、数据库名称等。

你能帮我解决问题吗?我已经阅读了与 TNSPING 故障相关的所有其他 StackExchange 主题,但是每个解决方案(设置 ORACLE_HOME、重新安装、确保注册表指向正确的主目录、检查 msb 文件)都让我失望了……

提前致谢!

4

0 回答 0