Don't use package DBMS_STATS to do that, using FND_STATS is a good command.
Also,don't use the ANALYZE command.
Eg.
Use the following command to gather schema statistics:
exec fnd_stats.gather_schema_statistics('PO')
exec fnd_stats.gather_schema_statistics('ALL')
Use the following command for gathering statistics on a temporary table
(ie: temporary tablename = temp1 in schema INV):
exec fnd_stats.gather_table_stats('INV','temp1');
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/38542/viewspace-1043942/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/38542/viewspace-1043942/