Robert,

Seven reasons I can think of include changes to:

1. Oracle instance parameter values (changes when you edit the
parameters, whether in the stored "init.ora" way, or via ALTER SYSTEM or
ALTER SESSION commands)
2. Database table and index statistics (changes, e.g., when you run
dbms_stats.gather_database_stats)
3. System CPU and I/O statistics (changes, e.g., when you run
dbms_stats.gather_system_stats)
4. Database schema configuration (changes when you create/drop indexes,
etc.)
5. Stored outlines (changes when you create or reassign outlines)
6. SQL text (changes when you manipulate the application SQL)
7. Oracle query cost model (changes when you upgrade or patch your
Oracle kernel)


Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- 2003 Hotsos Symposium, Feb 9-12 Dallas
- RMOUG Training Days 2003, Mar 5-6 Denver
- Hotsos Clinic 101, Mar 26-28 London


-----Original Message-----
Freeman
Sent: Sunday, January 19, 2003 1:24 AM
To: Multiple recipients of list ORACLE-L

Hey Ya'all... (still got my southern roots even up here in Chicago!)

Anyone want to throw in some possible reasons why an execution plan
might
change for a given table query....This is on Oracle9iR2 on SUN. I've
looked
at the obvious causes:

1. Object has changed - Appears not to have changed.
2. Database parameters have changed - Appears that no parameters have
changed.
3. Statistics (data volumes, distribution, cardinality, etc) have
changed -
Still looking into this, but the volumes have not changed dramatically
even
if they have changed.
4. Other physical database changes.

None of these seem to apply. I've got a database that a few weeks ago
were
doing indexed
lookups using a partitioned index on a partitioned table. Now, it seems
that
these queries
are doing full table scans on this partitioned table. I'm still
gathering up
the details for the items above (e.g how much have the objects changed)
and
I'll probably run a 10053 trace on one of the bad queries to see what
the
optimizer is doing on Monday, but I'd like to just poll for some
additional
ideas. I *AM* getting partition elimination (thank goodness) but I've
got
two FTS on one partition of this table that are just killing it. They
want
to quantify the reason why this access has changed so I'm trying to
think of
what kinds of stuff I can look at to try to do this.

I will add that this table was just rebuilt recently (through
imp/exp)...
can the change in row to block density make the difference.... hmmmm....

Any ideas??

RF

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Robert Freeman
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Cary Millsap
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to