Iam trying to refresh the materialized view by using:
DBMS_MVIEW.REFRESH('v_materialized_foo_tbl')
But it's throwing invalid sql statement.
Then I have created a stored procedure like this:
CREATE OR REPLACE
PROCEDURE MAT_VIEW_FOO_TBL
IS
BEGIN
DBMS_MVIEW.REFRESH('v_materialized_foo_tbl')
END MAT_VIEW_FOO_TBL IS;
This procedure has been created successfully but when i am calling this procedure with
MAT_VIEW_FOO_TBL;
it's throwing an error again.
Kindly suggest a solution for this issue.
Thanks, Srinivas
exec DBMS_MVIEW.REFRESH('v_materialized_foo_tbl');
orexec MAT_VIEW_FOO_TBL
orBEGIN DBMS_MVIEW.REFRESH('v_materialized_foo_tbl'); END;
? Any of these should work. – Selfcontent;
? – Selfcontent