Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> explain plan question
Hi.
I have executed an explain plan on a dev and prod databases. Both databases have the same data, use the same version of ORacle (8.1.7.0) and the same OS (AIX 4.3.3). All the tables are analyzed. The plans however are somewhat different (below). What could explan the differences? For example, index usage (one plan uses an index to get to all the data, another - access the index and then the table). All the indices are the same on both databases. when I tried to force ORacle to use the indices with hints, the cost grew from 322 to 566. MY concernt is that I may not be able to tune a query if I can't replicate the explain plan exactly in dev as it is in production.
Thanks for any input
Gene
0-0-3211.321 SELECT STATEMENT SQL1 Cost = 321 1-0-1 2.1 SORT GROUP BY 2-1-1 3.1 NESTED LOOPS 3-2-1 4.1 HASH JOIN OUTER 4-3-1 5.1 HASH JOIN OUTER 5-4-1 6.1 HASH JOIN 6-5-1 7.1 TABLE ACCESS FULL TELESLS_EMPL 7-5-2 7.2 INDEX RANGE SCAN TS_EMP_HST_ALT1 UNIQUE 8-4-2 6.2 INDEX FAST FULL SCAN PERF_STATS_ALT1UNIQUE
0-0-3231.323 SELECT STATEMENT SQL1 Cost = 323 1-0-1 2.1 SORT GROUP BY 2-1-1 3.1 NESTED LOOPS OUTER 3-2-1 4.1 NESTED LOOPS OUTER 4-3-1 5.1 NESTED LOOPS 5-4-1 6.1 HASH JOIN 6-5-1 7.1 TABLE ACCESS FULL TELESLS_EMPL 7-5-2 7.2 INDEX RANGE SCAN TS_EMP_HST_ALT1 UNIQUE 8-4-2 6.2 INDEX UNIQUE SCAN ORG_UNT_HST_PK UNIQUE 9-3-2 5.2 TABLE ACCESS BY INDEX ROWID PERF_STATS 10-9-1 6.1 INDEX RANGE SCAN PERF_STATS_FK2_XNON-UNIQUE
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (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). Received on Thu Jun 06 2002 - 16:48:08 CDT
![]() |
![]() |