database - Oracle 11g Broken Materliazed view: Stop refresh without dropping view or refreshing view? -


so i've got materalized view(i know...) :

create materialized view vw_my_view_here refresh complete start sysdate next sysdate + 1/24  /*huge-ass select statement here*/ union /*huge-ass select statement here*/ union /*huge-ass select statement here*/ union /*huge-ass select statement here*/ 

this has been present in our system time without causing issues. 1 of these select queries broken (somehow - presumibly schema changes in underlying tables) , has taken running 24 hours straight , consuming of boxes resources. problem other things on box.

i can't drop or modify view - it's undocumented (i know...) , need figure out consumes it, how it's populated, etc. first.

i tried killing process that's handling query, seems query fired straight away afterwards.

how can stop materialized view without 1) dropping view , (2) without refreshing view (because that's taking 24+ hours , of our box resources).

i've tried running

 alter materialized view view_name refresh on demand; 

but seems run endlessly no effect on original massive query.

any ideas?

the documentation altering refresh settings says:

this clause sets default refresh options. instructions on implementing refresh, refer oracle database advanced replication , oracle database data warehousing guide.

so alter materialized view statement not doing refresh itself. waiting currently-excuting refresh complete before can update data dictionary view. once current refresh completes (or terminated) alter complete , prevent further automatic refreshes being started.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -