oracle中导出统计信息到其他表的过程

oracle中导出统计信息到其他表的过程


exec dbms_stats.create_stat_table('&OWNER','MY_STATS_TAB');

exec dbms_stats.export_table_stats('&OWNER','&SOURCE_TABNAME',NULL,'MY_STATS_TAB');

exec dbms_stats.import_table_stats('&OWNER','&TARGET_TABNAME', null, 'MY_STATS_TAB');

检验:
select table_name, num_rows from dba_tables where table_name in ('&SOURCE_TABNAME' ,'&TARGET_TABNAME' );

 

这位作者还没有填写简介。

查看所有文章

发表评论

Your email address will not be published. Required fields are marked *