首页 新闻 会员 周边

ora12154问题

0
悬赏园豆:50 [已关闭问题]

各位:

      我在安装客户端程序的时候遇到了这么一个问题:当系统连接数据库是提示:error while trying to retrieve text for error ora-12154。但问题是我在我们系统下的ora92文件夹下的sqlplus是可以连通数据库的(我们系统把oracle中的ora92文件夹打包进了系统中)。不知道是什么原因。望各位给予指教!谢谢

bluesun的主页 bluesun | 初学一级 | 园豆:100
提问于:2009-11-16 13:05
< >
分享
其他回答(2)
0

tnsname.ora里面的连接配置不对

你修改一下连接配置

persialee | 园豆:3217 (老鸟四级) | 2009-11-16 14:05
0

If you are using local naming (TNSNAMES.ORA file):
//      - Make sure that "TNSNAMES" is listed as one of the values of the
//        NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
//        (SQLNET.ORA)
//      - Verify that a TNSNAMES.ORA file exists and is in the proper
//        directory and is accessible.
//      - Check that the net service name used as the connect identifier
//        exists in the TNSNAMES.ORA file.
//      - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
//        file.  Look for unmatched parentheses or stray characters. Errors
//        in a TNSNAMES.ORA file may make it unusable.

中尉 | 园豆:252 (菜鸟二级) | 2009-11-16 14:22
0

可能有两种原因:

1、客户端安装的电脑是否有另一个版本的Oracle?(包括Server/Client)

有的话,卸载,只剩一下Oracle92 Server/Client

2、tnsnames.ora(¥:\oracle\product\10.2.0\network\ADMIN)配置错误

最简单的方法:可考虑 Copy 服务端的 tnsnames.ora 到客户端去使用,当然,要修改HOST值。

Snooper | 园豆:124 (初学一级) | 2009-11-17 11:29
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册