困扰了我2天的问题~~在sql2005上建oracle10g的链接服务器
配置 tnsnames.ora 打开cmd.exe ,输入tnsping 实例名 得到结果:
Microsoft Windows [版本 6.1.7600]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>tnsping wzjydbo
TNS Ping Utility for 64-bit Windows: Version 10.2.0.4.0 - Production on 31-JAN-2
013 08:47:44
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = ceshi)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = WZJYDBO)))
OK (330 msec)
打开sqlplus ,使用 连接字符串,正常进入
打开 net manager , 测试 通过.
sql2005上新建链接服务器,跟测试服务器上建的一样,用openquery 查询,返回结果:
链接服务器"WZJYDBO2"的 OLE DB 访问接口 "OraOLEDB.Oracle" 返回了消息 "ORA-12154: TNS:could not resolve the connect identifier specified"。
消息 7303,级别 16,状态 1,第 1 行
无法初始化链接服务器 "WZJYDBO2" 的 OLE DB 访问接口 "OraOLEDB.Oracle" 的数据源对象。
哪位大神救救我吧~ 煎熬了我2天了~~~