Oracle Linked Server

  • can anyone tell me how to set up a linked server to Oracle?

     

    i have tried but keep getting Error 7399: MSDAORA reported an error. OLE DB error trace. INitialize returned 0x80004005

     

    help me!

  • 1) Have you installed the oracle client on the server?

    2) Have you rebooted the server afterwards?

    3) Can you connect to the linked server by using the Oracle Tools on the server? (tnsping, ...) (not using sql server)

    Current linked server settings (out of my head, will correct it tomorrow)

    *note tables in ORACLE are in UPPERCASE*

    *selecting from oracle through sql : linkedservername..SCHEMA.TABLENAM*

    Linked server name myOracle

    Provider name= Microsoft OLEDB for Oracle

    Product name= Oracle

    Datasource = myOracleServer.world

    *edit*

    This article discusses how to setup an Oracle Linked server

    http://www.databasejournal.com/features/mssql/article.php/3290801

  • If you send me a private message with your email address and I'll send you a step by step guide on how we did it with some code samples.....

    Rich

  • 1) yes

    2) yes

    3) yes i can tnsping my Oracle DB.

    btw, this is a cluster. i have installed the Oracle client onto one of my two host nodes for my SQL instance.

    i still get the same error.

  • for step 3, have you also tried sqlplus to connect to the database from your cluster?

    I have no experience for clusters but it could be required that both hosts have to have the oracle client installed.

    *edit*

    a document of microsoft for troubleshooting linked oracle servers

    http://support.microsoft.com/default.aspx?scid=kb;en-us;280106

  • H!!,

         I feel you had missed out some steps in between ,follow these steps to configure linked server sucessfully

    1) Product name :  Oracle

    2) Datasource    :  SID of Oracle database

    3) Provider string is not mandatory

    For security

    !)Be made using this security context

        Remotelogin    : Username of Oracle database

        With password : Password

      By these configuration linked server will work file .

    Regards,

    Vinod (DBA)

    HTC Global Services

  • Hi,

    I had the same problem but after I have installed service pack 2 ( SQLServer2005SP2-KB921896-x86-ENU.exe ) problem doesn't exist anymore. Restart pc, be sure that all services are running (look at computer managment/services and applications/sql server 2005 services).

    Except sql you have to have oracle net asistent with created net service name. This service name you will use like data source.

    Go to sql server managment studio/server objects/right click/new linked server/write name of linked server, make Oracle provider for OLE db/write some name to product name/write the same data source from net assisten from oracle.

    Go to security and check "be made using this security context" and write login and password.

    Thats all.

  • This was great, of all the posts regarding setting up linked server for Oracle in SQL Server this was the simplest explanation as well as the only one that worked.

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply