xzh2000的博客 本人提供杭州地区Oracle现场技术支持服务,包括性能调整、DataGuard、RAC等。
13 09, 2006
如何监控mv的刷新进度
作者 xzh2000 12:41 | Permalink 静态链接网址 | Comments 最新回复 (0) | Trackback 引用 (0) | 技术交流

foreverlee在itpub上提出这个问题,如果我们执行的是DDL,那么操作就很难监控,但如是执行的是mv的完全刷新,只要它的刷新时间超过6秒,在mlog$_xxx所在的DB中的v$session_longops动态性能视图就会有记录。。。


执行以下脚本可以查看正在运行中的长查询:
col opname format a21
col target_desc format a32
col perwork format a12
col message format a83
set lines 131
select sid,OPNAME,sofar,TOTALWORK,trunc(sofar/totalwork*100,2)||'%' as perwork,elapsed_seconds,message
from v$session_longops where sofar!=totalwork;

Comments
博客日历
« 八月 2008 »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
搜索
最新发表
文章分类
文章归档
网站链接
新闻聚合