Hello;
The Patition Range Iterator
scan all partitions which satisfy the where-clause on the partition-criteria;
Due to the query every selected partiton is scanned full
;
In the explain-plan there also should the start and stop-pertiition id, so you can see how many partitions are involved;
1 0 PARTITION RANGE (ITERATOR)
2 1 TABLE ACCESS (FULL) OF 'GL_JE_LINES' (Cost=2324 Card=560
2 Bytes=39214)
and Foll. is the partition info.
partition by range (effective_date)
(partition gl_je_lines_p0 values less than (to_date('01-JUL-2001','DD-MON-YYYY')),
partition gl_je_lines_p1 values less than (to_date('01-SEP-2001','DD-MON-YYYY')),
partition gl_je_lines_p2 values less than (to_date('01-DEC-2001','DD-MON-YYYY')),
partition gl_je_lines_p3 values less than (to_date('01-APR-2002','DD-MON-YYYY')),
partition gl_je_lines_p4 values less than (to_date('01-JUL-2002','DD-MON-YYYY')))
Thanks,
Sam
------------------------
To handle yourself, use your head. To handle others, use your heart
Partition Range Iterator means using more than one partition but not all them to complete your query, so that it will fully scan one by one.
If it use all partitions, that will be Partition Range All. If it use only one, Partition Range will not appear in EXPLAIN PLAN.
Oracle Certified Master - September, 2003, the Second OCM in China
*** LOOKING for PART TIME JOB***
Data Warehouse & Business Intelligence Expert
MCSE, CCNA, SCJP, SCSA from 1998
Have you seen PSTART and PSTOP in your EXPLAIN PLAN?
See Also: Oracle 9i Database Perfornamce Guide and Reference P9-11.
Oracle Certified Master - September, 2003, the Second OCM in China
*** LOOKING for PART TIME JOB***
Data Warehouse & Business Intelligence Expert
MCSE, CCNA, SCJP, SCSA from 1998
Bookmarks