SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Oracle Linked Server


Oracle Linked Server

Author
Message
izzywith5
izzywith5
SSC Eights!
SSC Eights! (854 reputation)SSC Eights! (854 reputation)SSC Eights! (854 reputation)SSC Eights! (854 reputation)SSC Eights! (854 reputation)SSC Eights! (854 reputation)SSC Eights! (854 reputation)SSC Eights! (854 reputation)

Group: General Forum Members
Points: 854 Visits: 33

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!





Jo Pattyn
Jo Pattyn
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6773 Visits: 10009

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


Richard Gardner-291039
Richard Gardner-291039
SSC Eights!
SSC Eights! (843 reputation)SSC Eights! (843 reputation)SSC Eights! (843 reputation)SSC Eights! (843 reputation)SSC Eights! (843 reputation)SSC Eights! (843 reputation)SSC Eights! (843 reputation)SSC Eights! (843 reputation)

Group: General Forum Members
Points: 843 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


izzywith5
izzywith5
SSC Eights!
SSC Eights! (854 reputation)SSC Eights! (854 reputation)SSC Eights! (854 reputation)SSC Eights! (854 reputation)SSC Eights! (854 reputation)SSC Eights! (854 reputation)SSC Eights! (854 reputation)SSC Eights! (854 reputation)

Group: General Forum Members
Points: 854 Visits: 33

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.





Jo Pattyn
Jo Pattyn
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6773 Visits: 10009

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


vinod-228002
vinod-228002
SSC-Enthusiastic
SSC-Enthusiastic (148 reputation)SSC-Enthusiastic (148 reputation)SSC-Enthusiastic (148 reputation)SSC-Enthusiastic (148 reputation)SSC-Enthusiastic (148 reputation)SSC-Enthusiastic (148 reputation)SSC-Enthusiastic (148 reputation)SSC-Enthusiastic (148 reputation)

Group: General Forum Members
Points: 148 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


Jagger-784276
Jagger-784276
SSC-Enthusiastic
SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)

Group: General Forum Members
Points: 160 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.
jamie.greiver
jamie.greiver
SSC-Enthusiastic
SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)

Group: General Forum Members
Points: 164 Visits: 181
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search