Re: Oracle Linked Servers

From: Michael D. Long (michael.d.long-nospam_at_comcast.net)
Date: 09/02/04


Date: Wed, 1 Sep 2004 23:12:21 -0400

To use distributed transactions with the Oracle OLE DB Provider in your
environment you'll need to install the Oracle Service for MTS.

-- 
Michael D. Long
Microsoft MVP - Windows SDK
"Craig" <anonymous@microsoft.com> wrote in message
news:e4p3OsDkEHA.3968@TK2MSFTNGP11.phx.gbl...
> I've got an Oralce 8i db that I'm running as a Linked Server inside SQL
> Server 2000.  Linking seems to work well.  Then I fire off a few queries
via
> Query Analyzer at a table with ~3000 rows of data, and get the following
> responses . . .
>
> select top 1000 * from table - executes in 1 second
> select top 2000 * from table - executes in 1 second
> select top 3000 * from table - executes in 1 second
>
> select top 4000 * from table - runs for > 5 minutes
> select * from table - runs for > 5 minutes
>
> Some additional comments on my setup -
>
> 1. I created a blank database in sql server
>
> 2. I created a set of views in sql server, one view for each table in
> oracle, with a "select * from [oracle table]" for each view (acutally used
> correct syntax to pull oracle data - above select is hypothetical ;-)
>
> 3. I have a few reporting views in sql server that aggregate base views;
but
> that is the extent of view nesting, 2 deep
>
> Any comments?  I was originally wanting to write things off to RAM, but
I'm
> wondering if there are issues with the ODBC / translation of the
termination
> of data.  I'm using the Microsoft OLE DB Provider for Oracle to link the
> databases.  When I try the Oracle OLE DB Provider, the tables show up in
the
> linked server but any Query Analyzer queries agains them error out with
the
> following:
>
> Server: Msg 7320, Level 16, State 2, Line 2
> Could not execute query against OLE DB provider 'OraOLEDB.Oracle'.
> OLE DB error trace [OLE/DB Provider 'OraOLEDB.Oracle'
ICommandText::Execute
> returned 0x80040155].
>
> Thanks for any help.
>
> -craig
>
>


Relevant Pages

  • Re: .NET data provider or OLEDB provider?
    ... >I don't see where you see a built-in query engine. ... >service provider, ... >OLE DB providers don't have to support SQL however, ... > SQL Server linked server, SQL Server can handle the queries. ...
    (microsoft.public.data.oledb)
  • Re: simple question re DELETEing in linked DB
    ... Could not execute query against OLE DB provider 'SQLOLEDB'. ... >>If the remote table is a SQL Server table linked through the OLEDB ...
    (microsoft.public.sqlserver.programming)
  • RE: Linked server data length issue
    ... I've no experience with Postgres or its OLE DB provider, ... reasonable to assume that you were connecting to another SQL Server ... OLE DB provider for Postgres, of if you use the MSDASQL provider, OLE DB ...
    (microsoft.public.sqlserver.server)
  • Re: Can you use the OleDb classes for SQL Server?
    ... No. Oracle uses different syntax, data flow and other methodologies in their ... that uses the OracleClient .NET data provider to access Oracle. ... Hitchhiker's Guide to Visual Studio and SQL Server ... I agree that it would be neat to just call a stored procedure for the ...
    (microsoft.public.dotnet.framework.adonet)
  • Oracle-DB an SQL-Server anbinden
    ... Hierfür habe ich auf dem SQL-Server einen Verbindungsserver über ... den OLE DB Provider 'MSDAORA' eingerichtet. ... [OLE/DB provider returned message: Oracle Client- und Netzwerkverbindung ...
    (microsoft.public.de.sqlserver)