首页 > Linux操作系统 > Linux操作系统 > 数据库迁移后的统计信息更新
在目标数据库上:
TABLE级别:
exec dbms_stats.UNLOCK_TABLE_STATS(ownname => '
exec dbms_stats.gather_table_stats(ownname => '
SCHEMA级别:
exec dbms_stats.UNLOCK_SCHEMA_STATS(ownname => 'USER>');
exec dbms_stats.gather_schema_stats(ownname => 'USER>',estimate_percent => null ,method_opt => 'for all indexed columns',degree=>4,CASCADE=>true);
exec dbms_stats.gather_schema_stats(ownname => 'USER>',degree=>4,CASCADE=>true);
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/6906/viewspace-606570/ ,如需转载,请注明出处,否则将追究法律责任。