Why is my materialized gaze disrupted?

I created a materialized view:

CREATE MATERIALIZED VIEW "SUPUSERWH"."EXAM_MVIEW" ("CODE","AGE")
As    
(
      select CODE, AGE from  EXAM_TEST
)

It worked. Then I inserted one row into the table EXAM_TESTand updated my connection. Then the materialized view EXAM_MVIEWbroke. Why?

enter image description here

+3
source share
2 answers

I don’t know what you mean by a broken word, but as you define a materialized view, Oracle would consider it obsolete after pasting in EXAM_TEST.
Stale means that using a materialized view will give a different result than using a base table.

You can fix this:

  • Manually refresh the view. This is useful when data is recorded periodically (downloaded once per hour).
  • . , , , , , .
  • ( query_rewrite_integrity STALE_TOLERATED). . , .

.

+6

DDL (DROP, ALTER...) . , exam_test mv?

0

Source: https://habr.com/ru/post/1793540/


All Articles