12.2删除物化视图的是hang住了

 在drop mv 的时候如果hang住,可以启用10046进行跟踪,看其操作究竟是卡在哪一步?而我这一次遇到的场景,是卡在delete sys.mvref$_change_stats.这个表如果数据量达到百万以上,基本就很大可能出现性能问题,可以做清理。(执行语句:delete from sys.mvref$_change_stats where refresh_id=:B2 and mv_obj#=:B1)

  解决办法:

    truncate table mvref$_stats;
  truncate table mvref$_run_stats;
    truncate table mvref$change_stats;
    truncatea table mvref$_stmt_stats;
    exec dbms_mview_stats.set_system_default('COLLECTION_LEVEL','NONE');

网站栏目:12.2删除物化视图的是hang住了
新闻来源:http://xwwzsj.com/article/ipdgdd.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款