Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Query works fine in 8i and not in 9i
Are you suggesting that he do a Wolfgang?
8-)) Ruth
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Wolfgang Breitling
Sent: Wednesday, August 11, 2004 12:27 PM
To: oracle-l_at_freelists.org
Subject: Re: Query works fine in 8i and not in 9i
Hmm, I never received the original post. So I'll reply to the reply.
"Guerra, Abraham>I have a query that runs fast in SUN 8i and terrible in HP 9i.=20
> J"
> <AGUERRA_at_amfam.co To
> m> <oracle-l_at_freelists.org>
If both environment have the same amount of rows, then how come the number of rows expected from table PS_CLO_ACCT_TMP001 in the 8.1.7 plan is 1, whereas in the 9.2 plan it is 499? The numbers of expected rows for ledger are different too, but it is a bit harder to compare because different indexes are being used.
Have a closer look at the statistics of your tables and perhaps run a 10053 trace to find out why the 9.2 optimizer chooses a different path. But it seems to me that the statistics are quite different, particularly for the temp table. In the 8.1.7 case it looks as if the statistics were gathered when the temp table was empty and maybe in the 9.2 instance the temp table has no statistics at all?
Regards
Wolfgang Breitling
Centrex Consulting Corporation
www.centrexcc.com
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html ----------------------------------------------------------------- ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Wed Aug 11 2004 - 11:33:59 CDT
![]() |
![]() |