You are on page 1of 9

Guide for SQL Server linked server from

“SQL Server to Oracle”

Bryan M. Binuya
May 31, 2016
Change Control

Author Date Version Comment


Bryan M. Binuya 31-May-2016 1.0
Overview

SQL linked server execute commands against OLE DB data sources outside of the instance of
SQL Server. Typically linked servers are configured to enable the Database Engine to execute a
Transact-SQL statement that includes tables in another instance of SQL Server, or another
database product such as Oracle. Many types OLE DB data sources can be configured as
linked servers, including Microsoft Access and Excel.
Step1: Request to open port 1521

Download instantclient-basic-windows.x64-11.2.0.4.0 - SQLPlus (this is used to test the


connectivity of the SQL server to the target Oracle Server)

Download ODAC121010_x64 and install the item below:

Step2: Keep the reference file path of the installation process.


Step 3: Open a window browser and go to this path:
D:\app\its68bb2\product\12.1.0\client_1\Network\Admin

Open the filename: tnsnames.ora


Step 4: Change the “HOST” to designated server example: TCSVDB101 to IP Address
10.240.70.19

Step 5: Open the SQL Server Management Studio 2008 and to “Server Object”, “Linked
Servers” then “Providers”. Locate the “OraOLEDB.Oracle”. Right click and tick the checkbox
under “Allow inprocess”

*NOTE* Restart the SQL Server Services to take effect the changes.

Step 6: Create a Linked Server by going to “Server Object” then ”Linked Servers”. Right click
and select “New Linked Server”.
Under “General” tab supply the information below. Ex.

5
Then for “Security” tab. Please input the credential of Oracle Server under “Be made using this
security context:
Remote login:
With password:

Then click “OK”


Step 7: Locate the created linked server then press right click. Select “Test Connection”. The
message box will pop-up with the message “The test connection to the linked server
succeeded”. If properly configured.

You might also like