Java Mailing List Archive

http://www.dba.5341.com/

Home » Home (12/2007) » oracle-l »

Wrong Plan after invalidation

A. Coskan Gundogar

2007-04-03


Hi Folks

We have a report query with bind variables. This query has 20 sql_childs.  when we use literals which are taken from the sql_bind_capture view the query uses the optimal plan.I have invalidated the plan   which was using the child 18 with a simple ddl operation.  but CBO start to use the wrong plan of the child 20 (we tried its literals too  and explain plan output gives the right plan).

Why doesn't CBO create a new right plan for me as a child 21  instead of using a stored wrong one  when i invalidate the plan ???



I hope i am clear with the situation



Thanks

--
A. Coskan GUNDOGAR

Oracle DBA

http://coskan.wordpress.com
©2008 dba.5341.com - Jax Systems, LLC, U.S.A.