Iam trying to refresh the materialized view by using:
DBMS_MVIEW.REFRESH(\'v_materialized_foo_tbl\')
But it\'s throwing invalid sql stateme
Best option is to use the '?' argument for the method. This way DBMS_MVIEW will choose the best way to refresh, so it'll do the fastest refresh it can for you. , and won't fail if you try something like method=>'f' when you actually need a complete refresh. :-)
from the SQL*Plus prompt:
EXEC DBMS_MVIEW.REFRESH('my_schema.my_mview', method => '?');
EXECUTE dbms_mview.refresh('view name','cf');
Run this script to refresh data in materialized view:
BEGIN
DBMS_SNAPSHOT.REFRESH('Name here');
END;