Hi all,
I've read many docs as well as topics on Oracle Community, but I can't make sure that DBMS_STATS.GATHER_%_STATS with Cascade option TRUE locks table or not (I mean prevent DML from executing). Cascade = TRUE will make DBMS_STATS gather index statistics too.
I did some test but sometimes the table was locked exclusive, and I couldn't update rows, sometimes the table was not locked and I could update. I was really crazy.
Please help me understand.
Thank you so much.