关于物化视图 on commit刷新的问题请教

rzlink 2010-03-16 11:52:02
create materialized view VIEW_A_B
refresh fast on commit as
(select a.id as a_id
b.name as b_name
from a left join b
on a.id = b.id);


这样建视图 说不能用on commit 刷新
怎么样才能建on commit的物化视图
a b 都建了view log 了
a表是分区表 跟这个有关系吗
...全文
390 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
minitoy 2010-10-14
  • 打赏
  • 举报
回复
这样?
SQL> create materialized view VIEW_A_B
2 refresh force on commit as
3 select a.empno,a.ename,b.dname
4 from emp a ,dept b
5 where b.deptno=a.deptno(+)
6 /

Materialized view created

SQL>
gg_lihui 2010-10-14
  • 打赏
  • 举报
回复
也遇到相同的问题,不知道LZ是怎么解决的?
半世码农 2010-04-19
  • 打赏
  • 举报
回复
学习中!
zhyl0219 2010-04-19
  • 打赏
  • 举报
回复
在创建的时候也遇到类似问题,我这操作的时候提示错误:ORA-01031 权限不足
robin_ares 2010-03-19
  • 打赏
  • 举报
回复
In addition for M.V.'s with Single-Table Aggregates and Materialized Views
with Joins and Aggregates, there are some more conditions on refresh
to the ones mentioned above:
Joins and Aggregates :
=====================

i)The WHERE clause can contain inner equi-joins only
(that is, no outer joins)
ii)Materialized views from this category are FAST refreshable after
Direct Load to the base tables; they are not FAST refreshable after
conventional DML to the base tables.
iii)Materialized views from this category can have only the
ON DEMAND option (so, the on-commit cannot be used for this category

j就是説多表不可以on-commit
想想也是,让视图监视所有表的事务,代价太大
ojuju10 2010-03-18
  • 打赏
  • 举报
回复
我也遇到过类似问题,好像与版本也有关系
TTOS3302041 2010-03-18
  • 打赏
  • 举报
回复
权限不足
suiziguo 2010-03-16
  • 打赏
  • 举报
回复
贴出详细错误信息。
rzlink 2010-03-16
  • 打赏
  • 举报
回复
ora-12054: cannot set the on commit refresh attribute for the materialized view
出的是这个错
tangren 2010-03-16
  • 打赏
  • 举报
回复
无日志,无真相。

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧