Why my SQL Plans age very quickly ?
Hi All,
I am working on 11g R2 (Windows) and I am doing some tuning of a particular query. When I run several times the query, it is fairly quick but what I noticed is that the plan ages out very quickly. So when I run the same query 5 minutes later, it seems that Oracle parse it again and it takes much more time.
Also, When I want to see the plan in dbms_xplan.display_cursor after these 5 minutes I have the following error:
NOTE: cannot fetch plan for SQL_ID: avcd12sdzr3, CHILD_NUMBER: 1
Please verify value of SQL_ID and CHILD_NUMBER;
It could also be that the plan is no longer in cursor cache (check v$sql_plan)
Does someone know why my plan is aging so quickly and how I can fix this ?
Many thanks.