我有 Oracle 10 g 和 SQL Server 2014。SQL Server 主机名是server8.as.local
, login - 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 表示一切正常。
但是 PL/SQL Developer 查询select * from categories @ hsodbc
显示错误:
ORA-12154:
ORA-28545: 连接到代理时由 Net8 诊断出的错误