ORA-12154 TNS:无法处理的服务名

上一篇 / 下一篇  2006-02-22 00:00:00 / 个人分类:oracle10g

SQL> conn sys/ as sysdba
请输入口令:
已连接。
SQL> show parameter service_na

NAME TYPE VALUE
------------------------------------ ----------- -----------------------------
service_names string oracle9i.com
SQL> conn scott/tiger
已连接。
SQL> conn scott/tiger@oracle9i
已连接。


当用全局服务名时,就报超时

SQL> conn scott/tiger@oracle9i.com
ERROR:
ORA-12535: TNS: 操作超时


警告: 您不再连接到 ORACLE。

C:Documents and Settingsxy>tnsping oracle9i.com

TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 02-1月 -2
007 11:53:42

Copyright (c) 1997 Oracle Corporation. All rights reserved.

已使用的参数文件:
C:oracleproduct9.2.0networkadminsqlnet.ora

已使用 HOSTNAME 适配器来解析别名
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SID=*)(SERVICE_NAME=oracle9i.c
om))(ADDRESS=(PROTOCOL=TCP)(HOST=oracle9i.com)(PORT=1521)))
TNS-12535: TNS: 操作超时

C:WINDOWSsystem32driversetc目录下的HOST文件后(添加了 127.0.0.1 oracle9i.com)

C:Documents and Settingsxy>tnsping oracle9i.com

TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 02-1月 -2
007 11:59:21

Copyright (c) 1997 Oracle Corporation. All rights reserved.

已使用的参数文件:
C:oracleproduct9.2.0networkadminsqlnet.ora

已使用 HOSTNAME 适配器来解析别名
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SID=*)(SERVICE_NAME=oracle9i.c
om))(ADDRESS=(PROTOCOL=TCP)(HOST=oracle9i.com)(PORT=1521)))
OK(0毫秒)

SQL> conn scott/tiger@oracle9i.com
已连接。

但连接企业管理器时,依然报错,发现oracleora90networkadmintnsnames.ora忘了添加oracle9i这个服务名

添加以后,OK


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-10-13  
   1234
567891011
12131415161718
19202122232425
262728293031 

我的存档

数据统计

  • 访问量: 876
  • 日志数: 1065
  • 建立时间: 2008-05-04
  • 更新时间: 2008-05-04

RSS订阅

Open Toolbar