20121114_Message 3511 not found问题的解决

Message 3511 not found问题的解决
环境
桌面:Windows7
安装Oracle10g Client,安装形式:Administrator
安装完成后测试tnsing mydb
Message 3511 not found; No message file for product=network, facility=TNSTNS-03505: Message 3505 not found; No message file for product=network, facility=TNS
 I wondered and started analyzing what happend exactly wrong….and finally found solution to be pretty simpler
 
发生错误,网上查询得知是没有把tnsping命令所在的目录加到path环境变量
在path中添加tnsping所在的目录;C:\oracle\product\10.2.0\client_2\BIN
再次尝试 tnsing mydb
C:\Users\mastermouse>tnsping mydb
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 14-11月-
2012 17:00:01
Copyright (c) 1997, 2005, Oracle.  All rights reserved.
已使用的参数文件:
C:\oracle\product\10.2.0\client_2\network\admin\sqlnet.ora

已使用 TNSNAMES 适配器来解析别名
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.
17.163)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mydb)
))
OK (0 毫秒)
成功
尝试 sqlplus test/test@mydb 无法登录,plsql developer也登录不上。
经查还需要将ORACLE_HOME环境变量加上
我的电脑-->右键属性-->高级-->环境变量-->然后新建一个环境变量ORACLE_HOME,输入ORACLE_HOME的值.
C:\oracle\product\10.2.0\client_2
重新开一个pl/sql或者cmd命令窗口即可.
问题得以解决。
Note: 按之前的经验,找不到tnsping命令报的错不是"Message 3511 not found",应该是"Command not found" ,不知这是不是Win7带来的变化。
话说,这win7还真不好用,还是我的XP好啊。怀旧!

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10248702/viewspace-749224/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10248702/viewspace-749224/

你可能感兴趣的:(20121114_Message 3511 not found问题的解决)