Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Oracle Linked Server Expand / Collapse
Author
Message
Posted Tuesday, January 17, 2006 11:58 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Friday, July 5, 2013 12:00 PM
Points: 813, Visits: 30

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!




Post #251377
Posted Tuesday, January 17, 2006 12:20 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 12:08 PM
Points: 1,389, Visits: 6,313

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

Post #251383
Posted Wednesday, January 18, 2006 5:18 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, April 17, 2014 3:29 AM
Points: 238, Visits: 421

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

Post #251602
Posted Wednesday, January 18, 2006 10:59 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Friday, July 5, 2013 12:00 PM
Points: 813, Visits: 30

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.




Post #251748
Posted Wednesday, January 18, 2006 11:39 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 12:08 PM
Points: 1,389, Visits: 6,313

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

Post #251763
Posted Wednesday, January 18, 2006 8:47 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, January 23, 2006 10:11 PM
Points: 32, Visits: 1

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

Post #251888
Posted Friday, December 12, 2008 7:28 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, June 11, 2010 11:33 AM
Points: 38, Visits: 172
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.
Post #618588
Posted Friday, August 17, 2012 9:51 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, August 1, 2014 4:37 PM
Points: 14, Visits: 132
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.
Post #1346631
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse