How to refresh materialized view in oracle

前端 未结 9 1497
小鲜肉
小鲜肉 2020-12-13 03:46

Iam trying to refresh the materialized view by using:

DBMS_MVIEW.REFRESH(\'v_materialized_foo_tbl\')

But it\'s throwing invalid sql stateme

9条回答
  •  甜味超标
    2020-12-13 04:02

    try this:

    DBMS_SNAPSHOT.REFRESH( 'v_materialized_foo_tbl','f'); 
    

    first parameter is name of mat_view and second defines type of refresh. f denotes fast refresh. but keep this thing in mind it will override any any other refresh timing options.

提交回复
热议问题