Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ANALYZE TABLE command ?

johnpau2013May 12 2012 — edited May 15 2012
Whenever we have some performance issues. First thing we will do is run this command on all the tables in our schema
so all the statistics are up to date.

ANALYZE TABLE <TABLE_NAME> COMPUTE STATISTICS;

We have Oracle 11g R2 database.


1) Is the command what we are using above is pretty old ? Is there a newer one ?

2) What command can we use as SYS user to ANALYZE an entire schema ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2012
Added on May 12 2012
11 comments
146,327 views