SQL> CREATE Materialized View q2 REFRESH Force3 on commit4 NEXT SYSDATE + 5/(24*60)5 AS6 select nvl(a.n1,b.n1) as n1,nvl(a.n2,b.n2) as n2,nvl(n3,0) as n3,nvl(n4,0)as n4,(nvl(n4,0)-nvl(n3,0)) as n5 from a full join b on a.n1=b.n1 and a.n2=b.n2;select nvl(a.n1,b.n1) as n1,nvl(a.n2,b.n2) as n2,nvl(n3,0) as n3,nvl(n4,0)as n4,(nvl(n4,0)-nvl(n3,0)) as n5 from a full join b on a.n1=b.n1 and a.n2=b.n2*ERROR at line 6:ORA-12051: ON COMMIT attribute is incompatible with other options哦 謝謝 我是初學者 那你是上哪找的 是Oracle 官網(wǎng)嗎 還是 Oracle 幫助 文檔
2 回答

LEATH
TA貢獻1936條經(jīng)驗 獲得超7個贊
首先要確保你建的物化視圖刷新方式是on demand,還是on commit;
1、on demand 顧名思義,僅在該物化視圖“需要”被刷新了,才進行刷新(REFRESH),即更新物化視圖;
這是需要手動刷新的。
2、on commit 提交觸發(fā),一旦基表有了commit,即事務提交,則立刻刷新,立刻更新物化視圖。
- 2 回答
- 0 關(guān)注
- 629 瀏覽
添加回答
舉報
0/150
提交
取消