Tip

Linking SQL Server 2000 to Oracle 8i

The following were the steps we took to create a Linked Server from SQL Server 2000 to Oracle 8i.

  1. Install the Oracle client on the SQL Server host machine.
  2. Do this registry edit (for Microsoft Windows 2000):
     [HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSDTCMTxOCI]
     "OracleXaLib"="oraclient8.dll" 
     "OracleSqlLib"="orasql8.dll"  
     "OracleOciLib"="oci.dll"
    
  3. Create an ODBC Data Source to Oracle:
     System DSN -> Add
     Oracle ODBC driver
     Data Source Name = (Oracle Connect String - ex. ORACLE_PROD)
     Description = (Oracle Connect String - ex. ORACLE_PROD)
     Service Name = (Oracle Connect String - ex. ORACLE_PROD)
     UserID = sqldba (Oracle User ID)
    
  4. Reboot
  5. Set up the Linked Server:
     Provider Name = Microsoft OLE DB Provider for Oracle
     Product Name = (leave blank)
     Data Source = (DSN Name from step 3)
     Provider string = MSDAORA
    
  6. Test:
     Select * from ORACLE_PROD..(Database Schema).(Table Name)
    

Reader Feedback

Vlada B. writes: This is a great tip! I'll be sure to pass this along.

Mary C. writes: The accuracy of the tip is right on target. However, for an enterprise setup, this is giving a loaded gun to folks. Our experience with Oracle clients on our already overloaded SQL Server database servers has resulted in poorer performance and in some cases, eventual blue screens. Microsoft has lots of nice features for jobs on development boxes but it wrecks havoc

    Requires Free Membership to View

on our larger, shared enterprise servers. Even they say that a database server should remain only a database server (no extraneous files, clients, etc) if you want to get the best throughput and minimize problems.


This was first published in July 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.