Connecting Tech Pros Worldwide Help | Site Map

Linked Servers

  #1  
Old October 31st, 2008, 03:35 PM
Dom
Guest
 
Posts: n/a
I posted this at SqlServer-programming group, but got no responses.

We have two servers, one MS SQL Server, the other Oracle. Sometimes
I
need to get data from oracle in the MyDatabase catalog, bring it to
MSSql, and join it to other tables and proceed from there. I would
like to use LInked Servers instead.

I did the following:


exec sp_AddLinkedServer
'ORACLE'
, 'MyDatabase'
, 'MSDAORA'
, 'x.x.x.x'


Of course, "x.x.x.x" was actually the IP address of the server.
"ORACLE" appears in my Lilnked Servers list in SSMS, but I can't view
any of the tables because "The OLD EB Provider MSDAORA has not been
registered."


Am I doing the right thing in the SQL Statement?
If so, how do I register the provider?


  #2  
Old October 31st, 2008, 11:55 PM
Erland Sommarskog
Guest
 
Posts: n/a

re: Linked Servers


Dom (dolivastro@gmail.com) writes:
Quote:
I posted this at SqlServer-programming group, but got no responses.
>
We have two servers, one MS SQL Server, the other Oracle. Sometimes I
need to get data from oracle in the MyDatabase catalog, bring it to
MSSql, and join it to other tables and proceed from there. I would like
to use LInked Servers instead.
>
I did the following:
>
>
exec sp_AddLinkedServer
'ORACLE'
, 'MyDatabase'
, 'MSDAORA'
, 'x.x.x.x'
>
>
Of course, "x.x.x.x" was actually the IP address of the server.
"ORACLE" appears in my Lilnked Servers list in SSMS, but I can't view
any of the tables because "The OLD EB Provider MSDAORA has not been
registered."
Funny, since MSDAORA is part of Windows, it should be there.

Then again, which version of Oracle do you use? MSDAORA is old and
dusty, and is good for Oracle 8, and maybe Oracle 9. For later versions,
you should definitely use Oracle's own provider.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

  #3  
Old November 3rd, 2008, 03:15 PM
Dom
Guest
 
Posts: n/a

re: Linked Servers


On Oct 31, 5:31*pm, Erland Sommarskog <esq...@sommarskog.sewrote:
Quote:
Dom (dolivas...@gmail.com) writes:
Quote:
I posted this at SqlServer-programming group, but got no responses.
>
Quote:
We have two servers, one MS SQL Server, the other Oracle. *Sometimes I
need to get data from oracle in the MyDatabase catalog, bring it to
MSSql, and join it to other tables and proceed from there. *I would like
to use LInked Servers instead.
>
Quote:
I did the following:
>
Quote:
exec sp_AddLinkedServer
* * * * 'ORACLE'
* * * * , 'MyDatabase'
* * * * , 'MSDAORA'
* * * * , 'x.x.x.x'
>
Quote:
Of course, "x.x.x.x" was actually the IP address of the server.
"ORACLE" appears in my Lilnked Servers list in SSMS, but I can't view
any of the tables because "The OLD EB Provider MSDAORA has not been
registered."
>
Funny, since MSDAORA is part of Windows, it should be there.
>
Then again, which version of Oracle do you use? MSDAORA is old and
dusty, and is good for Oracle 8, and maybe Oracle 9. For later versions,
you should definitely use Oracle's own provider.
>
--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se
>
Links for SQL Server Books Online:
SQL 2008:http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005:http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000:http://www.microsoft.com/sql/prodinf...ns/books.mspx- Hide quoted text -
>
- Show quoted text -
Thanks for the reply, Erland, but can you expand a little. I'm using
Oracle 10g. When I look at my list of providers, I see only seven of
them, most start with "MS" so I assume they are not Oracle's native
driver. What is the driver I should be using, and how do I register
it?
  #4  
Old November 3rd, 2008, 11:05 PM
Erland Sommarskog
Guest
 
Posts: n/a

re: Linked Servers


Dom (dolivastro@gmail.com) writes:
Quote:
Thanks for the reply, Erland, but can you expand a little. I'm using
Oracle 10g. When I look at my list of providers, I see only seven of
them, most start with "MS" so I assume they are not Oracle's native
driver. What is the driver I should be using, and how do I register
it?
If you are using Oracle 10g, you should not use MSDAORA. You need to
get hold of Oracle's OLE DB provider. As for how you do it, I have no
idea. I would kind of expect Oracle to have it available as a free download,
but who knows, maybe you have to pay for it.

I know at least one Oracle person who monitors this group, but you may
be better off asking in comp.databases.oracle about their provider. Or
just Google around...


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

  #5  
Old November 3rd, 2008, 11:25 PM
Geoff Muldoon
Guest
 
Posts: n/a

re: Linked Servers


In article <Xns9B4C2095639Yazorman@127.0.0.1>, Erland Sommarskog says...
Quote:
Dom (dolivastro@gmail.com) writes:
Quote:
Thanks for the reply, Erland, but can you expand a little. I'm using
Oracle 10g. When I look at my list of providers, I see only seven of
them, most start with "MS" so I assume they are not Oracle's native
driver. What is the driver I should be using, and how do I register
it?
>
If you are using Oracle 10g, you should not use MSDAORA. You need to
get hold of Oracle's OLE DB provider. As for how you do it, I have no
idea. I would kind of expect Oracle to have it available as a free download,
but who knows, maybe you have to pay for it.
>
I know at least one Oracle person who monitors this group, but you may
be better off asking in comp.databases.oracle about their provider. Or
just Google around...
http://www.oracle.com/technology/sof..._db/index.html

GM
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Catastrophic failures with linked servers cybertoast answers 0 May 2nd, 2007 10:35 PM
BCP and Bulk Insert to Linked Servers Ervs Sevilla via SQLMonster.com answers 5 July 23rd, 2005 09:31 AM
Problem with triggers between linked servers Hank answers 4 July 23rd, 2005 08:38 AM
Working Linked Servers Raghuraman answers 3 July 20th, 2005 03:12 AM