Guest User

Untitled

a guest
Mar 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. /* Formatted on 21/03/2018 5:00:01 PM (QP5 v5.114.809.3010) */
  2. DECLARE
  3. NAM VARCHAR2(252);
  4. BEGIN
  5. FOR OUTPUT
  6. IN (SELECT 'dbms_refresh.refresh(''' || name || ''');'
  7. INTO NAM
  8. FROM all_snapshots)
  9. LOOP
  10. EXEC OUTPUT.NAM;
  11. END LOOP;
  12. END;
  13.  
  14. DECLARE
  15. v_number_of_failures NUMBER(12) := 0;
  16. BEGIN
  17. DBMS_MVIEW.REFRESH_ALL_MVIEWS(v_number_of_failures,'C','', TRUE, FALSE);
  18. END;
Add Comment
Please, Sign In to add comment