Please Help,
I want to create Linked Server with Oracle DATABASE 10g with SQL Server 2012 in Windows server 2008 64bit OR Windows Server 2012 64bit please help I will be very thankful of you
Thanks and Regards
Faizan Ahmed
Please Help,
I want to create Linked Server with Oracle DATABASE 10g with SQL Server 2012 in Windows server 2008 64bit OR Windows Server 2012 64bit please help I will be very thankful of you
Thanks and Regards
Faizan Ahmed
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mohammad HussainRank #513 · 4.8K reputationPosted Aug 9, 2023, 8:09 AM EDT
Creating a linked server between SQL Server 2012 and Oracle 10g involves several steps. Please note that Oracle 10g is quite old, and you might face compatibility issues. Make sure you have the appropriate Oracle client installed on your SQL Server machine.
Here's a general outline of the process:
Install Oracle Client: Install the Oracle Client (version 10g) on your SQL Server machine. Make sure to install the correct version (32-bit or 64-bit) that matches your SQL Server installation.
Configure Oracle Client: Configure the Oracle Client by setting environment variables (like
ORACLE_HOME,PATH, etc.). Ensure that the Oracle client can connect to the Oracle 10g database.Configure tnsnames.ora: Edit the
tnsnames.orafile in your Oracle Client installation directory to define the connection details for your Oracle 10g database.Create Linked Server: In SQL Server Management Studio, connect to your SQL Server 2012 instance, and execute the following script to create the linked server:
EXEC sp_addlinkedserver @server = 'OracleLinkedServer', -- Name of the linked server @provider = 'OraOLEDB.Oracle', -- Provider for Oracle @srvproduct = 'Oracle', -- Product name for Oracle @datasrc = 'YourOracleServiceName', -- The Oracle service name defined in tnsnames.ora @provstr = 'USER ID=YourOracleUsername;PASSWORD=YourOraclePassword'; -- Connection credentialsTest Linked Server: You can now query Oracle tables from SQL Server using the linked server:
SELECT * FROM OracleLinkedServer..OracleSchema.OracleTableName