我想在Microsoft SQLServer 2008 R2和Oracle之间创建链接服务器,我安装了ODAC112030_x64
和win64_11gR2_client
以及我的链接服务器设置,就像这段代码一样,测试时出错,错误是:
OLE DB provider "OraOLEDB.Oracle" for linked server "" returned message "ORA-03134" , Connections to this server version are no longer supported
我该如何解决这个问题?
/****** Object: LinkedServer [LINK2] Script Date: 06/25/2014 03:49:43 ******/
EXEC master.dbo.sp_addlinkedserver @server = N'LINK2', @srvproduct=N'Oracle', @provider=N'OraOLEDB.Oracle', @datasrc=N'(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ip address)(PORT = 1521))
)
(CONNECT_DATA =
(SID =jts)
)
)'
/* For security reasons the linked server remote logins password is changed with ######## */
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'LINK2',@useself=N'False',@locallogin=NULL,@rmtuser=N'username',@rmtpassword='########'
GO
EXEC master.dbo.sp_serveroption @server=N'LINK2', @optname=N'collation compatible', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'LINK2', @optname=N'data access', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'LINK2', @optname=N'dist', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'LINK2', @optname=N'pub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'LINK2', @optname=N'rpc', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'LINK2', @optname=N'rpc out', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'LINK2', @optname=N'sub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'LINK2', @optname=N'connect timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'LINK2', @optname=N'collation name', @optvalue=null
GO
EXEC master.dbo.sp_serveroption @server=N'LINK2', @optname=N'lazy schema validation', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'LINK2', @optname=N'query timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'LINK2', @optname=N'use remote collation', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'LINK2', @optname=N'remote proc transaction promotion', @optvalue=N'true'
GO
答案 0 :(得分:1)
我真的怀疑Oracle 11gr2客户端将向后兼容Oracle 8,尤其是使用64位驱动程序。尝试找到32位的Oracle 8或9客户端,然后使用32-ODBC进行数据连接。