Oracle 8 Linked Server - Extremely Slow Performance

We have a Oracle 8 database set up as a Linked Server in our installation of SQL Server 2000.

When running simple "SELECT * FROM WHERE" queries it's running very slow.

For example, the query "SELECT * FROM Commitment WHERE Week = 200430" takes between 17 and 23 seconds to run on SQL Server.  The same query using a linked table via Access 97 takes milliseconds to run.

Has anyone any ideas as to what is slowing the performance?

[SQL Server 2000
Windows NT4
Oracle 8]
LVL 5
joboyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

illCommented:
please, provide more datails
query is running using openquery?
connection is of type ?  ado, ole, odbc ?
0
joboyAuthor Commented:
Query that creates the view from the Linked Server

CREATE VIEW dbo.v_MARS_COMMITMENT
AS
SELECT     CMMT.*
FROM         OPENQUERY(MISPRD, "SELECT * FROM COMMITMENT WHERE REVISED_WEEK='200434'") CMMT

Query that is taking approx 17secs is executed using Query Analyser with a simple "SELECT * FROM v_MARS_COMMITMENT".
0
illCommented:
what's the connection type of MISPRD?
there are speed problems with odbc connections .
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

joboyAuthor Commented:
The MISPRD connection is setup using ODBC on the SQL Server box.  The connection uses the Oracle 8 driver.  I have tried changing the driver to the Microsoft Oracle ODBC driver, but this had no impact on performance.
0
illCommented:
i suggest ,change to Microsoft OLE DB Provider for Oracle.
perhaps you're getting all rows from oracle server to mssql and condition runs afterwards on your sql box only.
0
joboyAuthor Commented:
>i suggest ,change to Microsoft OLE DB Provider for Oracle.

I have set up a new ODBC connection to MISPRD (now know as MS_MISPRD) using the Microst Oracle driver and created a new Linked Server to the new ODBC connection using the "Microsoft OLE DB Provider for Oracle".  This has made no difference in speed.

>perhaps you're getting all rows from oracle server to mssql and condition runs afterwards on your sql box only.

I have already tried to eliminate this possibility.  Originally the query creating the view did not have a WHERE clause.  Without the WHERE clause the query took minutes to run.  The WHERE clause was added to see if it increased performance, implying the reduction of results returned by the Oracle server.  The increased performance seen would suggest that the condition is not being run on the SQL box.
0
Brendt HessSenior DBACommented:
For this particular pattern, it may be that you have a communications protocol set up as the default protocol on your WINDOWS box that is not shared with the Oracle server.  Does a simple OPENQUERY run in Query Analyzer have the same issue?
0
Melih SARICAOwnerCommented:

Just Try this for adding a link server

EXEC sp_addlinkedserver
   @server = '<UR Linked Server Name>',
   @srvproduct = 'Oracle',
   @provider = 'MSDAORA',
   @datasrc = 'TNSName'
GO

Melih SARICA
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Melih SARICAOwnerCommented:

ODBC always slow down the performance

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.