Database Security Products (MOSC)

MOSC Banner

Wrong Rows estimation with dynamic partition pruning

edited Mar 22, 2011 3:57PM in Database Security Products (MOSC) 6 commentsAnswered ✓
Hi all,
The database version 11.1. Rac 4 nodes. I encountered one sql that runs slowly because the wrong ROWS estimation. Here is the its exectuion plan.
Please note the plan is just a part of the real exectuion plan. And I have collected statistics for all involved tables, so I think the statistics must be up to date.

Please see below. CBO estimates that only 640 rows for step 5 and totall 115 for this SQL. But the real result has nearly 14K rows.
I don't know whether CBO made this mistake because of dynamic partition pruning?

	PLAN_TABLE_OUTPUT
Plan hash value: 2984909170
--------------------------------------------------------------------------------------------------------------------
| Id  | Operation                | Name                    | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
--------------------------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT         |                        

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center