http://asktom.oracle.com/pls/ask/search?p_string=%22atomic_refresh%22
we've talked about this a couple of times.
If you "have several MV's that are quite large and would prefer to refresh them using Truncate", in 10g and above you would use atomic_refresh=>FALSE
that permits us to user
truncate+insert/*+APPEND*/
to rebuild the MV (the MV disappears for a while, becomes empty - you have to expect that)
else, if atomic_refresh=>TRUE, we use
delete+insert
to rebuild the MV (the MV never disappears, transactional consistency is there)
If you use a list like mv1,mv2... - and atomic_refresh=>FALSE, it'll use truncate+insert/*+Append*/ on them in turn.
引自:http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1857127200346321681
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10130206/viewspace-1056922/ ,如需转载,请注明出处,否则将追究法律责任。