dbms_xplan + allstats

From: Stephens, Chris <Chris.Stephens_at_adm.com>
Date: Fri, 25 Feb 2011 14:37:36 -0600
Message-ID: <D95BD5AFADBB0F4E9BB6C53F14D3A050050248373C_at_JRCEXC1V1.research.na.admworld.com>



11.2.0.2 on RHEL

I'm working on some SQL that suffers from some horrible cardinality estimate problems due to dummy rows that screw up the columns stats.

Everything was going fine this morning but for some reason I can't get an execution plan to show me the a-rows now.

I've tried the /*+ gather_plan_stats */ hint.
I've tried "alter session set statistics_level=ALL"
I've tried "alter system set statistics_level=ALL"
I've even tried bouncing the database.

select * from table(dbms_xplan.display_cursor('&sql_id','&child_no','allstats')) /

....will not show me the a-rows. Anybody have an hints to help me out?

CONFIDENTIALITY NOTICE:
This message is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by email reply.

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Feb 25 2011 - 14:37:36 CST

Original text of this message