oracle更新表统计信息

--单个表统计数据的统计数据更新
SQL> EXEC dbms_stats.gather_table_stats('【username】','【tablename】',cascade=>true); 
PL/SQL procedure successfully completed



--更新整个用户所有表的统计数据更新
SQL> EXEC dbms_stats.gather_schema_stats('【username】',estimate_percent=>100,cascade=> TRUE);



猜你喜欢

转载自zgq456.iteye.com/blog/2038462