Connecting to Microsoft SQL Server database from Oracle using Database Gateway for SQL Server Following steps are involved. Please note that this steps are shown for Linux/Unix platform but for Windows also similar steps are to be followed. 1. Download Oracle Database Gateways CD if you have not already installed it 2. Install Oracle Database Gateway for Microsoft SQL Server 3. Configure Database Gateway for Microsoft SQL Server (DG4MSQL) Download the software Download Oracle Database Gateways from Oracle eDelivery site. If you database version 11.2.0.3 please upload 10404530 patch:
11
Embed
Connecting to Microsoft SQL Server database from Oracle using Database Gateway for SQL Server
Following steps are involved. Please note that this steps are shown for Linux/Unix platform but for Windows also similar steps are to be followed. 1. Download Oracle Database Gateways CD if you have not already installed it 2. Install Oracle Database Gateway for Microsoft SQL Server 3. Configure Database Gateway for Microsoft SQL Server (DG4MSQL)
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Connecting to Microsoft SQL Server database from Oracle using Database Gateway for SQL Server
Following steps are involved. Please note that this steps are shown for Linux/Unix platform but for Windows also similar steps are to be followed.
1. Download Oracle Database Gateways CD if you have not already installed it2. Install Oracle Database Gateway for Microsoft SQL Server3. Configure Database Gateway for Microsoft SQL Server (DG4MSQL)
Download the softwareDownload Oracle Database Gateways from Oracle eDelivery site.
If you database version 11.2.0.3 please upload 10404530 patch:
Oracle Database 11g Release 2 (11.2.0.3) is available in the latest media pack. You can also download the software from My Oracle Support Web site:
https://support.oracle.com
To download the software from My Oracle Support:
1. Log on to My Oracle Support.2. Click Patches & Updates.3. In the Patch Search section, click the Search tab.4. Enter 10404530 in the patch number field.5. Select a platform to download.6. Click Search.7. In the Patch Search Results page, under Patch Name, click the patch number to display the
patch details.8. Click Download.9. From the File Download window, click each file name to download the selected software.
Table 1 Installation Types and Associated Zip Files
Installation Type Zip File
Oracle Database (includes Oracle Database and Oracle RAC)
Note: you must download both zip files to install Oracle Database.
Install Oracle Database Gateway for Microsoft SQL serverUnzip the downloaded zip file. It will create a directory named “gateways”Change the directory to gateways and start installer.
-bash-3.00$ cd /software/11gR2-Gateways/gateways/-bash-3.00$ ./runInstaller
Click Next
Select name for the Oracle Home. The Path defaults to Oracle Home. No need to change the same.
Select Oracle Database Gateway for Microsoft SQL Server and click Next
Provide any existing Microsoft SQL Server details where you are planning to connect. It actually writes this in a config file and does not really verify.
This can be changed later also in the configuration file. Click Next
Click Install
Once it prompts with above screen, open another shell and run the script as root
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=<host>)(PORT=1551)) (CONNECT_DATA=(SID=dg4msql)) (HS=OK))
OK (0 msec)
Create a new database link pointing to this TNS using SQL Server login credentials. This username must be already created in the Microsoft SQL Server database.
SQL> CREATE DATABASE LINK sqlserver CONNECT TO “SQLUser” IDENTIFIED BY “SQLPass” USING ‘dg4msql';