Oracle provider for OLEDB not found in SQL Server 2012

Faizan Ahmed 1 Reputation point
2023-08-15T09:33:40.2233333+00:00

I have installed Oracle 10g Database in Windows 2012 Server R2 but still Oracle provider for OLEDB not found in SQL Server 2012 (OraOLEDB.Oracle)

Please help how to add OraOLEDB.Oracle in SQL Server 2012 for creating Linked Server with Oracle 10g

SQL Server | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Amira Bedhiafi 33,631 Reputation points Volunteer Moderator
    2023-08-15T11:39:53.3733333+00:00

    If you have installed Oracle 10g but the OLEDB provider is still not available, you might need to install Oracle Data Access Components (ODAC). Download the appropriate version from the Oracle website and install it.

    Then you need to register the OraOLEDB.Oracle Provider:

    • Open a command prompt as an administrator.
    • Navigate to the Oracle's bin directory where OraOLEDB10.dll resides.
    • Run the command: regsvr32 OraOLEDB10.dll

    And then configure the OLEDB Provider in SQL Server:

    • Open SQL Server Management Studio (SSMS) and connect to your SQL Server instance.
    • Expand the "Server Objects" folder and right-click on "Linked Servers," then choose "New Linked Server."
    • On the "General" page, choose the "Other data source" option.
    • In the "Provider" dropdown, select "Oracle Provider for OLE DB" (if you don't see it, make sure the Oracle OLE DB provider is installed and registered).
    • Enter the Product Name as "Oracle."
    • In the Data Source box, enter the Oracle server's TNS name.
    • On the "Security" page, enter the credentials used to connect to the Oracle server.

    You may also need to provide the necessary permissions to the SQL Server service account to access Oracle.

    It might be necessary to restart the SQL Server service and possibly the Oracle service for the changes to take effect.

    • In SQL Server Management Studio, expand "Server Objects," then "Linked Servers."
    • Right-click on the linked server you just created and choose "Test Connection."

    If you continue to encounter issues, make sure:

    • Oracle Client and ODAC are compatible with Oracle 10g and your Windows version.
    • There are no firewall or network issues preventing the connection.
    • The bitness (32-bit or 64-bit) of the Oracle client matches that of SQL Server.

  2. ZoeHui-MSFT 41,491 Reputation points
    2023-08-16T09:29:15.7933333+00:00

    Hi @Faizan Ahmed,

    Here is a detailed blog mentioned about how to create a linked server with Oracle in SQL Server.

    You may take a carefully reference to see if you missed any steps.

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  3. Javier Villegas 905 Reputation points MVP
    2023-08-16T17:10:10.56+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.