--- DA ESEGUIRE COME UTENTE DBCGO



-- Creazione JOB per Refresh DBCGO_PP_MV00

DECLARE
   x   NUMBER;
BEGIN
   SYS.DBMS_JOB.submit
                     (job           => x,
                      what          => 'DBMS_MVIEW.REFRESH (''DBCGO_PP_MV00'',''F'');',
                      NEXT_DATE     => SYSDATE,
                      INTERVAL      => 'SYSDATE + 1/144',
                      NO_PARSE      => TRUE
                     );
   SYS.DBMS_OUTPUT.put_line ('Job Number is: ' || TO_CHAR (x));
END;
/
COMMIT;

--- MODIFICA AL REFRESH DELLA VISTA DBCGO_PP_MV00

alter materialized view DBCGO_PP_MV00
refresh fast on demand

---------------------------------------------------------

