sql - 带有嵌套表的物化 View

标签 sql oracle oracle11g

我有以下类型:

create or replace type varchar2_arr as table of varchar2(300)

我尝试创建物化 View :

create table a (id varchar2(10), data varchar2(200), constraint pk_a primary key(id));
create table b (id varchar2(10), data varchar2(200), constraint pk_b primary key(id));

create materialized view log on a with rowid;
create materialized view log on b with rowid;

create materialized view mnest_ab_mv
refresh fast on commit
as
select a.rowid a_rowid, b.rowid b_rowid, varchar2_arr(a.data), b.data
from a, b
where a.id = b.id (+)

oracle 给我以下错误:

ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view

使用嵌套表创建实体化 View 需要做什么?

最佳答案

您是否尝试过运行 DBMS_MVIEW.EXPLAIN_MVIEW 过程,它的输出可能会有所帮助。

谢谢

维沙德

关于sql - 带有嵌套表的物化 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20531841/

相关文章:

sql - Oracle 12c - 我们可以在将数据插入表而不是整个表时锁定分区吗?

oracle - 验证日期格式oracle

oracle - ORA-01882 : timezone region not found - Oracle ADF Web application

sql - Informix `interval` 函数的 Oracle 等效项是什么?

sql - 如何选择最大值

sql - 更改 SQL SELECT 语句中的日期格式(DD/MM/YYYY)

MySQL FULLTEXT 查询问题

mysql - 将两个复杂的 SQL 查询合并为一个

sql - 我在oracle中的密码不会输出

sql - 在 ubuntu 16.04 中运行 sql developer 时出错