Database Journal
MS SQL Oracle DB2 Access MySQL PostgreSQL Sybase PHP SQL Etc SQL Scripts & Samples Tips Database Forum

» Database Journal Home
» Database Articles
» Database Tutorials
MS Access
SQL Scripts & Samples
» Database Forum
» Slideshows
» Sitemap
Free Newsletters:

News Via RSS Feed

Database Journal |DBA Support |SQLCourse |SQLCourse2

Featured Database Articles


Posted Mar 1, 2003

Linking SQL Server to Heterogeneous Systems - Page 3

By DatabaseJournal.com Staff

MAK (Muthusamy Anantha Kumar)

Linked server to Oracle database :

Install and Configure Oracle Client

Get the IP address, database name, userID, password and port number used in Oracle server, from the Oracle database administrator. Install the Oracle client on the SQL Server box. Oracle client reads information about Oracle from the TNSNAMES.ORA file. Edit the Edit the TNSNAME.ORA file and update it with appropriate information, (ex. Below).

MyOracle =
  (description =
          (address_list =
                (address =
                 (community = Oraworld.world)
                 (protocol = tcp)
                 (host =
                 (port = 1527)
   (connect_data = (sid = oradatabase )


Create the ODBC System DSN for Oracle with the appropriate information on the SQL Server Box.

Create Linked Server for Oracle

Open the Enterprise manager, and right click on Linked Server under the Security Folder. Create a new linked server. Select OLE DB Provider for the Oracle Drivers. Give the same system ODBC DSN name that you created for Oracle in the textbox provided for DataSource. Provide userid and password in the provider string and security tab.

Test the connection by running the following SQL command in query analyzer.

Select * from openquery(MyOracle, "Select column1 from table1")

These are the major heterogeneous databases that we can access from SQL server using 3rd party supplied drivers and ODBC drivers. This will give you a general idea of how SQL server interacts with heterogeneous databases through Open Database connectivity.

MS SQL Archives

Comment and Contribute


(Maximum characters: 1200). You have characters left.



Latest Forum Threads
MS SQL Forum
Topic By Replies Updated
SQL 2005: SSIS: Error using SQL Server credentials poverty 3 August 17th, 07:43 AM
Need help changing table contents nkawtg 1 August 17th, 03:02 AM
SQL Server Memory confifuration bhosalenarayan 2 August 14th, 05:33 AM
SQL Server Primary Key and a Unique Key katty.jonh 2 July 25th, 10:36 AM