从Oracle 10g连接到SQL Server

时间:2016-11-30 19:54:45

标签: sql-server oracle oracle10g database-link

我有Oracle 10 g和SQL Server 2014.SQL Server主机名是server8.as.local,登录 - test2,passw - test2,DB - Northwind

这就是我所做的。

tnsnames.ora

hsodbc =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.1.13) (PORT = 1521))
)
(CONNECT_DATA = (SID = hsodbc))
(HS=OK)
)

listener.ora:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.1.13)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC = 
(SID_NAME = hsodbc)
(ORACLE_HOME = C:\oracle\product\10.2.0)
(program = hsodbc)
)
)

inithsodbc.ora:
HS_FDS_CONNECT_INFO = mymssql
HS_FDS_TRACE_LEVEL = 0
HS_OPEN_CURSORS = 300 

使用名称mymssql。

创建的ODBC DSN

我还创建了一个数据库链接命令:

create database link hsodbc connect to "test2" identified by "test2" using 'hsodbc'

执行tnsping hsodbc说一切正常。

但要查询select * from categories @ hsodbc的PL / SQL Developer会显示错误:

  

ORA-12154:
  ORA-28545:连接到代理时由Net8诊断出的错误

0 个答案:

没有答案