Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: CBO Bug - Tables with 0 rows
1.) Yes this is an App Engine program in my case. The %UpdateStats macro only works (I believe) if the App Engine does a commit. If the App Engine doesn't do a commit prior to this, it disallows %UpdateStats. That might not be exactly right, but there is some caveat about using %UpdateStats that causes it not to work in this particular step.
2.) I'll have to look at the OPTIMIZER_DYNAMIC_SAMPLING parameter. That might be that I need.
3.) Locking stats (I found out) was NOT a good idea. Because the App Engine apparently does do an UpdateStats later in the process and it causes it to fail with an ORA-? Error about table stats being locked.
4.) I'm going to check out that blog now.
Thanks,
regards
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Nov 30 2007 - 08:39:10 CST