Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Query performance dramatically different
Hello,
I have encountered a weird problem last week and been dealing with it since. I have a query that is accessing several tables in remote Teradata databases using Oracle OpenGateway( formerly known as Transparent GW). The problem is that the same query is finishing either in 30 seconds or in 30 minutes with this pattern:
All statements are executed againts the very same database, with no
changed parameters for actual session, using same user and same
TNSNAMES.ORA section.
I have tried to use event 10053 to evaluate execution plans (they are
my primary concern because of nature of the problem), but it looks like
event 10053 is not supporting OpenGateway connections to non-Oracle
databases. The same applies for SQL_TRACE facility.
I also tried event 10053 with a local select just to get all CBO
related parameters. I was successful, but they are obviously identical.
Using explain plan I got two variants, a quick one from my computer
(though not very describing):
and the slow one from my colleague:
My not very well-founded theory is that the slow variant is using Oracle database as a driving site (more information from explain plan), while the fast one is using Teradata (less explain information, better performance because all data used for query are there), but I can't prove this theory and we were unable to tune statement using DRIVING_SITE hint (we even do not know if it is supported for OpenGateway connections). Does anyone has some idea what can be causing this behaviour.
Thank you
-- Dusan BolekReceived on Wed Feb 01 2006 - 01:58:39 CST