在SQL Server2008 上建立Oracle 链接服务器
2010-11-10 14:30
197 查看
Install Oracle Database 10g Client Release 2
Install using the InstantClient option
Install Oracle 10g Release 2 ODAC
(64-bit
, 32-bit
)
Select the Oracle Data Access Components option (not .NET!)
Edit TNSNAMES.ora
<install directory>Product10.2.0ClientnetworkADMINTNSNAMES.ora (i.e. C:OracleProduct10.2.0ClientnetworkADMINTNSNAMES.ora)
There is a very specific format to the network configuration file.
Here is an example to get you started (just copy & paste multiple
entries if necessary):
There are a couple of things you need to change:
HOST = SERVERNAME
. The value SERVERNAME should be changed to reflect the actual address or hostname of the target system.
SERVICE_NAME = FRIENDLYNAME
. FRIENDLYNAME is the name by which you refer to this actual connection.
REBOOT!
Configure provider in SQL Server
OraOLEDB.Oracle Provider Menu Item
Databases→DBName→Server Objects→Linked Servers→Providers→OraOLEDB.Oracle→Properties→Enable “Allow inprocess”
Create a linked server to the Oracle Database
General
Linked Server
: A name of your choosing which you will use when querying using four-part naming conventions.
Provider
: Oracle Provider for OLE DB
Product Name
: “Oracle” is fine here
Data Source
: This should match the HOST you defined in TNSNAMES.ora
Create a Linked Server
Security
Select Be made using this security context
and supply the remote login and password
Query the linked server:select * from openquery (TESTKM,'select * from DOC_SUBJECT')
Install using the InstantClient option
Install Oracle 10g Release 2 ODAC
(64-bit
, 32-bit
)
Select the Oracle Data Access Components option (not .NET!)
Edit TNSNAMES.ora
<install directory>Product10.2.0ClientnetworkADMINTNSNAMES.ora (i.e. C:OracleProduct10.2.0ClientnetworkADMINTNSNAMES.ora)
There is a very specific format to the network configuration file.
Here is an example to get you started (just copy & paste multiple
entries if necessary):
DMDEV = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = SERVERNAME)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = FRIENDLYNAME) ) )
There are a couple of things you need to change:
HOST = SERVERNAME
. The value SERVERNAME should be changed to reflect the actual address or hostname of the target system.
SERVICE_NAME = FRIENDLYNAME
. FRIENDLYNAME is the name by which you refer to this actual connection.
REBOOT!
Configure provider in SQL Server
OraOLEDB.Oracle Provider Menu Item
Databases→DBName→Server Objects→Linked Servers→Providers→OraOLEDB.Oracle→Properties→Enable “Allow inprocess”
Create a linked server to the Oracle Database
General
Linked Server
: A name of your choosing which you will use when querying using four-part naming conventions.
Provider
: Oracle Provider for OLE DB
Product Name
: “Oracle” is fine here
Data Source
: This should match the HOST you defined in TNSNAMES.ora
Create a Linked Server
Security
Select Be made using this security context
and supply the remote login and password
Query the linked server:select * from openquery (TESTKM,'select * from DOC_SUBJECT')
相关文章推荐
- 用sp_addlinkedserver建立链接服务器(sql server2008中通过测试)
- 建立sqlserver指向oracle的链接服务器
- 用sp_addlinkedserver建立链接服务器(sql server2008中通过测试)
- SQL SERVER 2005 通过链接服务器 访问 ORACLE 的快速设定方法
- sql建立跨服务器链接
- sql server数据库如何建立数据链接到ORACLE数据库,并通过链接查询ORACLE中的表。
- 建立SQL链接服务器
- 阿里巴巴 静态数据项目 (SQL SERVER 通过链接服务器访问ORACLE 存储过程 )
- SQL Server的链接服务器(MySQL、Oracle、Ms_sql、Access、SYBASE)
- 在64位SQL Server中创建Oracle的链接服务器 Link Server
- 【Vegas原创】Oracle Dblink(链接服务器)创建(Oracle对Oracle的链接)以及SQL对Oracle的互访方法
- 无法创建链接服务器 "ORCL" 的 OLE DB 访问接口 "OraOLEDB.Oracle" 的实例 (错误:7302)
- SQLSERVER建立链接服务器命令
- Oracle 客户端配置后,同时再装服务器端出现的无法同时链接远程服务器和本地的问题
- 在64位SQL Server中创建Oracle的链接服务器
- SQL2005如何建立链接服务器
- 用sp_addlinkedserver建立链接服务器
- 在SQL Server 2000中添加Oracle链接服务器
- android 发送UDP广播,搜寻服务器建立socket链接
- 查看某时刻oracle客户端链接数以及客户端服务器的名称