首頁 > 資料庫 > mysql教程 > SQL Server 2012 连接 Oracle 11gR2 Database

SQL Server 2012 连接 Oracle 11gR2 Database

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
發布: 2016-06-07 17:43:20
原創
1363 人瀏覽過

SQL Server 2012 连接 Oracle 11gR2 DatabasePosted on 测试目的:Oracle database connect MSSQL 2012 测试环境:1. Oracle 11gR2 64bit On linux 2. SQL Server 2012 64 bit on Windows 7 测试步骤: Step 1: install ORACLE ODAC 64bit. You shouldn't in

SQL Server 2012 连接 Oracle 11gR2 Database Posted on

测试目的:Oracle database connect MSSQL 2012

测试环境:1. Oracle 11gR2 64bit On linux

                 2. SQL Server 2012 64 bit on Windows 7

测试步骤:

Step 1: install ORACLE ODAC 64bit. You shouldn't install the oracle client for windows. Just only download and install ODAC on the server which is running SQL Server. If your SQL Server is for 32bit, you must download 32bit ODAC. The download site is

Step 2: configure the TNS on oracle home directory. Because ODAC is components which is used for connecting ORACLE database, the NETMGR and NETCA is not installed on the server. So, you should configure Oracle TRANSNAMES file by manual. The simply way is copy it from other server and reconfigure.

Step 3: restart the MSSQLSERVER service to register the Oracle provider.

Step 4: Open SSMS to create DB Links for oracle on MSSQL. Check the provide and you can find the new provider

clip_image001

If you don't want to use command to create oracle DB Links, you can use the graph interface.

Linked Server : Create new DB Link Name what you want;

Privider : Choice Oracle Provider for OLE DB

Data source: the TNS name which you create at the last steps.

clip_image002

Step 5: input the username and password for connecting Oracle.

clip_image003

Step 6: Test the DB Links

In normal way,the error is displayed if we query the table in Oracle database using [db_link].[database].[schema].[table].

the error is :

Msg 7312, Level 16, State 1, Line 1

Invalid use of schema or catalog for OLE DB provider "OraOLEDB.Oracle" for linked server "ORCL_A01". A four-part name was supplied, but the provider does not expose the necessary interfaces to use a catalog or schema.

After changes the table name to [db_link]..[schema].[table] format, the query can be worked.

,香港服务器,美国服务器,香港服务器
相關標籤:
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
ruby - rails server 啟動報錯,內詳
來自於 1970-01-01 08:00:00
0
0
0
提交管理員密碼後報錯500 internal server error
來自於 1970-01-01 08:00:00
0
0
0
nginx設定server模組的問題
來自於 1970-01-01 08:00:00
0
0
0
phpstudy apache http server已停止運作
來自於 1970-01-01 08:00:00
0
0
0
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板