· BEGIN DBMS_www.doorway.ru(name = 'some_www.doorway.ru_REFRESH', list = '', next_date = SYSDATE, interval = '/*1:Mins*/ SYSDATE + 1/(60*24)', implicit_destroy = FALSE, lax = FALSE, job = 0, rollback_seg = NULL, push_deferred_rpc = TRUE, refresh_after_errors = TRUE, purge_option = NULL, parallelism = 4, heap_size = NULL); END; BEGIN DBMS_www.doorway.ru Set the initialization parameters and bounce the database. Create the materialized view table. Create the optimizer statistics and refresh the materialized view. Test the materialized view. Create the MVIEW log (s) MATERIALIZED VIEW. Execute a manual complete refresh. Refresh all the materialized views in a single procedure call. This gives Oracle an opportunity to schedule refresh of all the materialized views in the right order taking into account dependencies imposed by nested materialized views and potential for efficient refresh by using query rewrite against other materialized views.
How do I force a refresh of a materialized view? Answer: Oracle provides the dbms_mview package to manually invoke either a fast refresh or a complete refresh, where F equals Fast Refresh and C equals Complete Refresh: execute dbms_www.doorway.ruh ('emp_dept_sum','f');. EXECUTE DBMS_www.doorway.ruH(LIST='MV_MY_VIEW'); alternatively you can add some options: EXECUTE DBMS_www.doorway.ruH(LIST='MV_MY_VIEW',PARALLELISM=4); this actually works for me, and adding parallelism option sped my execution about times. More info here: How to Refresh a Materialized View in Parallel. Only the owner of a materialized view can perform a REFRESH MATERIALIZED VIEW operation on that materialized view. Furthermore, the owner must have SELECT privilege on the underlying base tables to successfully run REFRESH MATERIALIZED VIEW. The REFRESH MATERIALIZED VIEW command runs as a transaction of its own.
The REFRESH MATERIALIZED VIEW statement refreshes an asynchronous materialized view manually. Required privilege. Required privilege on the materialized. 19 de dez. de 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. Manual Refresh; Manual Mode; On Change Mode; On Query Mode; Periodic Mode. Creating a Materialized View. Examples. Limitations and Cautions.
0コメント