there are always 9 sessions in active status which are used to lock SYS.RGROUP$

本文探讨了Oracle 9.2.0.6版本下大量物化视图(MV)在一分钟间隔内刷新的情况。系统中约有40-50个MV,在刷新过程中会锁定SYS.RGROUP$表,并在提交前释放锁。文中还提到了如何通过金属链文档监控MV刷新进度。

    oracle version: oracle 9.2.0.6
    os version: linux as 3
    In my system ,there are many materialized views.About 40-50.And,the interval time they refresh are almost  1 minite.
    when I see the v$session ,there are always 7-9 active sessions.what they execute is that
 SELECT R.REFGROUP
  FROM SYS.RGROUP$ R
 WHERE R.OWNER = :b1
   AND R.NAME = :b2
   AND R.INSTSITE = :b3
   FOR UPDATE

    from metalink,I see that when a materialized view refresh ,it will lock the sys.rgroup$ first ,and before they commit the refresh,the lock will release.
    so,I think these active sessions will not be worried.
    associate metalink document:
    How to monitor the progress of a materialized view refresh (MVIEW) [ID 258021.1]
    MATERIALIZED VIEW REFRESH: Locking, Performance, Monitoring [ID 258252.1]

   

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14730395/viewspace-680262/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/14730395/viewspace-680262/

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值