免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2352 | 回复: 5
打印 上一主题 下一主题

奇怪,用sqlplus登陆可以,但是加上连接串就不行?? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-05-31 11:52 |只看该作者 |倒序浏览
我的系统 RH9  Oracle817

平时用 sqlplus system/manager 就可以直接进入,但是用sqlplus system/manager@local.world 就出错。

错误代码ORA-06401 NETCMN: invalid driver designator

Cause: The login (connect) string contains an invalid driver designator.

Action: Correct the string and re-submit.

我的tnsnames.ora如下:
LOCAL.world =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 172.31.0.52)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = ora
    )
  )

用DBA Studio也出现一样的报错???

请高人指教!!

论坛徽章:
0
2 [报告]
发表于 2004-05-31 22:35 |只看该作者

奇怪,用sqlplus登陆可以,但是加上连接串就不行??

Recreate the TNSNAMES.ORA file.

Your existing TNSNAMES.ORA file may be corrupted with hidden characters or ending ^M. These are considered illegal characters for the configuration file (similar to using a tab character
instead of indenting with blank spaces).

These ^M characters can be removed all at once by invoking the following command in the Unix editor vi while still in command mode:

:%s/.$// <enter>;


SQL*Net parses the "tnsnames.ora" file for connection information. Seeing the first character of ^M after the alias somehow made SQL*Net think it had an invalid protocol selection for a version 1 connect string. This prompted the computer to return an invalid version 1 error, ORA-06401.

论坛徽章:
0
3 [报告]
发表于 2004-05-31 23:48 |只看该作者

奇怪,用sqlplus登陆可以,但是加上连接串就不行??

楼上的正解

论坛徽章:
0
4 [报告]
发表于 2004-06-01 16:08 |只看该作者

奇怪,用sqlplus登陆可以,但是加上连接串就不行??

完全正确!

论坛徽章:
0
5 [报告]
发表于 2004-06-01 16:16 |只看该作者

奇怪,用sqlplus登陆可以,但是加上连接串就不行??

8错

论坛徽章:
0
6 [报告]
发表于 2004-06-03 10:12 |只看该作者

奇怪,用sqlplus登陆可以,但是加上连接串就不行??

多谢!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP